Packageaway3d.core.partition
Classpublic class EntityNode
InheritanceEntityNode Inheritance NodeBase Inheritance Object
Subclasses CameraNode, DirectionalLightNode, LightNode, LightProbeNode, MeshNode, PointLightNode, RenderableNode, SkyBoxNode

The EntityNode class provides an abstract base class for leaf nodes in a partition tree, containing entities to be fed to the EntityCollector traverser. The concrete subtype of Entity is responsible for creating a matching subtype of EntityNode.

See also

away3d.scenegraph.Entity
away3d.core.traverse.EntityCollector


Public Properties
 PropertyDefined By
  entity : Entity
[read-only] The entity contained in this leaf node.
EntityNode
 Inheritedparent : NodeBase
[read-only] The parent node.
NodeBase
 InheritedshowDebugBounds : Boolean
NodeBase
Protected Properties
 PropertyDefined By
 Inherited_childNodes : Vector.<NodeBase>
NodeBase
 Inherited_debugPrimitive : WireframePrimitiveBase
NodeBase
 Inherited_numChildNodes : uint
NodeBase
 InheritednumEntities : int
[read-only]
NodeBase
Public Methods
 MethodDefined By
  
Creates a new EntityNode object.
EntityNode
  
[override] Allows the traverser to visit the current node.
EntityNode
 Inherited
Finds the partition that contains (or should contain) the given entity.
NodeBase
 Inherited
isInFrustum(camera:Camera3D):Boolean
Tests if the current node is at least partly inside the frustum.
NodeBase
  
Detaches the node from its parent.
EntityNode
Protected Methods
 MethodDefined By
 Inherited
NodeBase
  
isInFrustumImpl(camera:Camera3D):Boolean
[override]
EntityNode
 Inherited
updateNumEntities(value:int):void
NodeBase
Property Detail
entityproperty
entity:Entity  [read-only]

The entity contained in this leaf node.


Implementation
    public function get entity():Entity
Constructor Detail
EntityNode()Constructor
public function EntityNode(entity:Entity)

Creates a new EntityNode object.

Parameters
entity:Entity — The Entity to be contained in this leaf node.
Method Detail
acceptTraverser()method
override public function acceptTraverser(traverser:PartitionTraverser):void

Allows the traverser to visit the current node. If the traverser's enterNode method returns true, the traverser will be sent down the child nodes of the tree. This method should be overridden if the order of traversal is important (such as for BSP trees) - or if static child nodes are not added using addNode, but are linked to separately.

Parameters

traverser:PartitionTraverser — The traverser visiting the node.

isInFrustumImpl()method 
override protected function isInFrustumImpl(camera:Camera3D):Boolean

Parameters

camera:Camera3D

Returns
Boolean
removeFromParent()method 
public function removeFromParent():void

Detaches the node from its parent.