Packagecom.gestureworks.cml.away3d.elements
Classpublic class Camera
InheritanceCamera Inheritance away3d.cameras.Camera3D
Implements com.gestureworks.cml.interfaces.IObject, com.gestureworks.cml.interfaces.ICSS, com.gestureworks.cml.interfaces.IState

This class creates capsule geometry that can be applied to a Mesh. It extends the Away3D CapsuleGeometry class to add CML support.



Public Properties
 PropertyDefined By
  childList : ChildList
Camera
  className : String
Camera
  clipping : String
Sets the near and far clipping planes as comma sepeated list.
Camera
  cmlIndex : int
Camera
  color : uint
Sets the background render color.
Camera
  fov : Number
Sets the field of view when lens is prospective.
Camera
  lensX : XML
Sets the camera's lens type (orthographic or prospective).
Camera
  projectionHeight : Number
Sets the projections height when lens is orthogrphic.
Camera
  state : Dictionary
Camera
  stateId : *
Camera
  view : View3D
Sets the camera's view.
Camera
  viewDim : String
Sets the view dimensions as a comma seperated list.
Camera
  viewPos : String
Sets the view position as a comma seperated list.
Camera
  vto : TouchContainer3D
Virtual transform object.
Camera
Public Methods
 MethodDefined By
  
Camera(lens:LensBase = null)
Camera
  
dispose():void
[override]
Camera
  
init():void
Camera
  
loadState(sId:* = null, recursion:Boolean = false):void
Camera
  
parseCML(cml:XMLList):XMLList
Camera
  
postparseCML(cml:XMLList):void
Camera
  
saveState(sId:* = null, recursion:Boolean = false):void
Camera
  
tweenState(sId:* = null, tweenTime:Number = 1):void
Camera
  
updateProperties(state:* = 0):void
Camera
Property Detail
childListproperty
childList:ChildList


Implementation
    public function get childList():ChildList
    public function set childList(value:ChildList):void
classNameproperty 
className:String


Implementation
    public function get className():String
    public function set className(value:String):void
clippingproperty 
clipping:String

Sets the near and far clipping planes as comma sepeated list.


Implementation
    public function get clipping():String
    public function set clipping(value:String):void
cmlIndexproperty 
cmlIndex:int


Implementation
    public function get cmlIndex():int
    public function set cmlIndex(value:int):void
colorproperty 
color:uint

Sets the background render color.


Implementation
    public function get color():uint
    public function set color(value:uint):void
fovproperty 
fov:Number

Sets the field of view when lens is prospective.


Implementation
    public function get fov():Number
    public function set fov(value:Number):void
lensXproperty 
lensX:XML

Sets the camera's lens type (orthographic or prospective).


Implementation
    public function get lensX():XML
    public function set lensX(value:XML):void
projectionHeightproperty 
projectionHeight:Number

Sets the projections height when lens is orthogrphic.


Implementation
    public function get projectionHeight():Number
    public function set projectionHeight(value:Number):void
stateproperty 
public var state:Dictionary

stateIdproperty 
stateId:*


Implementation
    public function get stateId():*
    public function set stateId(value:any):void
viewproperty 
view:View3D

Sets the camera's view.


Implementation
    public function get view():View3D
    public function set view(value:View3D):void
viewDimproperty 
viewDim:String

Sets the view dimensions as a comma seperated list.


Implementation
    public function get viewDim():String
    public function set viewDim(value:String):void
viewPosproperty 
viewPos:String

Sets the view position as a comma seperated list.


Implementation
    public function get viewPos():String
    public function set viewPos(value:String):void
vtoproperty 
public var vto:TouchContainer3D

Virtual transform object.

Constructor Detail
Camera()Constructor
public function Camera(lens:LensBase = null)

Parameters
lens:LensBase (default = null)
Method Detail
dispose()method
override public function dispose():void

init()method 
public function init():void

loadState()method 
public function loadState(sId:* = null, recursion:Boolean = false):void

Parameters

sId:* (default = null)
 
recursion:Boolean (default = false)

parseCML()method 
public function parseCML(cml:XMLList):XMLList

Parameters

cml:XMLList

Returns
XMLList
postparseCML()method 
public function postparseCML(cml:XMLList):void

Parameters

cml:XMLList

saveState()method 
public function saveState(sId:* = null, recursion:Boolean = false):void

Parameters

sId:* (default = null)
 
recursion:Boolean (default = false)

tweenState()method 
public function tweenState(sId:* = null, tweenTime:Number = 1):void

Parameters

sId:* (default = null)
 
tweenTime:Number (default = 1)

updateProperties()method 
public function updateProperties(state:* = 0):void

Parameters

state:* (default = 0)