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

Public Properties
 PropertyDefined by
  background : Sprite
Background under the rendered scene
View3D
  camera : Camera3D
Camera to render from
View3D
  clip : Clipping
Clipping area for the view
View3D
  findhit : FindHit
Traverser used to find the current object under the mouse
View3D
  hud : Sprite
Head up display over the scene
View3D
  interactiveLayer : Sprite
container for interactive materials over the scene
View3D
  mouseMaterial : IUVMaterial
Keeps track of current material under the mouse
View3D
  mouseObject : Object3D
Keeps track of current object under the mouse
View3D
  mouseZeroMove : Boolean
Fire mouse move events even in case mouse pointer doesn't move
View3D
  primitives : Array
View3D
  _renderer : IRenderer
View3D
  renderer : IRenderer
View3D
  scene : Scene3D
Scene to be rendered
View3D
  _session : AbstractRenderSession
View3D
  session : AbstractRenderSession
View3D
  sourceURL : String
string for storing source url
View3D
  stats : Boolean
Enables/Disables stats panel
View3D
  statsOpen : Boolean
Determines whether stats panel is currently open
View3D
  statsPanel : Stats
Sprite instance for stats panel
View3D
Protected Properties
 PropertyDefined by
  mousedown : Boolean
View3D
Public Methods
 MethodDefined by
  
View3D
(init:Object = null)
View3D
  
addOnMouseDown(listener:Function):void
View3D
  
addOnMouseMove(listener:Function):void
View3D
  
addOnMouseOut(listener:Function):void
View3D
  
addOnMouseOver(listener:Function):void
View3D
  
addOnMouseUp(listener:Function):void
View3D
  
addSourceURL(url:String):void
View3D
  
View3D
  
clear():void
Clear rendering area
View3D
  
createStatsMenu(event:Event):void
Create and registers new container for the stats panel
View3D
  
fireMouseEvent(type:String, x:Number, y:Number, ctrlKey:Boolean = false, shiftKey:Boolean = false):void
Manually fire custom mouse event
View3D
  
fireMouseMoveEvent(force:Boolean = false):void
Manually fire mouse move event
View3D
  
flush():void
renders contents of rendersession
View3D
  
getBitmapData():BitmapData
View3D
  
removeOnMouseDown(listener:Function):void
View3D
  
removeOnMouseMove(listener:Function):void
View3D
  
removeOnMouseOut(listener:Function):void
View3D
  
removeOnMouseOver(listener:Function):void
View3D
  
removeOnMouseUp(listener:Function):void
View3D
  
render():void
Render frame
View3D
Protected Methods
 MethodDefined by
  
onMouseDown(e:MouseEvent):void
View3D
Property detail
backgroundproperty
public var background:Sprite

Background under the rendered scene

cameraproperty 
public var camera:Camera3D

Camera to render from

clipproperty 
public var clip:Clipping

Clipping area for the view

findhitproperty 
public var findhit:FindHit

Traverser used to find the current object under the mouse

hudproperty 
public var hud:Sprite

Head up display over the scene

interactiveLayerproperty 
public var interactiveLayer:Sprite

container for interactive materials over the scene

mousedownproperty 
protected var mousedown:Boolean
mouseMaterialproperty 
public var mouseMaterial:IUVMaterial

Keeps track of current material under the mouse

mouseObjectproperty 
public var mouseObject:Object3D

Keeps track of current object under the mouse

mouseZeroMoveproperty 
public var mouseZeroMove:Boolean

Fire mouse move events even in case mouse pointer doesn't move

primitivesproperty 
public var primitives:Array
_rendererproperty 
public var _renderer:IRenderer
rendererproperty 
renderer:IRenderer  [read-write]Implementation
    public function get renderer():IRenderer
    public function set renderer(value:IRenderer):void
sceneproperty 
public var scene:Scene3D

Scene to be rendered

_sessionproperty 
public var _session:AbstractRenderSession
sessionproperty 
session:AbstractRenderSession  [read-write]Implementation
    public function get session():AbstractRenderSession
    public function set session(value:AbstractRenderSession):void
sourceURLproperty 
public var sourceURL:String

string for storing source url

statsproperty 
public var stats:Boolean

Enables/Disables stats panel

statsOpenproperty 
public var statsOpen:Boolean

Determines whether stats panel is currently open

statsPanelproperty 
public var statsPanel:Stats

Sprite instance for stats panel

Constructor detail
View3D()constructor
public function View3D(init:Object = null)Parameters
init:Object (default = null)
Init Parameters
 stats:Boolean (default = true)
 scene:ObjectOrInit (default = Scene3D)
 camera:ObjectOrInit (default = Camera3D)
 renderer:Object
 session:Object
 clip:Object (default = Clipping)
 x:Number (default = 0)
 y:Number (default = 0)
Method detail
addOnMouseDown()method
public function addOnMouseDown(listener:Function):void Parameters
listener:Function
addOnMouseMove()method 
public function addOnMouseMove(listener:Function):void Parameters
listener:Function
addOnMouseOut()method 
public function addOnMouseOut(listener:Function):void Parameters
listener:Function
addOnMouseOver()method 
public function addOnMouseOver(listener:Function):void Parameters
listener:Function
addOnMouseUp()method 
public function addOnMouseUp(listener:Function):void Parameters
listener:Function
addSourceURL()method 
public function addSourceURL(url:String):void Parameters
url:String
bubbleMouseEvent()method 
public function bubbleMouseEvent(event:MouseEvent3D):void Parameters
event:MouseEvent3D
clear()method 
public function clear():void

Clear rendering area

createStatsMenu()method 
public function createStatsMenu(event:Event):void

Create and registers new container for the stats panel

Parameters
event:Event
dispatchMouseEvent()method 
arcane function dispatchMouseEvent(event:MouseEvent3D):void Parameters
event:MouseEvent3D
fireMouseEvent()method 
public function fireMouseEvent(type:String, x:Number, y:Number, ctrlKey:Boolean = false, shiftKey:Boolean = false):void

Manually fire custom mouse event

Parameters
type:String
 
x:Number
 
y:Number
 
ctrlKey:Boolean (default = false)
 
shiftKey:Boolean (default = false)
fireMouseMoveEvent()method 
public function fireMouseMoveEvent(force:Boolean = false):void

Manually fire mouse move event

Parameters
force:Boolean (default = false)
flush()method 
public function flush():void

renders contents of rendersession

getBitmapData()method 
public function getBitmapData():BitmapData

Returns
BitmapData
onMouseDown()method 
protected function onMouseDown(e:MouseEvent):void Parameters
e:MouseEvent
removeOnMouseDown()method 
public function removeOnMouseDown(listener:Function):void Parameters
listener:Function
removeOnMouseMove()method 
public function removeOnMouseMove(listener:Function):void Parameters
listener:Function
removeOnMouseOut()method 
public function removeOnMouseOut(listener:Function):void Parameters
listener:Function
removeOnMouseOver()method 
public function removeOnMouseOver(listener:Function):void Parameters
listener:Function
removeOnMouseUp()method 
public function removeOnMouseUp(listener:Function):void Parameters
listener:Function
render()method 
public function render():void

Render frame

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

Code examples

Comments