aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core/com/jme3/scene/SceneGraphVisitor.java
blob: 35cc1157cf3a02e99ba747b1db249132119513c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.jme3.scene;

/**
 * <code>SceneGraphVisitorAdapter</code> is used to traverse the scene
 * graph tree. 
 * Use by calling {@link Spatial#depthFirstTraversal(com.jme3.scene.SceneGraphVisitor) }
 * or {@link Spatial#breadthFirstTraversal(com.jme3.scene.SceneGraphVisitor)}.
 */
public interface SceneGraphVisitor {
    /**
     * Called when a spatial is visited in the scene graph.
     * 
     * @param spatial The visited spatial
     */
    public void visit(Spatial spatial);
}