public class SceneGraphVisitorAdapter extends java.lang.Object implements SceneGraphVisitor
SceneGraphVisitorAdapter
is used to traverse the scene
graph tree. The adapter version of the interface simply separates
between the geometries
and the nodes
by
supplying visit methods that take them.
Use by calling Spatial.depthFirstTraversal(com.jme3.scene.SceneGraphVisitor)
or Spatial.breadthFirstTraversal(com.jme3.scene.SceneGraphVisitor)
.Constructor and Description |
---|
SceneGraphVisitorAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
visit(Geometry geom)
Called when a
Geometry is visited. |
void |
visit(Node node)
Called when a
Node is visited. |
void |
visit(Spatial spatial)
Called when a spatial is visited in the scene graph.
|
public void visit(Geometry geom)
Geometry
is visited.geom
- The visited geometrypublic void visit(Node node)
Node
is visited.node
- The visited nodepublic final void visit(Spatial spatial)
SceneGraphVisitor
visit
in interface SceneGraphVisitor
spatial
- The visited spatial