IPartitionTraverser is a hierarchical visitor pattern that traverses through a Partition3D data structure.
away3d.partition.Partition3D
public var scene:Scene3D
The scene being traversed.
public function applyEntity(entity:Entity):void
Registers an entity for use.
Parameters
public function applyLight(light:LightBase):void
Passes a light to be processed by the traverser.
Parameters
public function applyRenderable(renderable:IRenderable):void
Passes an IRenderable object to be processed by the traverser.
Parameters
public function applySkyBox(renderable:IRenderable):void
Passes a skybox to be processed by the traverser.
Parameters
public function enterNode(node:NodeBase):Boolean
Called when the traversers enters a node. At minimum, it notifies the currently visited Partition3DNode whether or not further recursion is necessary.
Parameters
| node:NodeBase — The currently entered node.
|
Returns
| Boolean — true if further recursion down children is necessary, false if not.
|
public function leaveNode(node:NodeBase):void
Called when the traverser leaves a node. This method is still called when enterNode returned false.
Parameters
| node:NodeBase — The node being left by the traverser.
|