de.jreality.scene.proxy.tree
Class UpToDateSceneProxyBuilder
java.lang.Object
de.jreality.scene.proxy.tree.SceneProxyTreeBuilder
de.jreality.scene.proxy.tree.UpToDateSceneProxyBuilder
- All Implemented Interfaces:
- SceneGraphComponentListener, EventListener
public class UpToDateSceneProxyBuilder
- extends SceneProxyTreeBuilder
- implements SceneGraphComponentListener
This class creates a proxy tree for the given sceneGraph from the root node
and cares about adding and removing of objects.
Updating the proxy tree for other changes is handled differently,
as there is no need for the factory mechanism then. just forward the
events to the implemetation
TODO: thread issues!!
- Author:
- weissman
UpToDateSceneProxyBuilder
public UpToDateSceneProxyBuilder(SceneGraphComponent root)
createProxyTree
public SceneTreeNode createProxyTree()
- TODO: synchronize and signal error when called twice?
- Overrides:
createProxyTree
in class SceneProxyTreeBuilder
childAdded
public void childAdded(SceneGraphComponentEvent ev)
- Specified by:
childAdded
in interface SceneGraphComponentListener
childRemoved
public void childRemoved(SceneGraphComponentEvent ev)
- Specified by:
childRemoved
in interface SceneGraphComponentListener
childReplaced
public void childReplaced(SceneGraphComponentEvent ev)
- Specified by:
childReplaced
in interface SceneGraphComponentListener
getEntityFactory
public EntityFactory getEntityFactory()
setEntityFactory
public void setEntityFactory(EntityFactory ef)
visibilityChanged
public void visibilityChanged(SceneGraphComponentEvent ev)
- Specified by:
visibilityChanged
in interface SceneGraphComponentListener
dispose
public void dispose()