protected var _aspectRatio:Number
protected var _backBufferInvalid:Boolean = true
protected var _camera:Camera3D
protected var _depthRender:Texture
protected var _entityCollector:EntityCollector
protected var _filter3DRenderer:Filter3DRenderer
protected var _mouse3DManager:Mouse3DManager
protected var _parentIsStage:Boolean
protected var _renderer:RendererBase
protected var _requireDepthRender:Boolean
protected var _rttBufferManager:RTTBufferManager
protected var _scene:Scene3D
protected var _scissorRect:Rectangle
protected var _shareContext:Boolean = false
protected var _stage3DProxy:Stage3DProxy
protected var _touch3DManager:Touch3DManager
antiAlias:uint
The amount of anti-aliasing to be used.
Implementation public function get antiAlias():uint
public function set antiAlias(value:uint):void
background:Texture2DBase
Implementation public function get background():Texture2DBase
public function set background(value:Texture2DBase):void
backgroundAlpha:Number
Implementation public function get backgroundAlpha():Number
public function set backgroundAlpha(value:Number):void
backgroundColor:uint
The background color of the screen. This value is only used when clearAll is set to true.
Implementation public function get backgroundColor():uint
public function set backgroundColor(value:uint):void
camera:Camera3D
The camera that's used to render the scene for this viewport
Implementation public function get camera():Camera3D
public function set camera(value:Camera3D):void
deltaTime:uint
[read-only]
The amount of milliseconds the last render call took
Implementation public function get deltaTime():uint
depthPrepass:Boolean
Implementation public function get depthPrepass():Boolean
public function set depthPrepass(value:Boolean):void
filters:Array
[override]
Not supported. Use filters3d instead.
Implementation public function get filters():Array
public function set filters(value:Array):void
filters3d:Array
Implementation public function get filters3d():Array
public function set filters3d(value:Array):void
forceMouseMove:Boolean
Forces mouse-move related events even when the mouse hasn't moved. This allows mouseOver and mouseOut events
etc to be triggered due to changes in the scene graph. Defaults to false.
Implementation public function get forceMouseMove():Boolean
public function set forceMouseMove(value:Boolean):void
height:Number
[override]
The height of the viewport. When software rendering is used, this is limited by the
platform to 2048 pixels.
Implementation public function get height():Number
public function set height(value:Number):void
layeredView:Boolean
Used in a sharedContext. When true, clears the depth buffer prior to rendering this particular
view to avoid depth sorting with lower layers. When false, the depth buffer is not cleared
from the previous (lower) view's render so objects in this view may be occluded by the lower
layer. Defaults to false.
Implementation public function get layeredView():Boolean
public function set layeredView(value:Boolean):void
mousePicker:IPicker
Implementation public function get mousePicker():IPicker
public function set mousePicker(value:IPicker):void
renderedFacesCount:uint
[read-only]
The amount of faces that were pushed through the render pipeline on the last frame render.
Implementation public function get renderedFacesCount():uint
renderer:RendererBase
The renderer used to draw the scene.
Implementation public function get renderer():RendererBase
public function set renderer(value:RendererBase):void
rightClickMenuEnabled:Boolean
Implementation public function get rightClickMenuEnabled():Boolean
public function set rightClickMenuEnabled(value:Boolean):void
rotation:Number
[write-only] [override]
Implementation public function set rotation(value:Number):void
rotationX:Number
[write-only] [override]
Implementation public function set rotationX(value:Number):void
rotationY:Number
[write-only] [override]
Implementation public function set rotationY(value:Number):void
rotationZ:Number
[write-only] [override]
Implementation public function set rotationZ(value:Number):void
scaleX:Number
[write-only] [override]
Implementation public function set scaleX(value:Number):void
scaleY:Number
[write-only] [override]
Implementation public function set scaleY(value:Number):void
scaleZ:Number
[write-only] [override]
Implementation public function set scaleZ(value:Number):void
scene:Scene3D
The scene that's used to render for this viewport
Implementation public function get scene():Scene3D
public function set scene(value:Scene3D):void
shareContext:Boolean
Defers control of Context3D clear() and present() calls to Stage3DProxy, enabling multiple Stage3D frameworks
to share the same Context3D object.
Implementation public function get shareContext():Boolean
public function set shareContext(value:Boolean):void
stage3DProxy:Stage3DProxy
Implementation public function get stage3DProxy():Stage3DProxy
public function set stage3DProxy(value:Stage3DProxy):void
touchPicker:IPicker
Implementation public function get touchPicker():IPicker
public function set touchPicker(value:IPicker):void
transform:Transform
[write-only] [override]
Implementation public function set transform(value:Transform):void
visible:Boolean
[write-only] [override]
Implementation public function set visible(value:Boolean):void
width:Number
[override]
The width of the viewport. When software rendering is used, this is limited by the
platform to 2048 pixels.
Implementation public function get width():Number
public function set width(value:Number):void
x:Number
[write-only] [override]
Implementation public function set x(value:Number):void
y:Number
[write-only] [override]
Implementation public function set y(value:Number):void
z:Number
[write-only] [override]
Implementation public function set z(value:Number):void
public function View3D(scene:Scene3D = null, camera:Camera3D = null, renderer:RendererBase = null, forceSoftware:Boolean = false, profile:String = baseline)
Parameters | scene:Scene3D (default = null )
|
|
| camera:Camera3D (default = null )
|
|
| renderer:RendererBase (default = null )
|
|
| forceSoftware:Boolean (default = false )
|
|
| profile:String (default = baseline )
|
public function addSourceURL(url:String):void
Defines a source url string that can be accessed though a View Source option in the right-click menu.
Requires the stats panel to be enabled.
Parameters
| url:String — The url to the source files.
|
public function dispose():void
Disposes all memory occupied by the view. This will also dispose the renderer.
public function getRay(sX:Number, sY:Number, sZ:Number):Vector3D
Calculates the ray in scene space from the camera to the given screen coordinates.
eg. getRay(view.mouseX, view.mouseY, 500) returns the ray from the camera to a position under the mouse, 500 units into the screen.
Parameters
| sX:Number — The absolute x coordinate in 2D relative to View3D, representing the screenX coordinate.
|
|
| sY:Number — The absolute y coordinate in 2D relative to View3D, representing the screenY coordinate.
|
|
| sZ:Number — The distance into the screen, representing the screenZ coordinate.
|
Returns | Vector3D — The ray from the camera to the scene space position of the given screen coordinates.
|
public function project(point3d:Vector3D):Vector3D
Calculates the projected position in screen space of the given scene position.
Parameters
| point3d:Vector3D — the position vector of the point to be projected.
|
Returns | Vector3D — The absolute screen position of the given scene coordinates.
|
public function render():void
Renders the view.
protected function renderDepthPrepass(entityCollector:EntityCollector):void
Parameters
protected function renderSceneDepthToTexture(entityCollector:EntityCollector):void
Parameters
public function unproject(sX:Number, sY:Number, sZ:Number):Vector3D
Calculates the scene position of the given screen coordinates.
eg. unproject(view.mouseX, view.mouseY, 500) returns the scene position of the mouse 500 units into the screen.
Parameters
| sX:Number — The absolute x coordinate in 2D relative to View3D, representing the screenX coordinate.
|
|
| sY:Number — The absolute y coordinate in 2D relative to View3D, representing the screenY coordinate.
|
|
| sZ:Number — The distance into the screen, representing the screenZ coordinate.
|
Returns | Vector3D — The scene position of the given screen coordinates.
|
protected function updateBackBuffer():void
Updates the backbuffer dimensions.
protected function updateGlobalPos():void
protected function updateTime():void
protected function updateViewSizeData():void
Thu Jul 11 2013, 08:55 PM +01:00