Packageaway3d.core.render
Classpublic class QuadrantRenderer
InheritanceQuadrantRenderer Inheritance Renderer Inheritance Object

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



Public Properties
 PropertyDefined By
 InheritedBASIC : Renderer
[static] [read-only] Fastest and simplest renderer, useful for many applications.
Renderer
 InheritedCORRECT_Z_ORDER : Renderer
[static] [read-only] Perform reordering of triangles after sorting to guarantee their correct rendering.
Renderer
  filters : Array
Defines the array of filters to be used on the drawing primitives.
QuadrantRenderer
 InheritedINTERSECTING_OBJECTS : Renderer
[static] [read-only] Perform triangles splitting to correctly render scenes with intersecting objects.
Renderer
 InheritedprimitiveCommands : Vector.<Vector.<String>>
Renderer
 InheritedprimitiveElements : Vector.<ElementVO>
Renderer
 InheritedprimitiveGenerated : Vector.<Boolean>
Renderer
 InheritedprimitiveMaterials : Vector.<Material>
Renderer
 InheritedprimitiveProperties : Vector.<Number>
Renderer
 InheritedprimitiveScreenZ : Vector.<Number>
Renderer
 InheritedprimitiveSource : Vector.<ViewSourceObject>
Renderer
 InheritedprimitiveType : Vector.<uint>
Renderer
 InheritedprimitiveUVs : Vector.<UV>
Renderer
Protected Properties
 PropertyDefined By
 Inherited_spriteVO : SpriteVO
Renderer
 Inherited_viewSourceObject : ViewSourceObject
Renderer
Public Methods
 MethodDefined By
  
QuadrantRenderer(... filters)
Creates a new QuadrantRenderer object.
QuadrantRenderer
  
clear():void
[override]
QuadrantRenderer
  
[override]
QuadrantRenderer
 Inherited
createDrawDisplayObject(spriteVO:SpriteVO, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
 Inherited
createDrawFog(fogVO:FogVO, clip:Clipping):uint
Renderer
 Inherited
createDrawSegment(segmentVO:SegmentVO, commands:Vector.<String>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, generated:Boolean = false):uint
Renderer
 Inherited
createDrawSprite(spriteVO:SpriteVO, material:Material, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
 Inherited
createDrawTriangle(faceVO:FaceVO, commands:Vector.<String>, uvs:Vector.<UV>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, area:Number = 0, generated:Boolean = false):uint
Renderer
  
getRivals(priIndex:uint, ex:Object3D = null):Vector.<uint>
Returns an array containing all primiives overlapping the specifed primitive's quadrant.
QuadrantRenderer
  
list():Vector.<uint>
[override] A list of primitives that have been clipped.
QuadrantRenderer
  
primitive(priIndex:uint):Boolean
[override]
QuadrantRenderer
  
remove(priIndex:uint):void
removes a drawing primitive from the quadrant tree.
QuadrantRenderer
  
render():void
[override]
QuadrantRenderer
  
toString():String
[override]
QuadrantRenderer
Property Detail
filtersproperty
filters:Array

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)

Creates a new QuadrantRenderer object.

Parameters
... filters — [optional] An array of filters to use on projected drawing primitives before rendering them to screen.
####INIT####
Method Detail
clear()method
override public function clear():void

clone()method 
override public function clone():Renderer

Returns
Renderer
getRivals()method 
public function getRivals(priIndex:uint, ex:Object3D = null):Vector.<uint>

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

Parameters

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

Returns
Vector.<uint> — An array of drawing primitives.
list()method 
override public function list():Vector.<uint>

A list of primitives that have been clipped.

Returns
Vector.<uint> — An array containing the primitives to be rendered.
primitive()method 
override public function primitive(priIndex:uint):Boolean

Parameters

priIndex:uint

Returns
Boolean
remove()method 
public function remove(priIndex:uint):void

removes a drawing primitive from the quadrant tree.

Parameters

priIndex:uint — The drawing primitive to remove.

render()method 
override public function render():void

toString()method 
override public function toString():String

Returns
String