Abstract Drawing session object containing the method used for drawing the view to screen.
Not intended for direct use - use
SpriteRenderSession
or
BitmapRenderSession
.
public var alpha:Number = 1
Placeholder for alpha property of containers
public var blendMode:String
Placeholder for blendMode property of containers
public var consumer:Renderer
public var filters:Array
Placeholder for filters property of containers
public var graphics:Graphics
Reference to the current graphics object being used for drawing.
public var layer:DisplayObject
public var object3D:Object3D
public var parent:AbstractSession
public var priconsumers:Dictionary
public var primitives:Array
protected var _r:Renderer
protected var _renderer:Renderer
renderer:Renderer
[read-write]
Implementation
public function get renderer():Renderer
public function set renderer(value:Renderer):void
protected var _renderers:Dictionary
public var screenZ:Number
public var sessions:Array
Array of child sessions.
arcane var _shapeActive:Array
Array for storing added displayobjects to the canvas
arcane var _shapeStore:Array
Array for storing old displayobjects to the canvas
arcane var _spriteActive:Array
Array for storing added displayobjects to the canvas
arcane var _spriteStore:Array
Array for storing old displayobjects to the canvas
public var updated:Boolean
public function addChildSession(session:AbstractSession):void
Adds a session as a child of the session object.
Parameters
public function addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
Parameters
| child:DisplayObject — The display object to add.
|
public function addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
Parameters
| listener:Function — The listener function
|
public function clear(view:View3D):void
Clears the render session.
Parameters
public function clearChildSessions():void
public function clearRenderers():void
public function clone():AbstractSession
Duplicates the render session's properties to another render session.
Returns
| AbstractSession —
The new render session instance with duplicated properties applied
|
protected function createLayer():void
Creates a new render layer for rendering composite materials.
See also
protected function createShape(parent:Sprite):Shape
Parameters
Returns
protected function createSprite(parent:Sprite = null):Sprite
Parameters
| parent:Sprite (default = null )
|
Returns
public function getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view.
Parameters
| view:View3D — The view object being rendered.
|
Returns
| DisplayObject — The display object container.
|
public function getLightShape(material:LayerMaterial, level:int, parent:Sprite, light:AbstractLight):Shape
Parameters
Returns
public function getLightShapeLayer(view:View3D):Dictionary
Parameters
Returns
public function getRenderer(view:View3D):Renderer
Parameters
Returns
public function getShape(material:LayerMaterial, level:int, parent:Sprite):Shape
Parameters
Returns
public function getShapeLayer(view:View3D):Dictionary
Parameters
Returns
public function getSprite(material:LayerMaterial, level:int, parent:Sprite = null):Sprite
Parameters
Returns
public function getSpriteLayer(view:View3D):Dictionary
Parameters
Returns
public function getTotalFaces(view:View3D):int
Parameters
Returns
protected function onSessionUpdate(event:SessionEvent):void
Parameters
public function removeChildSession(session:AbstractSession):void
Removes a child session of the session object.
Parameters
public function removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
Parameters
| listener:Function — The listener function
|
public function render(view:View3D):void
Parameters
public function renderDot(color:int, alpha:Number, x:Number, y:Number, layerGraphics:Graphics = null, w:int = 1):void
Draws a rect dot at given coordinates
Parameters
| color:int |
|
| alpha:Number |
|
| x:Number |
|
| y:Number |
|
| layerGraphics:Graphics (default = null )
|
|
| w:int (default = 1 )
|
public function renderFogColor(color:int, alpha:Number, minX:Number, maxX:Number, minY:Number, maxY:Number):void
Draws a fog element into the graphics object.
Parameters
| color:int |
|
| alpha:Number |
|
| minX:Number |
|
| maxX:Number |
|
| minY:Number |
|
| maxY:Number |
public function renderLine(v0x:Number, v0y:Number, v1x:Number, v1y:Number, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object.
Parameters
| v0x:Number |
|
| v0y:Number |
|
| v1x:Number |
|
| v1y:Number |
|
| width:Number |
|
| color:uint |
|
| alpha:Number |
public function renderSpriteBitmap(bitmap:BitmapData, smooth:Boolean, priIndex:uint, viewSourceObject:ViewSourceObject, renderer:Renderer):void
Draws a billboard element with a fill bitmap into the graphics object.
Parameters
public function renderSpriteColor(color:int, alpha:Number, priIndex:uint, viewSourceObject:ViewSourceObject, renderer:Renderer):void
Draws a billboard element with a fill color into the graphics object.
Parameters
public function renderSpriteLine(thickness:Number, wireColor:int, wireAlpha:Number, priIndex:uint, viewSourceObject:ViewSourceObject, renderer:Renderer):void
Draws a billboard element with a fill color into the graphics object.
Parameters
public function renderTriangleBitmap(bitmap:BitmapData, uvtData:Vector, screenVertices:Vector, screenIndices:Vector, startIndex:uint, endIndex:uint, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object (Flash 10)
Parameters
| bitmap:BitmapData |
|
| uvtData:Vector |
|
| screenVertices:Vector |
|
| screenIndices:Vector |
|
| startIndex:uint |
|
| endIndex:uint |
|
| smooth:Boolean |
|
| repeat:Boolean |
|
| layerGraphics:Graphics (default = null )
|
public function renderTriangleBitmapMask(bitmap:BitmapData, offX:Number, offY:Number, sc:Number, screenVertices:Vector, screenIndices:Vector, startIndex:uint, endIndex:uint, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object, with no uv transforms.
Parameters
| bitmap:BitmapData |
|
| offX:Number |
|
| offY:Number |
|
| sc:Number |
|
| screenVertices:Vector |
|
| screenIndices:Vector |
|
| startIndex:uint |
|
| endIndex:uint |
|
| smooth:Boolean |
|
| repeat:Boolean |
|
| layerGraphics:Graphics (default = null )
|
public function renderTriangleColor(color:int, alpha:Number, screenVertices:Vector, commands:Vector, screenIndices:Vector, startIndex:Number, endIndex:Number, layerGraphics:Graphics = null):void
Draws a triangle element with a fill color into the graphics object.
Parameters
| color:int |
|
| alpha:Number |
|
| screenVertices:Vector |
|
| commands:Vector |
|
| screenIndices:Vector |
|
| startIndex:Number |
|
| endIndex:Number |
|
| layerGraphics:Graphics (default = null )
|
public function renderTriangleLine(thickness:Number, wireColor:int, wireAlpha:Number, screenVertices:Vector, commands:Vector, screenIndices:Vector, startIndex:Number, endIndex:Number):void
Draws a wire triangle element into the graphics object.
Parameters
| thickness:Number |
|
| wireColor:int |
|
| wireAlpha:Number |
|
| screenVertices:Vector |
|
| commands:Vector |
|
| screenIndices:Vector |
|
| startIndex:Number |
|
| endIndex:Number |
public function renderTriangleLineFill(thickness:Number, color:int, alpha:Number, wireColor:int, wireAlpha:Number, screenVertices:Vector, commands:Vector, screenIndices:Vector, startIndex:int, endIndex:int):void
Draws a wire triangle element with a fill color into the graphics object.
Parameters
| thickness:Number |
|
| color:int |
|
| alpha:Number |
|
| wireColor:int |
|
| wireAlpha:Number |
|
| screenVertices:Vector |
|
| commands:Vector |
|
| screenIndices:Vector |
|
| startIndex:int |
|
| endIndex:int |
Event object type: away3d.events.SessionEvent
Dispatched when the render contents of the session require updating.