Packageaway3d.containers
Classpublic class View3D
InheritanceView3D Inheritance flash.display.Sprite

Public Properties
 PropertyDefined by
  _addedToStage : Boolean
View3D
  antiAlias : uint
The amount of anti-aliasing to be used.
View3D
  backgroundColor : uint
The background color of the screen.
View3D
  camera : Camera3D
The camera that's used to render the scene for this viewport
View3D
  deltaTime : uint
[read-only] The amount of milliseconds the last render call took
View3D
  height : Number
The height of the viewport
View3D
  renderedFacesCount : uint
[read-only] The amount of faces that were pushed through the render pipeline on the last frame render.
View3D
  renderer : RendererBase
The renderer used to draw the scene.
View3D
  scaleX : Number
View3D
  scaleY : Number
View3D
  scene : Scene3D
[read-only] The scene that's used to render for this viewport
View3D
  width : Number
The width of the viewport
View3D
  x : Number
The horizontal coordinate of the top-left position of the viewport.
View3D
  y : Number
The vertical coordinate of the top-left position of the viewport.
View3D
Public Methods
 MethodDefined by
  
View3D
(scene:Scene3D = null, camera:Camera3D = null, renderer:DefaultRenderer = null)
View3D
  
dispose():void
Disposes all memory occupied by the view.
View3D
  
render():void
Renders the view.
View3D
  
unproject(mX:Number, mY:Number):Vector3D
View3D
Property detail
_addedToStageproperty
public var _addedToStage:Boolean
antiAliasproperty 
antiAlias:uint  [read-write]

The amount of anti-aliasing to be used.

Implementation
    public function get antiAlias():uint
    public function set antiAlias(value:uint):void
backgroundColorproperty 
backgroundColor:uint  [read-write]

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
cameraproperty 
camera:Camera3D  [read-write]

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
deltaTimeproperty 
deltaTime:uint  [read-only]

The amount of milliseconds the last render call took

Implementation
    public function get deltaTime():uint
heightproperty 
height:Number  [read-write]

The height of the viewport

Implementation
    public function get height():Number
    public function set height(value:Number):void
renderedFacesCountproperty 
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
rendererproperty 
renderer:RendererBase  [read-write]

The renderer used to draw the scene.

Implementation
    public function get renderer():RendererBase
    public function set renderer(value:RendererBase):void
scaleXproperty 
scaleX:Number  [read-write]Implementation
    public function get scaleX():Number
    public function set scaleX(value:Number):void
scaleYproperty 
scaleY:Number  [read-write]Implementation
    public function get scaleY():Number
    public function set scaleY(value:Number):void
sceneproperty 
scene:Scene3D  [read-only]

The scene that's used to render for this viewport

Implementation
    public function get scene():Scene3D
widthproperty 
width:Number  [read-write]

The width of the viewport

Implementation
    public function get width():Number
    public function set width(value:Number):void
xproperty 
x:Number  [read-write]

The horizontal coordinate of the top-left position of the viewport.

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

The vertical coordinate of the top-left position of the viewport.

Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor detail
View3D()constructor
public function View3D(scene:Scene3D = null, camera:Camera3D = null, renderer:DefaultRenderer = null)Parameters
scene:Scene3D (default = null)
 
camera:Camera3D (default = null)
 
renderer:DefaultRenderer (default = null)
Init Parameters
Method detail
dispose()method
public function dispose():void

Disposes all memory occupied by the view. This will also dispose the renderer.

render()method 
public function render():void

Renders the view.

unproject()method 
public function unproject(mX:Number, mY:Number):Vector3D Parameters
mX:Number
 
mY:Number

Returns
Vector3D
Wiki link
Click to go to the wiki page for 'away3d.containers.View3D'

Code examples

Comments