Packageaway3d.core.render
Classpublic class AbstractRenderSession
SubclassesBitmapRenderSession, SpriteRenderSession

Abstract Drawing session object containing the method used for drawing the view to screen. Not intended for direct use - use SpriteRenderSession or BitmapRenderSession.

Public Properties
 PropertyDefined by
  children : Dictionary
Dictionary of child displayobjects.
AbstractRenderSession
  graphics : Graphics
Reference to the current graphics object being used for drawing.
AbstractRenderSession
  lightarray : LightArray
Defines the light provider object for the render sesion.
AbstractRenderSession
  newLayer : Sprite
Holds the last added layer sprite.
AbstractRenderSession
  sessions : Dictionary
Dictionary of child sessions.
AbstractRenderSession
  spriteLayers : Array
Dictionary of sprite layers for rendering composite materials.
AbstractRenderSession
  view : View3D
Defines the view object used for the render session.
AbstractRenderSession
Public Methods
 MethodDefined by
  
addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
AbstractRenderSession
  
addLayerObject(child:Sprite):void
Adds a layer sprite to the render session display list.
AbstractRenderSession
  
clear():void
Clears the render session.
AbstractRenderSession
  
Duplicates the render session's properties to another render session.
AbstractRenderSession
  
flush():void
Flushes any cached drawing operations to screen.
AbstractRenderSession
  
getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view.
AbstractRenderSession
  
Adds a session as a child of the session object.
AbstractRenderSession
  
renderBitmap(bitmap:BitmapData, v0:ScreenVertex, smooth:Boolean = false):void
Draws a non-scaled bitmap into the graphics object.
AbstractRenderSession
  
renderFogColor(color:int, alpha:Number):void
Draws a fog element into the graphics object.
AbstractRenderSession
  
renderLine(v0:ScreenVertex, v1:ScreenVertex, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object.
AbstractRenderSession
  
renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void
Draws a bitmap with a precalculated matrix into the graphics object.
AbstractRenderSession
  
renderTriangleBitmap(bitmap:BitmapData, map:Matrix, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object.
AbstractRenderSession
  
renderTriangleColor(color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a triangle element with a fill color into the graphics object.
AbstractRenderSession
  
renderTriangleLine(width:Number, color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a wire triangle element into the graphics object.
AbstractRenderSession
  
renderTriangleLineFill(width:Number, color:int, alpha:Number, wirecolor:int, wirealpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a wire triangle element with a fill color into the graphics object.
AbstractRenderSession
Protected Methods
 MethodDefined by
  
createLayer():void
Creates a new render layer for rendering composite materials.
AbstractRenderSession
Property detail
childrenproperty
public var children:Dictionary

Dictionary of child displayobjects.

doActiveproperty 
arcane var doActive:Array

Array for storing added displayobjects to the canvas

doStoreproperty 
arcane var doStore:Array

Array for storing old displayobjects to the canvas

graphicsproperty 
public var graphics:Graphics

Reference to the current graphics object being used for drawing.

lightarrayproperty 
lightarray:LightArray  [read-write]

Defines the light provider object for the render sesion.

Implementation
    public function get lightarray():LightArray
    public function set lightarray(value:LightArray):void
newLayerproperty 
public var newLayer:Sprite

Holds the last added layer sprite.

sessionsproperty 
public var sessions:Dictionary

Dictionary of child sessions.

spriteLayersproperty 
public var spriteLayers:Array

Dictionary of sprite layers for rendering composite materials.

See also

viewproperty 
view:View3D  [read-write]

Defines the view object used for the render session.

Implementation
    public function get view():View3D
    public function set view(value:View3D):void
Method detail
addDisplayObject()method
public function addDisplayObject(child:DisplayObject):void

Adds a display object to the render session display list.

Parameters
child:DisplayObject — The display object to add.
addLayerObject()method 
public function addLayerObject(child:Sprite):void

Adds a layer sprite to the render session display list. Doesn't update graphics so that elements in comosite materials can render in separate layers.

Parameters
child:Sprite — The display object to add.
clear()method 
public function clear():void

Clears the render session.

clone()method 
public function clone():AbstractRenderSession

Duplicates the render session's properties to another render session.

Returns
AbstractRenderSession — The new render session instance with duplicated properties applied
createLayer()method 
protected function createLayer():void

Creates a new render layer for rendering composite materials.

See also

flush()method 
public function flush():void

Flushes any cached drawing operations to screen.

getContainer()method 
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.
registerChildSession()method 
public function registerChildSession(session:AbstractRenderSession):void

Adds a session as a child of the session object.

Parameters
session:AbstractRenderSession — The session object to be added as a child.
renderBitmap()method 
public function renderBitmap(bitmap:BitmapData, v0:ScreenVertex, smooth:Boolean = false):void

Draws a non-scaled bitmap into the graphics object.

Parameters
bitmap:BitmapData
 
v0:ScreenVertex
 
smooth:Boolean (default = false)
renderFogColor()method 
public function renderFogColor(color:int, alpha:Number):void

Draws a fog element into the graphics object.

Parameters
color:int
 
alpha:Number
renderLine()method 
public function renderLine(v0:ScreenVertex, v1:ScreenVertex, width:Number, color:uint, alpha:Number):void

Draws a segment element into the graphics object.

Parameters
v0:ScreenVertex
 
v1:ScreenVertex
 
width:Number
 
color:uint
 
alpha:Number
renderScaledBitmap()method 
public function renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void

Draws a bitmap with a precalculated matrix into the graphics object.

Parameters
primitive:DrawScaledBitmap
 
bitmap:BitmapData
 
mapping:Matrix
 
smooth:Boolean (default = false)
renderTriangleBitmap()method 
public function renderTriangleBitmap(bitmap:BitmapData, map:Matrix, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void

Draws a triangle element with a bitmap texture into the graphics object.

Parameters
bitmap:BitmapData
 
map:Matrix
 
v0:ScreenVertex
 
v1:ScreenVertex
 
v2:ScreenVertex
 
smooth:Boolean
 
repeat:Boolean
 
layerGraphics:Graphics (default = null)
renderTriangleColor()method 
public function renderTriangleColor(color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void

Draws a triangle element with a fill color into the graphics object.

Parameters
color:int
 
alpha:Number
 
v0:ScreenVertex
 
v1:ScreenVertex
 
v2:ScreenVertex
renderTriangleLine()method 
public function renderTriangleLine(width:Number, color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void

Draws a wire triangle element into the graphics object.

Parameters
width:Number
 
color:int
 
alpha:Number
 
v0:ScreenVertex
 
v1:ScreenVertex
 
v2:ScreenVertex
renderTriangleLineFill()method 
public function renderTriangleLineFill(width:Number, color:int, alpha:Number, wirecolor:int, wirealpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void

Draws a wire triangle element with a fill color into the graphics object.

Parameters
width:Number
 
color:int
 
alpha:Number
 
wirecolor:int
 
wirealpha:Number
 
v0:ScreenVertex
 
v1:ScreenVertex
 
v2:ScreenVertex
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments