com.depthexplorer
Class RenderTreeNode

java.lang.Object
  extended by edu.tufts.cs.geometry.ComputationUnit
      extended by com.depthexplorer.RenderTreeNode
Direct Known Subclasses:
RobbyContours, RTNBanana, RTNCloud, RTNContours, RTNHighlight, RTNPCAMark, RTNProximityDepthTree, RTNProximityDepthTreeExtraPoints, RTNProximityGraph, RTNRoot, RTNShade, RTNShowPCA, RTNTransform

public abstract class RenderTreeNode
extends edu.tufts.cs.geometry.ComputationUnit


Field Summary
(package private)  ArrayList<RenderTreeNode> children
           
(package private)  PointSet ps
           
 
Constructor Summary
RenderTreeNode()
           
 
Method Summary
protected  void build(Node xmlNode)
           
protected  Color colorFromString(String s)
           
static RenderTreeNode getInstanceFromRegistrar(String className)
           
 String interpolateAttribute(String attrName, String valueStart, String valueEnd, double fraction)
           
protected  void normalizeDepth(double[] depth)
           
protected abstract  void process()
           
protected  void processChildren()
           
protected abstract  void setAttribute(String name, String value)
           
abstract  void setDefaults()
           
 
Methods inherited from class edu.tufts.cs.geometry.ComputationUnit
setParameter, setParameterString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

ArrayList<RenderTreeNode> children

ps

PointSet ps
Constructor Detail

RenderTreeNode

public RenderTreeNode()
Method Detail

setAttribute

protected abstract void setAttribute(String name,
                                     String value)
                              throws Exception
Throws:
Exception

process

protected abstract void process()
                         throws Exception
Throws:
Exception

setDefaults

public abstract void setDefaults()

processChildren

protected void processChildren()
                        throws Exception
Throws:
Exception

build

protected void build(Node xmlNode)
              throws Exception
Throws:
Exception

normalizeDepth

protected void normalizeDepth(double[] depth)

colorFromString

protected Color colorFromString(String s)

interpolateAttribute

public String interpolateAttribute(String attrName,
                                   String valueStart,
                                   String valueEnd,
                                   double fraction)

getInstanceFromRegistrar

public static RenderTreeNode getInstanceFromRegistrar(String className)