Package | away3d.core.session |
Class | public class AbstractSession |
Inheritance | AbstractSession flash.events.EventDispatcher |
Subclasses | BitmapSession, SpriteSession |
SpriteRenderSession
or BitmapRenderSession
.
Property | Defined By | ||
---|---|---|---|
alpha : Number = 1
Placeholder for alpha property of containers
| AbstractSession | ||
blendMode : String
Placeholder for blendMode property of containers
| AbstractSession | ||
consumer : Renderer | AbstractSession | ||
filters : Array
Placeholder for filters property of containers
| AbstractSession | ||
graphics : Graphics
Reference to the current graphics object being used for drawing. | AbstractSession | ||
layer : DisplayObject | AbstractSession | ||
object3D : Object3D | AbstractSession | ||
parent : AbstractSession | AbstractSession | ||
priconsumers : Dictionary | AbstractSession | ||
primitives : Array | AbstractSession | ||
renderer : Renderer | AbstractSession | ||
screenZ : Number | AbstractSession | ||
sessions : Array
Array of child sessions. | AbstractSession | ||
updated : Boolean | AbstractSession |
Method | Defined By | ||
---|---|---|---|
addChildSession(session:AbstractSession):void
Adds a session as a child of the session object. | AbstractSession | ||
addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list. | AbstractSession | ||
addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
| AbstractSession | ||
Clears the render session. | AbstractSession | ||
clearChildSessions():void | AbstractSession | ||
clearRenderers():void | AbstractSession | ||
Duplicates the render session's properties to another render session. | AbstractSession | ||
getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view. | AbstractSession | ||
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 | ||
AbstractSession | |||
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
Creates a new render layer for rendering composite materials. | AbstractSession | ||
createShape(parent:Sprite):Shape | AbstractSession | ||
createSprite(parent:Sprite = null):Sprite | AbstractSession | ||
onSessionUpdate(event:SessionEvent):void | AbstractSession |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the render contents of the session require updating. | AbstractSession |
_shapeActive | property |
arcane var _shapeActive:Array
Array for storing added displayobjects to the canvas
_shapeStore | property |
arcane var _shapeStore:Array
Array for storing old displayobjects to the canvas
_spriteActive | property |
arcane var _spriteActive:Array
Array for storing added displayobjects to the canvas
_spriteStore | property |
arcane var _spriteStore:Array
Array for storing old displayobjects to the canvas
alpha | property |
public var alpha:Number = 1
Placeholder for alpha property of containers
blendMode | property |
public var blendMode:String
Placeholder for blendMode property of containers
consumer | property |
public var consumer:Renderer
filters | property |
public var filters:Array
Placeholder for filters property of containers
graphics | property |
public var graphics:Graphics
Reference to the current graphics object being used for drawing.
layer | property |
public var layer:DisplayObject
object3D | property |
public var object3D:Object3D
parent | property |
public var parent:AbstractSession
priconsumers | property |
public var priconsumers:Dictionary
primitives | property |
public var primitives:Array
renderer | property |
renderer:Renderer
public function get renderer():Renderer
public function set renderer(value:Renderer):void
screenZ | property |
public var screenZ:Number
sessions | property |
public var sessions:Array
Array of child sessions.
updated | property |
public var updated:Boolean
addChildSession | () | method |
public function addChildSession(session:AbstractSession):void
Adds a session as a child of the session object.
Parameters
session:AbstractSession — The session object to be added as a child.
|
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.
|
addOnSessionUpdate | () | method |
public function addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
Parameters
listener:Function — The listener function
|
clear | () | method |
clearChildSessions | () | method |
public function clearChildSessions():void
clearRenderers | () | method |
public function clearRenderers():void
clone | () | method |
public function clone():AbstractSession
Duplicates the render session's properties to another render session.
ReturnsAbstractSession — 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
createShape | () | method |
protected function createShape(parent:Sprite):Shape
Parameters
parent:Sprite |
Shape |
createSprite | () | method |
protected function createSprite(parent:Sprite = null):Sprite
Parameters
parent:Sprite (default = null )
|
Sprite |
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.
|
DisplayObject — The display object container.
|
getLightShape | () | method |
public function getLightShape(material:LayerMaterial, level:int, parent:Sprite, light:AbstractLight):Shape
Parameters
material:LayerMaterial | |
level:int | |
parent:Sprite | |
light:AbstractLight |
Shape |
getLightShapeLayer | () | method |
getRenderer | () | method |
getShape | () | method |
public function getShape(material:LayerMaterial, level:int, parent:Sprite):Shape
Parameters
material:LayerMaterial | |
level:int | |
parent:Sprite |
Shape |
getShapeLayer | () | method |
getSprite | () | method |
public function getSprite(material:LayerMaterial, level:int, parent:Sprite = null):Sprite
Parameters
material:LayerMaterial | |
level:int | |
parent:Sprite (default = null )
|
Sprite |
getSpriteLayer | () | method |
getTotalFaces | () | method |
onSessionUpdate | () | method |
removeChildSession | () | method |
public function removeChildSession(session:AbstractSession):void
Removes a child session of the session object.
Parameters
session:AbstractSession — The session object to be removed.
|
removeOnSessionUpdate | () | method |
public function removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
Parameters
listener:Function — The listener function
|
render | () | method |
renderDot | () | method |
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 )
|
renderFogColor | () | method |
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 |
renderLine | () | method |
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 |
renderSpriteBitmap | () | method |
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
bitmap:BitmapData | |
smooth:Boolean | |
priIndex:uint | |
viewSourceObject:ViewSourceObject | |
renderer:Renderer |
renderSpriteColor | () | method |
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
color:int | |
alpha:Number | |
priIndex:uint | |
viewSourceObject:ViewSourceObject | |
renderer:Renderer |
renderSpriteLine | () | method |
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
thickness:Number | |
wireColor:int | |
wireAlpha:Number | |
priIndex:uint | |
viewSourceObject:ViewSourceObject | |
renderer:Renderer |
renderTriangleBitmap | () | method |
public function 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)
Parameters
bitmap:BitmapData | |
uvtData:Vector.<Number> | |
screenVertices:Vector.<Number> | |
screenIndices:Vector.<int> | |
startIndex:uint | |
endIndex:uint | |
smooth:Boolean | |
repeat:Boolean | |
layerGraphics:Graphics (default = null )
|
renderTriangleBitmapMask | () | method |
public function 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.
Parameters
bitmap:BitmapData | |
offX:Number | |
offY:Number | |
sc:Number | |
screenVertices:Vector.<Number> | |
screenIndices:Vector.<int> | |
startIndex:uint | |
endIndex:uint | |
smooth:Boolean | |
repeat:Boolean | |
layerGraphics:Graphics (default = null )
|
renderTriangleColor | () | method |
public function 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.
Parameters
color:int | |
alpha:Number | |
screenVertices:Vector.<Number> | |
commands:Vector.<String> | |
screenIndices:Vector.<int> | |
startIndex:Number | |
endIndex:Number | |
layerGraphics:Graphics (default = null )
|
renderTriangleLine | () | method |
public function 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.
Parameters
thickness:Number | |
wireColor:int | |
wireAlpha:Number | |
screenVertices:Vector.<Number> | |
commands:Vector.<String> | |
screenIndices:Vector.<int> | |
startIndex:Number | |
endIndex:Number |
renderTriangleLineFill | () | method |
public function 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.
Parameters
thickness:Number | |
color:int | |
alpha:Number | |
wireColor:int | |
wireAlpha:Number | |
screenVertices:Vector.<Number> | |
commands:Vector.<String> | |
screenIndices:Vector.<int> | |
startIndex:int | |
endIndex:int |
sessionUpdated | Event |
away3d.events.SessionEvent
away3d.events.SessionEvent
Dispatched when the render contents of the session require updating.