Packageaway3d.core.draw
Classpublic final class PrimitiveQuadrantTree
ImplementsIPrimitiveConsumer

Quadrant tree for storing drawing primitives

Public Properties
 PropertyDefined by
  clip : Clipping
Defines the clipping object to be used on the drawing primitives.
PrimitiveQuadrantTree
Public Methods
 MethodDefined by
  
get(pri:DrawPrimitive, ex:Object3D = null):Array
Returns an array containing all primiives overlapping the specifed primitive's quadrant.
PrimitiveQuadrantTree
  
list():Array
A list of primitives that have been clipped.
PrimitiveQuadrantTree
  
Adds a drawing primitive to the primitive consumer
PrimitiveQuadrantTree
  
remove(pri:DrawPrimitive):void
removes a drawing primitive from the quadrant tree.
PrimitiveQuadrantTree
  
render():void
Calls the render function on all primitives in the quadrant tree
PrimitiveQuadrantTree
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
Method detail
get()method
public function get(pri:DrawPrimitive, ex:Object3D = null):Array

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

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

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

A list of primitives that have been clipped.

Returns
Array — An array containing the primitives to be rendered.
primitive()method 
public function primitive(pri:DrawPrimitive):void

Adds a drawing primitive to the primitive consumer

Parameters
pri:DrawPrimitive — The drawing primitive to add.
remove()method 
public function remove(pri:DrawPrimitive):void

removes a drawing primitive from the quadrant tree.

Parameters
pri:DrawPrimitive — The drawing primitive to remove.
render()method 
public function render():void

Calls the render function on all primitives in the quadrant tree

Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments