1 package com.jme3.scene;
2 
3 /**
4  * <code>SceneGraphVisitorAdapter</code> is used to traverse the scene
5  * graph tree.
6  * Use by calling {@link Spatial#depthFirstTraversal(com.jme3.scene.SceneGraphVisitor) }
7  * or {@link Spatial#breadthFirstTraversal(com.jme3.scene.SceneGraphVisitor)}.
8  */
9 public interface SceneGraphVisitor {
10     /**
11      * Called when a spatial is visited in the scene graph.
12      *
13      * @param spatial The visited spatial
14      */
visit(Spatial spatial)15     public void visit(Spatial spatial);
16 }
17