protected var _aspectRatio:Numberprotected var _backBufferInvalid:Boolean = trueprotected var _camera:Camera3Dprotected var _depthRender:Textureprotected var _entityCollector:EntityCollectorprotected var _filter3DRenderer:Filter3DRendererprotected var _mouse3DManager:Mouse3DManagerprotected var _parentIsStage:Booleanprotected var _renderer:RendererBaseprotected var _requireDepthRender:Booleanprotected var _rttBufferManager:RTTBufferManagerprotected var _scene:Scene3Dprotected var _scissorRect:Rectangleprotected var _shareContext:Boolean = falseprotected var _stage3DProxy:Stage3DProxyantiAlias:uint
The amount of anti-aliasing to be used.
Implementation public function get antiAlias():uint public function set antiAlias(value:uint):voidbackground:Texture2DBase Implementation public function get background():Texture2DBase public function set background(value:Texture2DBase):voidbackgroundAlpha:Number Implementation public function get backgroundAlpha():Number public function set backgroundAlpha(value:Number):voidbackgroundColor: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):voidcamera: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):voiddeltaTime:uint [read-only]
The amount of milliseconds the last render call took
Implementation public function get deltaTime():uintdepthPrepass:Boolean Implementation public function get depthPrepass():Boolean public function set depthPrepass(value:Boolean):voidfilters:Array[override]
Not supported. Use filters3d instead.
Implementation public function get filters():Array public function set filters(value:Array):voidfilters3d:Array Implementation public function get filters3d():Array public function set filters3d(value:Array):voidforceMouseMove: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):voidheight: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):voidlayeredView: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):voidmousePicker:IPicker Implementation public function get mousePicker():IPicker public function set mousePicker(value:IPicker):voidrenderedFacesCount:uint [read-only]
The amount of faces that were pushed through the render pipeline on the last frame render.
Implementation public function get renderedFacesCount():uintrenderer:RendererBase
The renderer used to draw the scene.
Implementation public function get renderer():RendererBase public function set renderer(value:RendererBase):voidrightClickMenuEnabled:Boolean Implementation public function get rightClickMenuEnabled():Boolean public function set rightClickMenuEnabled(value:Boolean):voidrotation:Number [write-only] [override]
Implementation public function set rotation(value:Number):voidrotationX:Number [write-only] [override]
Implementation public function set rotationX(value:Number):voidrotationY:Number [write-only] [override]
Implementation public function set rotationY(value:Number):voidrotationZ:Number [write-only] [override]
Implementation public function set rotationZ(value:Number):voidscaleX:Number [write-only] [override]
Implementation public function set scaleX(value:Number):voidscaleY:Number [write-only] [override]
Implementation public function set scaleY(value:Number):voidscaleZ:Number [write-only] [override]
Implementation public function set scaleZ(value:Number):voidscene:Scene3D
The scene that's used to render for this viewport
Implementation public function get scene():Scene3D public function set scene(value:Scene3D):voidshareContext: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):voidstage3DProxy:Stage3DProxy Implementation public function get stage3DProxy():Stage3DProxy public function set stage3DProxy(value:Stage3DProxy):voidtransform:Transform [write-only] [override]
Implementation public function set transform(value:Transform):voidvisible:Boolean [write-only] [override]
Implementation public function set visible(value:Boolean):voidwidth: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):voidx:Number [write-only] [override]
Implementation public function set x(value:Number):voidy:Number [write-only] [override]
Implementation public function set y(value:Number):voidz:Number [write-only] [override]
Implementation public function set z(value:Number):voidpublic 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
Tue May 7 2013, 10:42 PM +01:00