| Property | Defined by | ||
|---|---|---|---|
| center : Array
Array of primitives that lie in the center of the quadrant.
| QuadTreeNode | ||
| create : Function
Placeholder function for creating new quadrant node from a cache of objects.
| QuadTreeNode | ||
| hasContent : Boolean = false
Says if node has content or not
| QuadTreeNode | ||
| leftbottom : QuadTreeNode
The quadrant tree node for the bottom left quadrant.
| QuadTreeNode | ||
| leftbottomFlag : Boolean
Determines if the bounds of the bottom left quadrant need re-calculating.
| QuadTreeNode | ||
| lefttop : QuadTreeNode
The quadrant tree node for the top left quadrant.
| QuadTreeNode | ||
| lefttopFlag : Boolean
Determines if the bounds of the top left quadrant need re-calculating.
| QuadTreeNode | ||
| maxlevel : int = 4 | QuadTreeNode | ||
| onlysource : DisplayObject3D
hold the 3d object referenced when
onlysourceFlag is true. | QuadTreeNode | ||
| onlysourceFlag : Boolean = true
Determines if the quadrant node contains only one source.
| QuadTreeNode | ||
| parent : QuadTreeNode
The quadrant parent.
| QuadTreeNode | ||
| rightbottom : QuadTreeNode
The quadrant tree node for the bottom right quadrant.
| QuadTreeNode | ||
| rightbottomFlag : Boolean
Determines if the bounds of the bottom right quadrant need re-calculating.
| QuadTreeNode | ||
| righttop : QuadTreeNode
The quadrant tree node for the top right quadrant.
| QuadTreeNode | ||
| righttopFlag : Boolean
Determines if the bounds of the top right quadrant need re-calculating.
| QuadTreeNode | ||
| xdiv : Number
The x coordinate of the quadrant division.
| QuadTreeNode | ||
| ydiv : Number
The x coordinate of the quadrant division.
| QuadTreeNode | ||
| Method | Defined by | ||
|---|---|---|---|
|
QuadTreeNode(xdiv:Number, ydiv:Number, width:Number, height:Number, level:int, parent:QuadTreeNode = null, maxLevel:uint = 4)
Creates a new
PrimitiveQuadrantTreeNode object. | QuadTreeNode | ||
|
getRect():Rectangle
| QuadTreeNode | ||
|
push(pri:RenderableListItem):void
Adds a primitive to the quadrant
| QuadTreeNode | ||
|
render(limit:Number, renderSessionData:RenderSessionData, graphics:Graphics):void
Sorts and renders the contents of the quadrant tree
| QuadTreeNode | ||
|
reset(xdiv:Number, ydiv:Number, width:Number, height:Number, maxLevel:uint):void
Clears the quadrant of all primitives and child nodes
| QuadTreeNode | ||
| center | property |
public var center:ArrayArray of primitives that lie in the center of the quadrant.
| create | property |
public var create:FunctionPlaceholder function for creating new quadrant node from a cache of objects. Saves recreating objects and GC problems.
| hasContent | property |
public var hasContent:Boolean = falseSays if node has content or not
| leftbottom | property |
public var leftbottom:QuadTreeNodeThe quadrant tree node for the bottom left quadrant.
| leftbottomFlag | property |
public var leftbottomFlag:BooleanDetermines if the bounds of the bottom left quadrant need re-calculating.
| lefttop | property |
public var lefttop:QuadTreeNodeThe quadrant tree node for the top left quadrant.
| lefttopFlag | property |
public var lefttopFlag:BooleanDetermines if the bounds of the top left quadrant need re-calculating.
| maxlevel | property |
public var maxlevel:int = 4
| onlysource | property |
public var onlysource:DisplayObject3D
hold the 3d object referenced when onlysourceFlag is true.
| onlysourceFlag | property |
public var onlysourceFlag:Boolean = trueDetermines if the quadrant node contains only one source.
| parent | property |
public var parent:QuadTreeNodeThe quadrant parent.
| rightbottom | property |
public var rightbottom:QuadTreeNodeThe quadrant tree node for the bottom right quadrant.
| rightbottomFlag | property |
public var rightbottomFlag:BooleanDetermines if the bounds of the bottom right quadrant need re-calculating.
| righttop | property |
public var righttop:QuadTreeNodeThe quadrant tree node for the top right quadrant.
| righttopFlag | property |
public var righttopFlag:BooleanDetermines if the bounds of the top right quadrant need re-calculating.
| xdiv | property |
public var xdiv:NumberThe x coordinate of the quadrant division.
| ydiv | property |
public var ydiv:NumberThe x coordinate of the quadrant division.
| QuadTreeNode | () | constructor |
public function QuadTreeNode(xdiv:Number, ydiv:Number, width:Number, height:Number, level:int, parent:QuadTreeNode = null, maxLevel:uint = 4)
Creates a new PrimitiveQuadrantTreeNode object.
xdiv:Number — The x coordinate for the division between left and right child quadrants.
|
|
ydiv:Number — The y coordinate for the division between top and bottom child quadrants.
|
|
width:Number — The width of the quadrant node.
|
|
height:Number — The height of the quadrant node.
|
|
level:int — The iteration number of the quadrant node.
|
|
parent:QuadTreeNode (default = null) — The parent quadrant of the quadrant node.
|
|
maxLevel:uint (default = 4) — The deepest a Node can go
|
| getRect | () | method |
public function getRect():Rectangle
Returns
Rectangle |
| push | () | method |
public function push(pri:RenderableListItem):voidAdds a primitive to the quadrant
Parameterspri:RenderableListItem |
| render | () | method |
public function render(limit:Number, renderSessionData:RenderSessionData, graphics:Graphics):voidSorts and renders the contents of the quadrant tree
Parameterslimit:Number |
|
renderSessionData:RenderSessionData |
|
graphics:Graphics |
| reset | () | method |
public function reset(xdiv:Number, ydiv:Number, width:Number, height:Number, maxLevel:uint):voidClears the quadrant of all primitives and child nodes
Parametersxdiv:Number |
|
ydiv:Number |
|
width:Number |
|
height:Number |
|
maxLevel:uint |