Packageaway3d.core.partition
Classpublic class CameraNode
InheritanceCameraNode Inheritance EntityNode Inheritance NodeBase Inheritance Object

CameraNode is a space partitioning leaf node that contains a Camera3D object.



Public Properties
 PropertyDefined By
 Inheritedentity : 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_numChildNodes : uint
NodeBase
 Inherited_parent : NodeBase
NodeBase
Public Methods
 MethodDefined By
  
Creates a new CameraNode object.
CameraNode
  
[override] Allows the traverser to visit the current node.
CameraNode
 Inherited
addNode(node:NodeBase):void
Adds a node to the tree.
NodeBase
 Inherited
Finds the partition that contains (or should contain) the given entity.
NodeBase
  
isInFrustum(camera:Camera3D):Boolean
[override] Tests if the current node is at least partly inside the frustum.
CameraNode
 Inherited
Detaches the node from its parent.
EntityNode
 Inherited
removeNode(node:NodeBase):void
Removes a child node from the tree.
NodeBase
Protected Methods
 MethodDefined By
 Inherited
NodeBase
Constructor Detail
CameraNode()Constructor
public function CameraNode(camera:Camera3D)

Creates a new CameraNode object.

Parameters
camera:Camera3D — The camera to be contained in the 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.

isInFrustum()method 
override public function isInFrustum(camera:Camera3D):Boolean

Tests if the current node is at least partly inside the frustum.

Parameters

camera:Camera3D — The raw data of the view projection matrix

Returns
Boolean — Whether or not the node is at least partly inside the view frustum.