Packageaway3d.core.render
Classpublic class QuadrantRenderer
ImplementsIPrimitiveConsumer, IRenderer

Renderer that uses quadrant tree for storing and operating drawing primitives. Quadrant tree speeds up all proximity based calculations.

Public Properties
 PropertyDefined by
  filters : Array
Defines the array of filters to be used on the drawing primitives.
QuadrantRenderer
Public Methods
 MethodDefined by
  
QuadrantRenderer
(... filters)
Creates a new QuadrantRenderer object.
QuadrantRenderer
  
clear(view:View3D):void
QuadrantRenderer
  
QuadrantRenderer
  
get(pri:DrawPrimitive, ex:Object3D = null):Array
Returns an array containing all primiives overlapping the specifed primitive's quadrant.
QuadrantRenderer
  
list():Array
A list of primitives that have been clipped.
QuadrantRenderer
  
primitive(pri:DrawPrimitive):Boolean
Adds a drawing primitive to the primitive consumer
QuadrantRenderer
  
remove(pri:DrawPrimitive):void
removes a drawing primitive from the quadrant tree.
QuadrantRenderer
  
render(view:View3D):void
QuadrantRenderer
  
toString():String
Used to trace the values of a renderer.
QuadrantRenderer
Property detail
filtersproperty
filters:Array  [read-write]

Defines the array of filters to be used on the drawing primitives.

Implementation
    public function get filters():Array
    public function set filters(value:Array):void
Constructor detail
QuadrantRenderer()constructor
public function QuadrantRenderer(... filters)Parameters
... filters — [optional] An array of filters to use on projected drawing primitives before rendering them to screen.
Init Parameters
Method detail
clear()method
public function clear(view:View3D):void Parameters
view:View3D
clone()method 
public function clone():IPrimitiveConsumer

Returns
IPrimitiveConsumer
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):Boolean

Adds a drawing primitive to the primitive consumer

Parameters
pri:DrawPrimitive — The drawing primitive to add.

Returns
Boolean — Whether the primitive was added.
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(view:View3D):void Parameters
view:View3D
toString()method 
public function toString():String

Used to trace the values of a renderer.

Returns
String — A string representation of the renderer object.
Wiki link
Click to go to the wiki page for 'away3d.core.render.QuadrantRenderer'

Code examples

Comments