Packageaway3d.core.partition
Classpublic class QuadTreeNode
InheritanceQuadTreeNode Inheritance NodeBase Inheritance Object



Public Properties
 PropertyDefined By
 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
  
QuadTreeNode(maxDepth:int = 5, size:Number = 10000, height:Number = 1000000, centerX:Number = 0, centerZ:Number = 0, depth:int = 0)
QuadTreeNode
 Inherited
Allows the traverser to visit the current node.
NodeBase
 Inherited
addNode(node:NodeBase):void
Adds a node to the tree.
NodeBase
  
[override]
QuadTreeNode
  
isInFrustum(camera:Camera3D):Boolean
[override]
QuadTreeNode
 Inherited
removeNode(node:NodeBase):void
Removes a child node from the tree.
NodeBase
Protected Methods
 MethodDefined By
 Inherited
NodeBase
Constructor Detail
QuadTreeNode()Constructor
public function QuadTreeNode(maxDepth:int = 5, size:Number = 10000, height:Number = 1000000, centerX:Number = 0, centerZ:Number = 0, depth:int = 0)



Parameters
maxDepth:int (default = 5)
 
size:Number (default = 10000)
 
height:Number (default = 1000000)
 
centerX:Number (default = 0)
 
centerZ:Number (default = 0)
 
depth:int (default = 0)
Method Detail
findPartitionForEntity()method
override public function findPartitionForEntity(entity:Entity):NodeBase

Parameters

entity:Entity

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

Parameters

camera:Camera3D

Returns
Boolean