Packageaway3d.core.traverse
Classpublic class Traverser
InheritanceTraverser Inheritance Object
Subclasses PrimitiveTraverser, ProjectionTraverser, TickTraverser

Abstract class for all traverser that perform actions on the whole scene.



Public Methods
 MethodDefined By
  
apply(node:Object3D):void
Executed when the traverser is applied to the node.
Traverser
  
enter(node:Object3D):void
Executed when the traverser enters the node.
Traverser
  
leave(node:Object3D):void
Executed when the traverser leaves the node.
Traverser
  
match(node:Object3D):Boolean
Determines if the specified node is required to be traversed.
Traverser
Method Detail
apply()method
public function apply(node:Object3D):void

Executed when the traverser is applied to the node.

Parameters

node:Object3D

enter()method 
public function enter(node:Object3D):void

Executed when the traverser enters the node.

Parameters

node:Object3D

leave()method 
public function leave(node:Object3D):void

Executed when the traverser leaves the node.

Parameters

node:Object3D

match()method 
public function match(node:Object3D):Boolean

Determines if the specified node is required to be traversed.

Parameters

node:Object3D — The 3d object to be tested.

Returns
Boolean — The result of the test.