Package | away3d.containers |
Class | public class View3D |
Inheritance | View3D flash.display.Sprite |
Property | Defined by | ||
---|---|---|---|
background : Sprite
A background sprite positioned under the rendered scene.
| View3D | ||
camera : Camera3D
Camera used when rendering.
| View3D | ||
cameraVarsStore : CameraVarsStore
[read-only]
| View3D | ||
clipping : Clipping
Clipping area used when rendering.
| View3D | ||
forceUpdate : Boolean
Defines whether the view always redraws on a render, or just redraws what 3d objects change.
| View3D | ||
foreground : Sprite
A container for 2D overlays positioned over the rendered scene.
| View3D | ||
hitManager : HitManager
[read-only]
| View3D | ||
mouseEvents : Boolean
Enables/Disables mouse interactivity.
| View3D | ||
mouseMaterial : Material
Current material under the mouse.
| View3D | ||
mouseObject : Object3D
Current object under the mouse.
| View3D | ||
mouseZeroMove : Boolean
Forces mousemove events to fire even when cursor is static.
| View3D | ||
overlay : Sprite
An overlay sprite positioned on top of the rendered scene.
| 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 | ||
screenClipping : Clipping
[read-only]
| View3D | ||
session : AbstractSession
Session object used to draw all drawing primitives returned from the renderer to the view container.
| View3D | ||
sourceURL : String
Optional string for storing source url.
| View3D | ||
stats : Boolean
Enables/Disables stats panel.
| View3D | ||
statsOpen : Boolean
Keeps track of whether the stats panel is currently open.
| View3D | ||
statsPanel : Stats
Object instance of the stats panel.
| View3D | ||
updated : Boolean [read-only]
Flag used to determine if the camera has updated the view.
| View3D | ||
viewSourceObject : ViewSourceObject
[read-only]
| View3D |
Method | Defined by | ||
---|---|---|---|
View3D
(init:Object = null)
Creates a new
View3D object. | View3D | ||
addOnMouseDown(listener:Function):void
Default method for adding a mouseDown3d event listener.
| View3D | ||
addOnMouseMove(listener:Function):void
Default method for adding a mouseMove3d event listener.
| View3D | ||
addOnMouseOut(listener:Function):void
Default method for adding a 3d mouseOut event listener.
| View3D | ||
addOnMouseOver(listener:Function):void
Default method for adding a 3d mouseOver event listener.
| View3D | ||
addOnMouseUp(listener:Function):void
Default method for adding a mouseUp3d event listener.
| View3D | ||
Adds an overlay effect on top of the view container.
| 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 | ||
clear():void
Clears previously rendered view from all render sessions.
| View3D | ||
fireMouseEvent(type:String, x:Number, y:Number, ctrlKey:Boolean = false, shiftKey:Boolean = false):void
Collects all information from the given type of 3d mouse event into a
MouseEvent3D object that can be accessed from the getMouseEvent() method. | View3D | ||
fireMouseMoveEvent(force:Boolean = false):void
Manually fires a mouseMove3D event.
| View3D | ||
getBitmapData():BitmapData
Returns the
bitmapData of the rendered scene. | View3D | ||
getContainer():DisplayObject
Returns the
DisplayObject container of the rendered scene. | View3D | ||
removeOnMouseDown(listener:Function):void
Default method for removing a mouseDown3d event listener.
| View3D | ||
removeOnMouseMove(listener:Function):void
Default method for removing a mouseMove3D event listener.
| View3D | ||
removeOnMouseOut(listener:Function):void
Default method for removing a 3d mouseOut event listener.
| View3D | ||
removeOnMouseOver(listener:Function):void
Default method for removing a 3d mouseOver event listener.
| View3D | ||
removeOnMouseUp(listener:Function):void
Default method for removing a 3d mouseUp event listener.
| View3D | ||
Removes an overlay effect on top of the view container.
| View3D | ||
render():void
Renders a snapshot of the view to the render session's view container.
| View3D | ||
updateScreenClipping():void
| View3D |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when a user presses the let hand mouse button while the cursor is over a 3d object | View3D | |||
Dispatched when a user moves the cursor while it is over a 3d object | View3D | |||
Dispatched when a user moves the cursor away from a 3d object | View3D | |||
Dispatched when a user moves the cursor over a 3d object | View3D | |||
Dispatched when a user releases the let hand mouse button while the cursor is over a 3d object | View3D |
background | property |
public var background:Sprite
A background sprite positioned under the rendered scene.
camera | property |
camera:Camera3D
[read-write]Camera used when rendering.
Implementation public function get camera():Camera3D
public function set camera(value:Camera3D):void
See also
cameraVarsStore | property |
cameraVarsStore:CameraVarsStore
[read-only]Implementation
public function get cameraVarsStore():CameraVarsStore
clipping | property |
clipping:Clipping
[read-write]
Clipping area used when rendering.
If null, the visible edges of the screen are located with the Clipping.screen()
method.
public function get clipping():Clipping
public function set clipping(value:Clipping):void
See also
forceUpdate | property |
public var forceUpdate:Boolean
Defines whether the view always redraws on a render, or just redraws what 3d objects change. Defaults to false.
See also
foreground | property |
public var foreground:Sprite
A container for 2D overlays positioned over the rendered scene.
hitManager | property |
mouseEvents | property |
public var mouseEvents:Boolean
Enables/Disables mouse interactivity.
mouseMaterial | property |
public var mouseMaterial:Material
Current material under the mouse.
mouseObject | property |
public var mouseObject:Object3D
Current object under the mouse.
mouseZeroMove | property |
public var mouseZeroMove:Boolean
Forces mousemove events to fire even when cursor is static.
overlay | property |
public var overlay:Sprite
An overlay sprite positioned on top of the rendered scene.
renderer | property |
renderer:Renderer
[read-write]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
scene | property |
scene:Scene3D
[read-write]Scene used when rendering.
Implementation public function get scene():Scene3D
public function set scene(value:Scene3D):void
See also
screenClipping | property |
session | property |
session:AbstractSession
[read-write]Session object used to draw all drawing primitives returned from the renderer to the view container.
Implementation public function get session():AbstractSession
public function set session(value:AbstractSession):void
See also
sourceURL | property |
public var sourceURL:String
Optional string for storing source url.
stats | property |
statsOpen | property |
public var statsOpen:Boolean
Keeps track of whether the stats panel is currently open.
See also
statsPanel | property |
updated | property |
updated:Boolean
[read-only]Flag used to determine if the camera has updated the view.
Implementation public function get updated():Boolean
See also
viewSourceObject | property |
viewSourceObject:ViewSourceObject
[read-only]Implementation
public function get viewSourceObject():ViewSourceObject
View3D | () | constructor |
public function View3D(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
stats:Boolean (default = true) | |
session:Object | |
scene:ObjectOrInit (default = Scene3D) | |
camera:ObjectOrInit (default = Camera3D) | |
renderer:Object | |
clipping:Object (default = Clipping) | |
x:Number (default = 0) | |
y:Number (default = 0) | |
forceUpdate:Boolean (default = false) | |
mouseZeroMove:Boolean (default = false) | |
mouseEvents:Boolean (default = true) |
addOnMouseDown | () | method |
public function addOnMouseDown(listener:Function):void
Default method for adding a mouseDown3d event listener.
Parameterslistener:Function — The listener function.
|
addOnMouseMove | () | method |
public function addOnMouseMove(listener:Function):void
Default method for adding a mouseMove3d event listener.
Parameterslistener:Function — The listener function.
|
addOnMouseOut | () | method |
public function addOnMouseOut(listener:Function):void
Default method for adding a 3d mouseOut event listener.
Parameterslistener:Function — The listener function.
|
addOnMouseOver | () | method |
public function addOnMouseOver(listener:Function):void
Default method for adding a 3d mouseOver event listener.
Parameterslistener:Function — The listener function.
|
addOnMouseUp | () | method |
public function addOnMouseUp(listener:Function):void
Default method for adding a mouseUp3d event listener.
Parameterslistener:Function — The listener function.
|
addOverlay | () | method |
public function addOverlay(value:IOverlay):void
Adds an overlay effect on top of the view container.
Parametersvalue:IOverlay |
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.
Parametersurl:String — The url to the source files.
|
clear | () | method |
public function clear():void
Clears previously rendered view from all render sessions.
See also
fireMouseEvent | () | method |
public function fireMouseEvent(type:String, x:Number, y:Number, ctrlKey:Boolean = false, shiftKey:Boolean = false):void
Collects all information from the given type of 3d mouse event into a MouseEvent3D
object that can be accessed from the getMouseEvent()
method.
type:String — The type of 3d mouse event being triggered - can be MOUSE_UP, MOUSE_DOWN, MOUSE_OVER, MOUSE_OUT, and MOUSE_MOVE.
|
|
x:Number — The x coordinate being used for the 3d mouse event.
|
|
y:Number — The y coordinate being used for the 3d mouse event.
|
|
ctrlKey:Boolean (default = false ) — [optional] The ctrl key value being used for the 3d mouse event.
|
|
shiftKey:Boolean (default = false ) — [optional] The shift key value being used for the 3d mouse event.
|
See also
fireMouseMoveEvent | () | method |
public function fireMouseMoveEvent(force:Boolean = false):void
Manually fires a mouseMove3D event.
Parametersforce:Boolean (default = false )
|
getBitmapData | () | method |
public function getBitmapData():BitmapData
Returns the bitmapData
of the rendered scene.
session
is required to be an instance of BitmapRenderSession
, otherwise an error is thrown.
BitmapData — The rendered view image.
|
— incorrect session object - require BitmapRenderSession.
|
See also
getContainer | () | method |
public function getContainer():DisplayObject
Returns the DisplayObject
container of the rendered scene.
DisplayObject — The DisplayObject containing the output from the render session of the view.
|
See also
removeOnMouseDown | () | method |
public function removeOnMouseDown(listener:Function):void
Default method for removing a mouseDown3d event listener.
Parameterslistener:Function — The listener function.
|
removeOnMouseMove | () | method |
public function removeOnMouseMove(listener:Function):void
Default method for removing a mouseMove3D event listener.
Parameterslistener:Function — The listener function.
|
removeOnMouseOut | () | method |
public function removeOnMouseOut(listener:Function):void
Default method for removing a 3d mouseOut event listener.
Parameterslistener:Function — The listener function.
|
removeOnMouseOver | () | method |
public function removeOnMouseOver(listener:Function):void
Default method for removing a 3d mouseOver event listener.
Parameterslistener:Function — The listener function.
|
removeOnMouseUp | () | method |
public function removeOnMouseUp(listener:Function):void
Default method for removing a 3d mouseUp event listener.
Parameterslistener:Function — The listener function.
|
removeOverlay | () | method |
public function removeOverlay(value:IOverlay):void
Removes an overlay effect on top of the view container.
Parametersvalue:IOverlay |
render | () | method |
public function render():void
Renders a snapshot of the view to the render session's view container.
See also
updateScreenClipping | () | method |
public function updateScreenClipping():void
mouseDown | event |
away3d.events.MouseEvent3D
Dispatched when a user presses the let hand mouse button while the cursor is over a 3d object
mouseMove | event |
away3d.events.MouseEvent3D
Dispatched when a user moves the cursor while it is over a 3d object
mouseOut | event |
away3d.events.MouseEvent3D
Dispatched when a user moves the cursor away from a 3d object
mouseOver | event |
away3d.events.MouseEvent3D
Dispatched when a user moves the cursor over a 3d object
mouseUp | event |
away3d.events.MouseEvent3D
Dispatched when a user releases the let hand mouse button while the cursor is over a 3d object