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

Sprite container used for storing camera, scene, renderer and clipping references, and resolving mouse events



Public Properties
 PropertyDefined By
  camera : Camera3D
Camera used when rendering.
View3D
  clipping : Clipping
Clipping used when rendering.
View3D
  mouseEnabled3D : Boolean = true
Specifies whether the view receives 3d mouse events.
View3D
  mouseZeroMove : Boolean
Forces mousemove events to fire even when cursor is static.
View3D
  renderedFaces : int
[read-only] Returns the total amount of faces rendered in the last executed render
View3D
  renderedObjects : int
[read-only] Returns the total amount of objects rendered in the last executed render
View3D
  renderer : Renderer
Renderer object used to traverse the scenegraph and output the drawing primitives required to render the scene to the view.
View3D
  scene : Scene3D
Scene used when rendering.
View3D
  totalFaces : int
[read-only] Returns the total amount of faces processed in the last executed render
View3D
  totalObjects : int
[read-only] Returns the total amount of 3d objects processed in the last executed render
View3D
Public Methods
 MethodDefined By
  
View3D(scene:Scene3D = null, camera:Camera3D = null, renderer:Renderer = null, clipping:Clipping = null)
Creates a new View3D object.
View3D
  
addSourceURL(url:String):void
Defines a source url string that can be accessed though a View Source option in the right-click menu.
View3D
  
render():void
Renders a snapshot of the view.
View3D
Property Detail
cameraproperty
camera:Camera3D

Camera used when rendering.


Implementation
    public function get camera():Camera3D
    public function set camera(value:Camera3D):void

See also

clippingproperty 
clipping:Clipping

Clipping used when rendering.


Implementation
    public function get clipping():Clipping
    public function set clipping(value:Clipping):void

See also

render()
mouseEnabled3Dproperty 
public var mouseEnabled3D:Boolean = true

Specifies whether the view receives 3d mouse events.

See also

mouseZeroMoveproperty 
public var mouseZeroMove:Boolean

Forces mousemove events to fire even when cursor is static.

renderedFacesproperty 
renderedFaces:int  [read-only]

Returns the total amount of faces rendered in the last executed render


Implementation
    public function get renderedFaces():int

See also

renderedObjectsproperty 
renderedObjects:int  [read-only]

Returns the total amount of objects rendered in the last executed render


Implementation
    public function get renderedObjects():int

See also

rendererproperty 
renderer:Renderer

Renderer object used to traverse the scenegraph and output the drawing primitives required to render the scene to the view.


Implementation
    public function get renderer():Renderer
    public function set renderer(value:Renderer):void

See also

sceneproperty 
scene:Scene3D

Scene used when rendering.


Implementation
    public function get scene():Scene3D
    public function set scene(value:Scene3D):void

See also

render()
totalFacesproperty 
totalFaces:int  [read-only]

Returns the total amount of faces processed in the last executed render


Implementation
    public function get totalFaces():int

See also

totalObjectsproperty 
totalObjects:int  [read-only]

Returns the total amount of 3d objects processed in the last executed render


Implementation
    public function get totalObjects():int

See also

Constructor Detail
View3D()Constructor
public function View3D(scene:Scene3D = null, camera:Camera3D = null, renderer:Renderer = null, clipping:Clipping = null)

Creates a new View3D object.

Parameters
scene:Scene3D (default = null) — Scene used when rendering.
 
camera:Camera3D (default = null) — Camera used when rendering.
 
renderer:Renderer (default = null) — Renderer object used to traverse the scenegraph and output the drawing primitives required to render the scene to the view.
 
clipping:Clipping (default = null) — Clipping used when rendering.
####INIT####
Method Detail
addSourceURL()method
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.

render()method 
public function render():void

Renders a snapshot of the view.