Packagecom.gestureworks.cml.away3d.geometries
Classpublic class ConeGeometry
InheritanceConeGeometry Inheritance away3d.primitives.ConeGeometry
Implements com.gestureworks.cml.interfaces.IObject, com.gestureworks.cml.interfaces.ICSS, com.gestureworks.cml.interfaces.IState, IGeometry

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



Public Properties
 PropertyDefined By
  childList : ChildList
Sets cml childlist
ConeGeometry
  className : String
sets the class name of displayobject
ConeGeometry
  cmlIndex : int
Sets the cml index
ConeGeometry
  state : Dictionary
Property states
ConeGeometry
  stateId : *
Sets the state id
ConeGeometry
Public Methods
 MethodDefined By
  
ConeGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 15, yUp:Boolean = true)
ConeGeometry
  
dispose():void
[override] Destructor
ConeGeometry
  
init():void
CML initialization
ConeGeometry
  
loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number.
ConeGeometry
  
parseCML(cml:XMLList):XMLList
Custom CML parse routine
ConeGeometry
  
postparseCML(cml:XMLList):void
Postparse method
ConeGeometry
  
saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number.
ConeGeometry
  
tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index.
ConeGeometry
  
updateProperties(state:* = 0):void
Update properties of child
ConeGeometry
Property Detail
childListproperty
childList:ChildList

Sets cml childlist


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

sets the class name of displayobject


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

Sets the cml index


Implementation
    public function get cmlIndex():int
    public function set cmlIndex(value:int):void
stateproperty 
public var state:Dictionary

Property states

stateIdproperty 
stateId:*

Sets the state id


Implementation
    public function get stateId():*
    public function set stateId(value:any):void
Constructor Detail
ConeGeometry()Constructor
public function ConeGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 15, yUp:Boolean = true)



Parameters
radius:Number (default = 50)
 
height:Number (default = 100)
 
segmentsW:uint (default = 16)
 
segmentsH:uint (default = 15)
 
yUp:Boolean (default = true)
Method Detail
dispose()method
override public function dispose():void

Destructor

init()method 
public function init():void

CML initialization

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

Loads state by index number. If the first parameter is NaN, the current state will be saved.

Parameters

sId:* (default = null) — State index to be loaded.
 
recursion:Boolean (default = false) — If true the state will load recursively through the display list starting at the current display ojbect.

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

Custom CML parse routine

Parameters

cml:XMLList

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

Postparse method

Parameters

cml:XMLList

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

Save state by index number. If the first parameter is NaN, the current state will be saved.

Parameters

sId:* (default = null) — State index to save.
 
recursion:Boolean (default = false) — If true the state will save recursively through the display list starting at the current display ojbect.

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

Tween state by stateIndex from current to given state index. If the first parameter is null, the current state will be used.

Parameters

sId:* (default = null) — State index to tween.
 
tweenTime:Number (default = 1) — Duration of tween

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

Update properties of child

Parameters

state:* (default = 0)