Package | away3d.core.draw |
Class | public final class PrimitiveQuadrantTree |
Implements | IPrimitiveConsumer |
Property | Defined by | ||
---|---|---|---|
clip : Clipping
Defines the clipping object to be used on the drawing primitives.
| PrimitiveQuadrantTree |
Method | Defined by | ||
---|---|---|---|
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 | ||
removes a drawing primitive from the quadrant tree.
| PrimitiveQuadrantTree | ||
render():void
Calls the render function on all primitives in the quadrant tree
| PrimitiveQuadrantTree |
clip | property |
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
get | () | method |
public function get(pri:DrawPrimitive, ex:Object3D = null):Array
Returns an array containing all primiives overlapping the specifed primitive's quadrant.
Parameterspri:DrawPrimitive — The drawing primitive to check.
|
|
ex:Object3D (default = null ) — [optional] Excludes primitives that are children of the 3d object.
|
Array — An array of drawing primitives.
|
list | () | method |
public function list():Array
A list of primitives that have been clipped.
ReturnsArray — An array containing the primitives to be rendered.
|
primitive | () | method |
public function primitive(pri:DrawPrimitive):void
Adds a drawing primitive to the primitive consumer
Parameterspri:DrawPrimitive — The drawing primitive to add.
|
remove | () | method |
public function remove(pri:DrawPrimitive):void
removes a drawing primitive from the quadrant tree.
Parameterspri:DrawPrimitive — The drawing primitive to remove.
|
render | () | method |
public function render():void
Calls the render function on all primitives in the quadrant tree