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

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



Public Properties
 PropertyDefined By
  childList : ChildList
TorusGeometry
  className : String
TorusGeometry
  cmlIndex : int
TorusGeometry
  state : Dictionary
TorusGeometry
  stateId : *
TorusGeometry
Public Methods
 MethodDefined By
  
TorusGeometry(radius:Number = 50, tubeRadius:Number = 50, segmentsR:uint = 16, segmentsT:uint = 8, yUp:Boolean = true)
TorusGeometry
  
dispose():void
[override]
TorusGeometry
  
init():void
TorusGeometry
  
loadState(sId:* = null, recursion:Boolean = false):void
TorusGeometry
  
parseCML(cml:XMLList):XMLList
TorusGeometry
  
postparseCML(cml:XMLList):void
TorusGeometry
  
saveState(sId:* = null, recursion:Boolean = false):void
TorusGeometry
  
tweenState(sId:* = null, tweenTime:Number = 1):void
TorusGeometry
  
updateProperties(state:* = 0):void
TorusGeometry
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
cmlIndexproperty 
cmlIndex:int


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

stateIdproperty 
stateId:*


Implementation
    public function get stateId():*
    public function set stateId(value:any):void
Constructor Detail
TorusGeometry()Constructor
public function TorusGeometry(radius:Number = 50, tubeRadius:Number = 50, segmentsR:uint = 16, segmentsT:uint = 8, yUp:Boolean = true)

Parameters
radius:Number (default = 50)
 
tubeRadius:Number (default = 50)
 
segmentsR:uint (default = 16)
 
segmentsT:uint (default = 8)
 
yUp:Boolean (default = true)
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)