Packageaway3d.core.traverse
Classpublic class PartitionTraverser
InheritancePartitionTraverser Inheritance Object
Subclasses EntityCollector

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

See also

away3d.partition.Partition3D


Public Properties
 PropertyDefined By
  entryPoint : Vector3D
[read-only] The entry point for scene graph traversal, ie the point that will be used for traversing the graph position-dependently.
PartitionTraverser
  scene : Scene3D
The scene being traversed.
PartitionTraverser
Public Methods
 MethodDefined By
  
PartitionTraverser
  
applyEntity(entity:Entity):void
Registers an entity for use.
PartitionTraverser
  
PartitionTraverser
  
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
  
Passes a light to be processed by the traverser.
PartitionTraverser
  
enterNode(node:NodeBase):Boolean
Called when the traversers enters a node.
PartitionTraverser
Property Detail
_collectionMarkproperty
arcane static var _collectionMark:uint

A property that can be used to avoid processing a partition more than once.

_entryPointproperty 
arcane var _entryPoint:Vector3D

entryPointproperty 
entryPoint:Vector3D  [read-only]

The entry point for scene graph traversal, ie the point that will be used for traversing the graph position-dependently. For example: BSP visibility determination or collision detection. For the EntityCollector, this is the camera's scene position for example.


Implementation
    public function get entryPoint():Vector3D
sceneproperty 
public var scene:Scene3D

The scene being traversed.

Method Detail
applyDirectionalLight()method
public function applyDirectionalLight(light:DirectionalLight):void

Parameters

light:DirectionalLight

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

Registers an entity for use.

Parameters

entity:Entity

applyLightProbe()method 
public function applyLightProbe(light:LightProbe):void

Parameters

light:LightProbe

applyPointLight()method 
public function applyPointLight(light:PointLight):void

Parameters

light:PointLight

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

applyUnknownLight()method 
public function applyUnknownLight(light:LightBase):void

Passes a light to be processed by the traverser.

Parameters

light:LightBase

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.