Package | away3d.core.partition |
Class | public class EntityNode |
Inheritance | EntityNode NodeBase |
Subclasses | CameraNode, LightNode, MeshNode, RenderableNode, SkyBoxNode |
See also
Property | Defined by | ||
---|---|---|---|
entity : Entity
[read-only]
The entity contained in this leaf node.
| EntityNode | ||
parent : NodeBase
The parent node.
| NodeBase |
Method | Defined by | ||
---|---|---|---|
Creates a new EntityNode object.
| EntityNode | ||
Allows the traverser to visit the current node.
| EntityNode | ||
Adds a node to the tree.
| NodeBase | ||
Finds the partition that contains (or should contain) the given entity.
| NodeBase | ||
Tests if the current node is at least partly inside the frustum.
| EntityNode | ||
removeFromParent():void
Detaches the node from its parent.
| EntityNode | ||
Removes a child node from the tree.
| NodeBase |
entity | property |
entity:Entity
[read-only]The entity contained in this leaf node.
Implementation public function get entity():Entity
EntityNode | () | constructor |
public function EntityNode(entity:Entity)
Parameters
entity:Entity — The Entity to be contained in this leaf node.
|
acceptTraverser | () | method |
public override 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.
Parameterstraverser:PartitionTraverser — The traverser visiting the node.
|
isInFrustum | () | method |
public override function isInFrustum(camera:Camera3D):Boolean
Tests if the current node is at least partly inside the frustum.
Parameterscamera:Camera3D — The camera providing the view frustum to test against.
|
Boolean — Whether or not the node is at least partly inside the view frustum.
|
removeFromParent | () | method |
public function removeFromParent():void
Detaches the node from its parent.