de.jreality.scene
Class SceneGraphVisitor

java.lang.Object
  extended by de.jreality.scene.SceneGraphVisitor
Direct Known Subclasses:
BoundingBoxTraversal, CopyVisitor, PathCollector, ProxyFactory, ProxyTreeFactory

public class SceneGraphVisitor
extends Object

A visitor for traversing the scene graph. All visit methods are implemented as a call to the visit() method with the supertype parameter.

Note that if you want a visitor which visits all nodes in a scene graph, your visitor will have to include something like the following code:

  public void visit(SceneGraphComponent c) {
        ...
        c.childrenAccept(this);
        ...
        }
        

Author:
Holger Pietsch TODO: explain how this works better

Method Summary
 void visit(Appearance a)
           
 void visit(AudioSource a)
           
 void visit(Camera c)
           
 void visit(ClippingPlane c)
           
 void visit(Cylinder c)
           
 void visit(DirectionalLight l)
           
 void visit(Geometry g)
           
 void visit(IndexedFaceSet i)
           
 void visit(IndexedLineSet g)
           
 void visit(Light l)
           
 void visit(PointLight l)
           
 void visit(PointSet p)
           
 void visit(SceneGraphComponent c)
           
 void visit(SceneGraphNode m)
           
 void visit(Sphere s)
           
 void visit(SpotLight l)
           
 void visit(Transformation t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

visit

public void visit(SceneGraphNode m)

visit

public void visit(SceneGraphComponent c)

visit

public void visit(Appearance a)

visit

public void visit(Transformation t)

visit

public void visit(Light l)

visit

public void visit(DirectionalLight l)

visit

public void visit(PointLight l)

visit

public void visit(SpotLight l)

visit

public void visit(Geometry g)

visit

public void visit(Sphere s)

visit

public void visit(Cylinder c)

visit

public void visit(PointSet p)

visit

public void visit(IndexedLineSet g)

visit

public void visit(IndexedFaceSet i)

visit

public void visit(AudioSource a)

visit

public void visit(Camera c)

visit

public void visit(ClippingPlane c)