Packageaway3d.core.traverse
Classpublic class PartitionTraverser
SubclassesEntityCollector

IPartitionTraverser is a hierarchical visitor pattern that traverses through a Partition3D data structure.

See also

away3d.partition.Partition3D
Public Properties
 PropertyDefined by
  scene : Scene3D
The scene being traversed.
PartitionTraverser
Public Methods
 MethodDefined by
  
applyEntity(entity:Entity):void
Registers an entity for use.
PartitionTraverser
  
applyLight(light:LightBase):void
Passes a light to be processed by the traverser.
PartitionTraverser
  
applyRenderable(renderable:IRenderable):void
Passes an IRenderable object to be processed by the traverser.
PartitionTraverser
  
applySkyBox(renderable:IRenderable):void
Passes a skybox to be processed by the traverser.
PartitionTraverser
  
enterNode(node:NodeBase):Boolean
Called when the traversers enters a node.
PartitionTraverser
  
leaveNode(node:NodeBase):void
Called when the traverser leaves a node.
PartitionTraverser
Property detail
sceneproperty
public var scene:Scene3D

The scene being traversed.

Method detail
applyEntity()method
public function applyEntity(entity:Entity):void

Registers an entity for use.

Parameters
entity:Entity
applyLight()method 
public function applyLight(light:LightBase):void

Passes a light to be processed by the traverser.

Parameters
light:LightBase
applyRenderable()method 
public function applyRenderable(renderable:IRenderable):void

Passes an IRenderable object to be processed by the traverser.

Parameters
renderable:IRenderable
applySkyBox()method 
public function applySkyBox(renderable:IRenderable):void

Passes a skybox to be processed by the traverser.

Parameters
renderable:IRenderable
enterNode()method 
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.
leaveNode()method 
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.
Wiki link
Click to go to the wiki page for 'away3d.core.traverse.PartitionTraverser'

Code examples

Comments