Packageaway3d.core.scene
Classpublic class View3D
InheritanceView3D Inheritance flash.display.Sprite

Repesent the drawing surface for the scene, that can be used to render 3D graphics

Public Properties
 PropertyDefined by
  background : Sprite
Background under the rendered scene
View3D
  bitmapShader : Bitmap
Bitmap that contains last rendered shaders
View3D
  bitmapTexture : Bitmap
Bitmap that contains last rendered textures
View3D
  bmp : Bitmap
View3D
  c : Sprite
View3D
  camera : Camera3D
Camera to render from
View3D
  canvas : Sprite
Sprite that contains last rendered frame
View3D
  canvasActive : Array
Array for storing added sprites to the canvas
View3D
  canvasStore : Array
Array for storing old sprites to the canvas
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
  i : int
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
Renderer that is used for rendering
View3D
  scene : Scene3D
Scene to be rendered
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)
Create a new View3D
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
  
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
  
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

bitmapShaderproperty 
public var bitmapShader:Bitmap

Bitmap that contains last rendered shaders

bitmapTextureproperty 
public var bitmapTexture:Bitmap

Bitmap that contains last rendered textures

bmpproperty 
public var bmp:Bitmap
cproperty 
public var c:Sprite
cameraproperty 
public var camera:Camera3D

Camera to render from

canvasproperty 
public var canvas:Sprite

Sprite that contains last rendered frame

canvasActiveproperty 
public var canvasActive:Array

Array for storing added sprites to the canvas

canvasStoreproperty 
public var canvasStore:Array

Array for storing old sprites to the canvas

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

iproperty 
public var i:int
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

Renderer that is used for rendering

See also

sceneproperty 
public var scene:Scene3D

Scene to be rendered

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
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
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)
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.core.scene.View3D'

Code examples

Comments