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

See also:

  • away3d.partition.Partition3D

Constructor

new()

Variables

scene:Scene3D

The scene being traversed.

Methods

applyEntity(entity:Entity):Void

Registers an entity for use.

applyRenderable(renderable:IRenderable):Void

Passes an IRenderable object to be processed by the traverser.

applySkyBox(renderable:IRenderable):Void

Passes a skybox to be processed by the traverser.

applyUnknownLight(light:LightBase):Void

Passes a light to be processed by the traverser.

enterNode(node:NodeBase):Bool

Called when the traversers enters a node. At minimum, it notifies the currently visited Partition3DNode whether or not further recursion is necessary.

Parameters:

node

The currently entered node.

Returns:

true if further recursion down children is necessary, false if not.