de.jreality.scene.proxy.tree
Class SceneTreeNode

java.lang.Object
  extended by de.jreality.scene.proxy.tree.SceneTreeNode

public class SceneTreeNode
extends java.lang.Object

This class represents a tree version of a SceneGraphNode. Such a proxy class exists for each unique path to a SceneGraphNode. Typical application would be calculating a BoundingBox in world coordinates - in contrast to the BoundingBox in local coordinates, which would typically belong to the corresponding Entity.

Author:
weissman

Method Summary
 int addChild(SceneTreeNode child)
           
 SceneTreeNode getAppearanceTreeNode()
           
 java.util.List<SceneTreeNode> getChildren()
           
 SceneGraphNodeEntity getEntity()
           
 SceneTreeNode getGeometryTreeNode()
           
 SceneTreeNode getLightTreeNode()
           
 SceneGraphNode getNode()
           
 SceneTreeNode getParent()
           
 java.lang.Object getProxy()
           
 SceneTreeNode getTransformationTreeNode()
           
 SceneTreeNode getTreeNodeForChild(SceneGraphNode prevChild)
           
 boolean isComponent()
           
 boolean isLeaf()
           
 void setProxy(java.lang.Object proxy)
           
 SceneGraphPath toPath()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isLeaf

public boolean isLeaf()

getChildren

public java.util.List<SceneTreeNode> getChildren()

getNode

public SceneGraphNode getNode()

getParent

public SceneTreeNode getParent()

getProxy

public java.lang.Object getProxy()

setProxy

public void setProxy(java.lang.Object proxy)

addChild

public int addChild(SceneTreeNode child)

toPath

public SceneGraphPath toPath()

getEntity

public SceneGraphNodeEntity getEntity()

getTreeNodeForChild

public SceneTreeNode getTreeNodeForChild(SceneGraphNode prevChild)

getTransformationTreeNode

public SceneTreeNode getTransformationTreeNode()

getAppearanceTreeNode

public SceneTreeNode getAppearanceTreeNode()

getGeometryTreeNode

public SceneTreeNode getGeometryTreeNode()

getLightTreeNode

public SceneTreeNode getLightTreeNode()

isComponent

public boolean isComponent()