| Package | away3d.core.session |
| Class | public class BitmapSession |
| Inheritance | BitmapSession AbstractSession flash.events.EventDispatcher |
Bitmap container.
| Method | Defined By | ||
|---|---|---|---|
BitmapSession(scale:Number = 2)
Creates a new BitmapRenderSession object. | BitmapSession | ||
![]() | addChildSession(session:AbstractSession):void
Adds a session as a child of the session object. | AbstractSession | |
addDisplayObject(child:DisplayObject):void [override]
Adds a display object to the render session display list. | BitmapSession | ||
![]() | addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
| AbstractSession | |
[override]
Clears the render session. | BitmapSession | ||
![]() | clearChildSessions():void | AbstractSession | |
![]() | clearRenderers():void | AbstractSession | |
[override]
Duplicates the render session's properties to another render session. | BitmapSession | ||
getBitmapContainer(view:View3D):Bitmap | BitmapSession | ||
getBitmapData(view:View3D):BitmapData
Returns a bitmapData object containing the rendered view. | BitmapSession | ||
getContainer(view:View3D):DisplayObject [override]
Returns a display object representing the container for the specified view. | BitmapSession | ||
![]() | AbstractSession | ||
![]() | getLightShapeLayer(view:View3D):Dictionary | AbstractSession | |
![]() | AbstractSession | ||
![]() | getShape(material:LayerMaterial, level:int, parent:Sprite):Shape | AbstractSession | |
![]() | getShapeLayer(view:View3D):Dictionary | AbstractSession | |
![]() | getSprite(material:LayerMaterial, level:int, parent:Sprite = null):Sprite | AbstractSession | |
![]() | getSpriteLayer(view:View3D):Dictionary | AbstractSession | |
![]() | getTotalFaces(view:View3D):int | AbstractSession | |
![]() | removeChildSession(session:AbstractSession):void
Removes a child session of the session object. | AbstractSession | |
![]() | removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
| AbstractSession | |
[override]
| BitmapSession | ||
![]() | renderDot(color:int, alpha:Number, x:Number, y:Number, layerGraphics:Graphics = null, w:int = 1):void
Draws a rect dot at given coordinates
| AbstractSession | |
![]() | renderFogColor(color:int, alpha:Number, minX:Number, maxX:Number, minY:Number, maxY:Number):void
Draws a fog element into the graphics object. | AbstractSession | |
![]() | renderLine(v0x:Number, v0y:Number, v1x:Number, v1y:Number, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object. | AbstractSession | |
![]() | renderSpriteBitmap(bitmap:BitmapData, smooth:Boolean, priIndex:uint, viewSourceObject:ViewSourceObject, renderer:Renderer):void
Draws a billboard element with a fill bitmap into the graphics object. | AbstractSession | |
![]() | renderSpriteColor(color:int, alpha:Number, priIndex:uint, viewSourceObject:ViewSourceObject, renderer:Renderer):void
Draws a billboard element with a fill color into the graphics object. | AbstractSession | |
![]() | 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. | AbstractSession | |
![]() | renderTriangleBitmap(bitmap:BitmapData, uvtData:Vector.<Number>, screenVertices:Vector.<Number>, screenIndices:Vector.<int>, 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)
| AbstractSession | |
![]() | renderTriangleBitmapMask(bitmap:BitmapData, offX:Number, offY:Number, sc:Number, screenVertices:Vector.<Number>, screenIndices:Vector.<int>, 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. | AbstractSession | |
![]() | renderTriangleColor(color:int, alpha:Number, screenVertices:Vector.<Number>, commands:Vector.<String>, screenIndices:Vector.<int>, startIndex:Number, endIndex:Number, layerGraphics:Graphics = null):void
Draws a triangle element with a fill color into the graphics object. | AbstractSession | |
![]() | renderTriangleLine(thickness:Number, wireColor:int, wireAlpha:Number, screenVertices:Vector.<Number>, commands:Vector.<String>, screenIndices:Vector.<int>, startIndex:Number, endIndex:Number):void
Draws a wire triangle element into the graphics object. | AbstractSession | |
![]() | renderTriangleLineFill(thickness:Number, color:int, alpha:Number, wireColor:int, wireAlpha:Number, screenVertices:Vector.<Number>, commands:Vector.<String>, screenIndices:Vector.<int>, startIndex:int, endIndex:int):void
Draws a wire triangle element with a fill color into the graphics object. | AbstractSession | |
| Method | Defined By | ||
|---|---|---|---|
createLayer():void [override]
Creates a new render layer for rendering composite materials. | BitmapSession | ||
![]() | createShape(parent:Sprite):Shape | AbstractSession | |
createSprite(parent:Sprite = null):Sprite [override]
| BitmapSession | ||
![]() | onSessionUpdate(event:SessionEvent):void | AbstractSession | |
| BitmapSession | () | Constructor |
public function BitmapSession(scale:Number = 2)
Creates a new BitmapRenderSession object.
scale:Number (default = 2) — [optional] Defines the scale of the pixel resolution in base pixels. Default value is 2.
|
| addDisplayObject | () | method |
override public function addDisplayObject(child:DisplayObject):voidAdds a display object to the render session display list.
Parameters
child:DisplayObject — The display object to add.
|
| clear | () | method |
| clone | () | method |
override public function clone():AbstractSessionDuplicates the render session's properties to another render session.
ReturnsAbstractSession — The new render session instance with duplicated properties applied
|
| createLayer | () | method |
override protected function createLayer():voidCreates a new render layer for rendering composite materials.
| createSprite | () | method |
override protected function createSprite(parent:Sprite = null):Sprite
Parameters
parent:Sprite (default = null) |
Sprite |
| getBitmapContainer | () | method |
| getBitmapData | () | method |
public function getBitmapData(view:View3D):BitmapDataReturns a bitmapData object containing the rendered view.
Parameters
view:View3D — The view object being rendered.
|
BitmapData — The bitmapData object.
|
| getContainer | () | method |
override public function getContainer(view:View3D):DisplayObjectReturns a display object representing the container for the specified view.
Parameters
view:View3D — The view object being rendered.
|
DisplayObject — The display object container.
|
| render | () | method |