| Package | away3d.core.render |
| Class | public final class QuadrantTreeNode |
| Property | Defined by | ||
|---|---|---|---|
| center : Array
Array of primitives indices that belong to the quadrant.
| QuadrantTreeNode | ||
| leftbottom : QuadrantTreeNode
The quadrant tree node for the bottom left quadrant.
| QuadrantTreeNode | ||
| leftbottomFlag : Boolean
Determines if the bounds of the bottom left quadrant need re-calculating.
| QuadrantTreeNode | ||
| lefttop : QuadrantTreeNode
The quadrant tree node for the top left quadrant.
| QuadrantTreeNode | ||
| lefttopFlag : Boolean
Determines if the bounds of the top left quadrant need re-calculating.
| QuadrantTreeNode | ||
| onlysource : Object3D
hold the 3d object referenced when
onlysourceFlag is true. | QuadrantTreeNode | ||
| onlysourceFlag : Boolean = true
Determines if the quadrant node contains only one source.
| QuadrantTreeNode | ||
| parent : QuadrantTreeNode
The quadrant parent.
| QuadrantTreeNode | ||
| renderer : QuadrantRenderer
The quadrant renderer.
| QuadrantTreeNode | ||
| rightbottom : QuadrantTreeNode
The quadrant tree node for the bottom right quadrant.
| QuadrantTreeNode | ||
| rightbottomFlag : Boolean
Determines if the bounds of the bottom right quadrant need re-calculating.
| QuadrantTreeNode | ||
| righttop : QuadrantTreeNode
The quadrant tree node for the top right quadrant.
| QuadrantTreeNode | ||
| righttopFlag : Boolean
Determines if the bounds of the top right quadrant need re-calculating.
| QuadrantTreeNode | ||
| screenZs : Array
Array of primitives screenZs that belong to the quadrant.
| QuadrantTreeNode | ||
| xdiv : Number
The x coordinate of the quadrant division.
| QuadrantTreeNode | ||
| ydiv : Number
The x coordinate of the quadrant division.
| QuadrantTreeNode | ||
| Method | Defined by | ||
|---|---|---|---|
|
QuadrantTreeNode
(xdiv:Number, ydiv:Number, width:Number, height:Number, level:int, renderer:QuadrantRenderer, parent:QuadrantTreeNode = null)
Creates a new
PrimitiveQuadrantTreeNode object. | QuadrantTreeNode | ||
|
Adds a primitive to the quadrant
| QuadrantTreeNode | ||
|
render(limit:Number):void
Sorts and renders the contents of the quadrant tree
| QuadrantTreeNode | ||
|
reset(xdiv:Number, ydiv:Number, width:Number, height:Number):void
Clears the quadrant of all primitives and child nodes
| QuadrantTreeNode | ||
| center | property |
public var center:Array
Array of primitives indices that belong to the quadrant.
| leftbottom | property |
public var leftbottom:QuadrantTreeNode
The quadrant tree node for the bottom left quadrant.
| leftbottomFlag | property |
public var leftbottomFlag:Boolean
Determines if the bounds of the bottom left quadrant need re-calculating.
| lefttop | property |
public var lefttop:QuadrantTreeNode
The quadrant tree node for the top left quadrant.
| lefttopFlag | property |
public var lefttopFlag:Boolean
Determines if the bounds of the top left quadrant need re-calculating.
| onlysource | property |
public var onlysource:Object3D
hold the 3d object referenced when onlysourceFlag is true.
| onlysourceFlag | property |
public var onlysourceFlag:Boolean = true
Determines if the quadrant node contains only one source.
| parent | property |
public var parent:QuadrantTreeNode
The quadrant parent.
| renderer | property |
public var renderer:QuadrantRenderer
The quadrant renderer.
| rightbottom | property |
public var rightbottom:QuadrantTreeNode
The quadrant tree node for the bottom right quadrant.
| rightbottomFlag | property |
public var rightbottomFlag:Boolean
Determines if the bounds of the bottom right quadrant need re-calculating.
| righttop | property |
public var righttop:QuadrantTreeNode
The quadrant tree node for the top right quadrant.
| righttopFlag | property |
public var righttopFlag:Boolean
Determines if the bounds of the top right quadrant need re-calculating.
| screenZs | property |
public var screenZs:Array
Array of primitives screenZs that belong to the quadrant.
| xdiv | property |
public var xdiv:Number
The x coordinate of the quadrant division.
| ydiv | property |
public var ydiv:Number
The x coordinate of the quadrant division.
| QuadrantTreeNode | () | constructor |
public function QuadrantTreeNode(xdiv:Number, ydiv:Number, width:Number, height:Number, level:int, renderer:QuadrantRenderer, parent:QuadrantTreeNode = null)Parameters
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.
|
|
renderer:QuadrantRenderer — The parent quadrant of the quadrant node.
|
|
parent:QuadrantTreeNode (default = null) |
| push | () | method |
public function push(renderer:QuadrantRenderer, priIndex:uint):QuadrantTreeNode
Adds a primitive to the quadrant
Parametersrenderer:QuadrantRenderer |
|
priIndex:uint |
QuadrantTreeNode |
| render | () | method |
public function render(limit:Number):void
Sorts and renders the contents of the quadrant tree
Parameterslimit:Number |
| reset | () | method |
public function reset(xdiv:Number, ydiv:Number, width:Number, height:Number):void
Clears the quadrant of all primitives and child nodes
Parametersxdiv:Number |
|
ydiv:Number |
|
width:Number |
|
height:Number |