Packageaway3d.core.render
Classpublic class BitmapRenderSession
InheritanceBitmapRenderSession Inheritance AbstractRenderSession Inheritance flash.events.EventDispatcher

Drawing session object that renders all drawing primitives into a Bitmap container.

Public Properties
 PropertyDefined by
 Inheritedalpha : Number = 1
Placeholder for alpha property of containers
AbstractRenderSession
 InheritedblendMode : String
Placeholder for blendMode property of containers
AbstractRenderSession
 Inheritedconsumer : IPrimitiveConsumer
AbstractRenderSession
 Inheritedfilters : Array
Placeholder for filters property of containers
AbstractRenderSession
 Inheritedgraphics : Graphics
Reference to the current graphics object being used for drawing.
AbstractRenderSession
 Inheritedlayer : DisplayObject
AbstractRenderSession
 Inheritedparent : AbstractRenderSession
AbstractRenderSession
 Inheritedpriconsumers : Dictionary
AbstractRenderSession
 Inheritedprimitives : Array
AbstractRenderSession
 Inheritedrenderer : IPrimitiveConsumer
AbstractRenderSession
 InheritedscreenZ : Number
AbstractRenderSession
 Inheritedsessions : Array
Array of child sessions.
AbstractRenderSession
 Inheritedupdated : Boolean
AbstractRenderSession
Public Methods
 MethodDefined by
  
BitmapRenderSession
(scale:Number = 2)
Creates a new BitmapRenderSession object.
BitmapRenderSession
 Inherited
Adds a session as a child of the session object.
AbstractRenderSession
  
addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
BitmapRenderSession
 Inherited
addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
AbstractRenderSession
  
clear(view:View3D):void
Clears the render session.
BitmapRenderSession
 Inherited
AbstractRenderSession
 Inherited
AbstractRenderSession
  
Duplicates the render session's properties to another render session.
BitmapRenderSession
  
getBitmapContainer(view:View3D):Bitmap
BitmapRenderSession
  
getBitmapData(view:View3D):BitmapData
Returns a bitmapData object containing the rendered view.
BitmapRenderSession
 Inherited
AbstractRenderSession
  
getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view.
BitmapRenderSession
 Inherited
getLightShape(material:LayerMaterial, level:int, parent:Sprite, light:LightPrimitive):Shape
AbstractRenderSession
 Inherited
getLightShapeLayer(view:View3D):Dictionary
AbstractRenderSession
 Inherited
getShape(material:LayerMaterial, level:int, parent:Sprite):Shape
AbstractRenderSession
 Inherited
getShapeLayer(view:View3D):Dictionary
AbstractRenderSession
 Inherited
getSprite(material:LayerMaterial, level:int, parent:Sprite = null):Sprite
AbstractRenderSession
 Inherited
getSpriteLayer(view:View3D):Dictionary
AbstractRenderSession
 Inherited
getTotalFaces(view:View3D):int
AbstractRenderSession
 Inherited
Removes a child session of the session object.
AbstractRenderSession
 Inherited
removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
AbstractRenderSession
  
render(view:View3D):void
BitmapRenderSession
 Inherited
renderBitmap(bitmap:BitmapData, v0:ScreenVertex, smooth:Boolean = false):void
Draws a non-scaled bitmap into the graphics object.
AbstractRenderSession
 Inherited
renderDot(color:int, alpha:Number, x:Number, y:Number, layerGraphics:Graphics = null, w:int = 1):void
Draws a rect dot at given coordinates
AbstractRenderSession
 Inherited
renderFogColor(clip:Clipping, color:int, alpha:Number):void
Draws a fog element into the graphics object.
AbstractRenderSession
 Inherited
renderLine(v0x:Number, v0y:Number, v1x:Number, v1y:Number, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object.
AbstractRenderSession
 Inherited
renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void
Draws a bitmap with a precalculated matrix into the graphics object.
AbstractRenderSession
 Inherited
renderSpriteBitmap(bitmap:BitmapData, primitive:DrawSprite, smooth:Boolean):void
Draws a billboard element with a fill bitmap into the graphics object.
AbstractRenderSession
 Inherited
renderSpriteColor(color:int, alpha:Number, primitive:DrawSprite):void
Draws a billboard element with a fill color into the graphics object.
AbstractRenderSession
 Inherited
renderTriangleBitmap(bitmap:BitmapData, uvtData:Vector, screenVertices:Array, screenIndices:Array, startIndex:Number, endIndex:Number, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object (Flash 10)
AbstractRenderSession
 Inherited
renderTriangleBitmapMask(bitmap:BitmapData, offX:Number, offY:Number, sc:Number, screenVertices:Array, screenIndices:Array, startIndex:Number, endIndex:Number, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object, with no uv transforms.
AbstractRenderSession
 Inherited
renderTriangleColor(color:int, alpha:Number, screenVertices:Array, commands:Array, screenIndices:Array, startIndex:Number, endIndex:Number, layerGraphics:Graphics = null):void
Draws a triangle element with a fill color into the graphics object.
AbstractRenderSession
 Inherited
renderTriangleLine(thickness:Number, wireColor:int, wireAlpha:Number, screenVertices:Array, commands:Array, screenIndices:Array, startIndex:Number, endIndex:Number):void
Draws a wire triangle element into the graphics object.
AbstractRenderSession
 Inherited
renderTriangleLineFill(thickness:Number, color:int, alpha:Number, wireColor:int, wireAlpha:Number, screenVertices:Array, commands:Array, screenIndices:Array, startIndex:int, endIndex:int):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.
BitmapRenderSession
 Inherited
createShape(parent:Sprite):Shape
AbstractRenderSession
  
createSprite(parent:Sprite = null):Sprite
BitmapRenderSession
 Inherited
AbstractRenderSession
Events
 EventSummaryDefined by
 Inherited Dispatched when the render contents of the session require updating.AbstractRenderSession
Constructor detail
BitmapRenderSession()constructor
public function BitmapRenderSession(scale:Number = 2)Parameters
scale:Number (default = 2) — [optional] Defines the scale of the pixel resolution in base pixels. Default value is 2.
Init Parameters
Method detail
addDisplayObject()method
public override function addDisplayObject(child:DisplayObject):void

Adds a display object to the render session display list.

Parameters
child:DisplayObject — The display object to add.
clear()method 
public override function clear(view:View3D):void

Clears the render session.

Parameters
view:View3D
clone()method 
public override 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 override function createLayer():void

Creates a new render layer for rendering composite materials.

createSprite()method 
protected override function createSprite(parent:Sprite = null):Sprite

Parameters
parent:Sprite (default = null)

Returns
Sprite
getBitmapContainer()method 
public function getBitmapContainer(view:View3D):Bitmap Parameters
view:View3D

Returns
Bitmap
getBitmapData()method 
public function getBitmapData(view:View3D):BitmapData

Returns a bitmapData object containing the rendered view.

Parameters
view:View3D — The view object being rendered.

Returns
BitmapData — The bitmapData object.
getContainer()method 
public override 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.
render()method 
public override function render(view:View3D):void

Parameters
view:View3D
Wiki link
Click to go to the wiki page for 'away3d.core.render.BitmapRenderSession'

Code examples

Comments