Packageaway3d.core.render
Classpublic final class QuadrantTreeNode

Quadrant tree node

Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
QuadrantTreeNode
(xdiv:Number, ydiv:Number, width:Number, height:Number, level:int, renderer:QuadrantRenderer, parent:QuadrantTreeNode = null)
Creates a new PrimitiveQuadrantTreeNode object.
QuadrantTreeNode
  
push(renderer:QuadrantRenderer, priIndex:uint):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
Property detail
centerproperty
public var center:Array

Array of primitives indices that belong to the quadrant.

leftbottomproperty 
public var leftbottom:QuadrantTreeNode

The quadrant tree node for the bottom left quadrant.

leftbottomFlagproperty 
public var leftbottomFlag:Boolean

Determines if the bounds of the bottom left quadrant need re-calculating.

lefttopproperty 
public var lefttop:QuadrantTreeNode

The quadrant tree node for the top left quadrant.

lefttopFlagproperty 
public var lefttopFlag:Boolean

Determines if the bounds of the top left quadrant need re-calculating.

onlysourceproperty 
public var onlysource:Object3D

hold the 3d object referenced when onlysourceFlag is true.

onlysourceFlagproperty 
public var onlysourceFlag:Boolean = true

Determines if the quadrant node contains only one source.

parentproperty 
public var parent:QuadrantTreeNode

The quadrant parent.

rendererproperty 
public var renderer:QuadrantRenderer

The quadrant renderer.

rightbottomproperty 
public var rightbottom:QuadrantTreeNode

The quadrant tree node for the bottom right quadrant.

rightbottomFlagproperty 
public var rightbottomFlag:Boolean

Determines if the bounds of the bottom right quadrant need re-calculating.

righttopproperty 
public var righttop:QuadrantTreeNode

The quadrant tree node for the top right quadrant.

righttopFlagproperty 
public var righttopFlag:Boolean

Determines if the bounds of the top right quadrant need re-calculating.

screenZsproperty 
public var screenZs:Array

Array of primitives screenZs that belong to the quadrant.

xdivproperty 
public var xdiv:Number

The x coordinate of the quadrant division.

ydivproperty 
public var ydiv:Number

The x coordinate of the quadrant division.

Constructor detail
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)
Init Parameters
Method detail
push()method
public function push(renderer:QuadrantRenderer, priIndex:uint):QuadrantTreeNode

Adds a primitive to the quadrant

Parameters
renderer:QuadrantRenderer
 
priIndex:uint

Returns
QuadrantTreeNode
render()method 
public function render(limit:Number):void

Sorts and renders the contents of the quadrant tree

Parameters
limit:Number
reset()method 
public function reset(xdiv:Number, ydiv:Number, width:Number, height:Number):void

Clears the quadrant of all primitives and child nodes

Parameters
xdiv:Number
 
ydiv:Number
 
width:Number
 
height:Number
Wiki link
Click to go to the wiki page for 'away3d.core.render.QuadrantTreeNode'

Code examples

Comments