de.mirell.m3d
class CPolygon
Object
|
+--de.mirell.m3d.C3DObject
|
+--de.mirell.m3d.CPolygon
Implemented Interfaces: IDrawable, IXMLSerializableclass CPolygon extends C3DObject
- Author:Mirell Development
- Version:N/A
Properties inherited from class de.mirell.m3d.C3DObject
Method Summary
Trigger creation of the object's movieclip
Trigger removal of the object's movieclip
Draws the object
Unserializes XML into the object
Determine if object has faces
Rotate the object using a quaternion
Serializes the object into XML
Methods inherited from class de.mirell.m3d.C3DObject
Field Documentation
Constructor Documentation
Method Documentation
createMovieClip
public function createMovieClip (
): Void
Trigger creation of the object's movieclip
If a Display was set a new movieclip is created and the target for all drawing operations of the object
- Overrides:C3DObject.createMovieClip in class C3DObject
destroyMovieClip
public function destroyMovieClip (
): Void
Trigger removal of the object's movieclip
Remove the movie created from a prior call to createMovieClip
- Overrides:C3DObject.destroyMovieClip in class C3DObject
draw
public function draw (
): Void
Draws the object
This method is called from the renderer when the object needs to draw itself.
- Specified by:
- Overrides:C3DObject.draw in class C3DObject
fromXML
public function fromXML (
value: XML): Void
Unserializes XML into the object
Object state is set according to XML.
- Specified by:fromXML in interface de.mirell.xml.serialization.IXMLSerializable
- Overrides:C3DObject.fromXML in class C3DObject
- Parameters:
value XML which represents the serialized form of the object
hasFaces
public function hasFaces (
): Boolean
Determine if object has faces
- Overrides:C3DObject.hasFaces in class C3DObject
- Returns:Returns
True
if the object has faces
rotate
public function rotate (
Value: CQuaternion): Void
Rotate the object using a quaternion
- Overrides:C3DObject.rotate in class C3DObject
- Parameters:
Value The amount to rotate the object set using a CQuaternion
toXML
public function toXML (
): XML
Serializes the object into XML
The current object state will be serialized. The fromXML method must be able to unserialize the XML.
- Specified by:toXML in interface de.mirell.xml.serialization.IXMLSerializable
- Overrides:C3DObject.toXML in class C3DObject
- Returns:The XML which contains the serialized representation of the object
- CPolygon.as, Last Modified: 07.01.2004 01:23:12