de.jreality.scene.proxy.tree
Class SceneGraphNodeEntity

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

public class SceneGraphNodeEntity
extends java.lang.Object

THis class contains several tree nodes for the covered node. It is intended to be used for synchronizing a proxy tree. Implement the update mechanism for geometry/apperance/transformation changes here - and update the SceneTreeNodes as needed. So you need to calculate the local data for the proxies only once, instead of converting a jreality event in every copy instance. A typical application would be a transformation change, so one calculates the needed proxy matrix/quaternion representation only once and sets it for all proxies then by iterating the TreeNodes. Note: subclasses need to implement Geometry/Transformation/Appearance-Listener if the EntityFactory is set to update on these events.

Author:
weissman

Method Summary
 SceneGraphNode getNode()
           
 java.util.Collection<SceneTreeNode> getTreeNodes()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTreeNodes

public java.util.Collection<SceneTreeNode> getTreeNodes()

getNode

public SceneGraphNode getNode()