Packageorg.papervision3d.core.render.data
Classpublic final class QuadTree

Quadrant tree for storing drawing primitives



Public Properties
 PropertyDefined by
  clip : Clipping
Defines the clipping object to be used on the drawing primitives.
QuadTree
  maxLevel : uint
QuadTree
Public Methods
 MethodDefined by
  
add(renderItem:RenderableListItem):void
QuadTree
  
getOverlaps(renderItem:RenderableListItem, ex:DisplayObject3D = null):Array
Returns an array containing all primiives overlapping the specifed primitive's quadrant.
QuadTree
  
QuadTree
  
list():Array
A list of primitives that have been clipped.
QuadTree
  
remove(renderItem:RenderableListItem):void
removes a drawing primitive from the quadrant tree.
QuadTree
  
render(renderSessionData:RenderSessionData, graphics:Graphics):void
Calls the render function on all primitives in the quadrant tree
QuadTree
Property detail
clipproperty
clip:Clipping  [read-write]

Defines the clipping object to be used on the drawing primitives.

Implementation
    public function get clip():Clipping
    public function set clip(value:Clipping):void
maxLevelproperty 
maxLevel:uint  [read-write]Implementation
    public function get maxLevel():uint
    public function set maxLevel(value:uint):void
Method detail
add()method
public function add(renderItem:RenderableListItem):void

Parameters
renderItem:RenderableListItem
getOverlaps()method 
public function getOverlaps(renderItem:RenderableListItem, ex:DisplayObject3D = null):Array

Returns an array containing all primiives overlapping the specifed primitive's quadrant.

Parameters
renderItem:RenderableListItem — The drawing primitive to check.
 
ex:DisplayObject3D (default = null) — [optional] Excludes primitives that are children of the 3d object.

Returns
Array — An array of drawing primitives.
getRoot()method 
public function getRoot():QuadTreeNode

Returns
QuadTreeNode
list()method 
public function list():Array

A list of primitives that have been clipped.

Returns
Array — An array containing the primitives to be rendered.
remove()method 
public function remove(renderItem:RenderableListItem):void

removes a drawing primitive from the quadrant tree.

Parameters
renderItem:RenderableListItem — The drawing primitive to remove.
render()method 
public function render(renderSessionData:RenderSessionData, graphics:Graphics):void

Calls the render function on all primitives in the quadrant tree

Parameters
renderSessionData:RenderSessionData
 
graphics:Graphics