de.mirell.m3d

class CPolygon

Object | +--de.mirell.m3d.C3DObject | +--de.mirell.m3d.CPolygon
Implemented Interfaces: IDrawable, IXMLSerializable

class CPolygon extends C3DObject
  • Author:
    Mirell Development
  • Version:
    N/A

Field Summary

public normal_translated: CCoordinate
Properties inherited from class de.mirell.m3d.C3DObject

Constructor

public CPolygon ( )

Method Summary

public calculateNormal ( ): Void
public createMovieClip ( ): Void
Trigger creation of the object's movieclip
public destroyMovieClip ( ): Void
Trigger removal of the object's movieclip
public draw ( ): Void
Draws the object
public fromXML ( value: XML ): Void
Unserializes XML into the object
public getCenter ( ): CCoordinate
public getFaces ( ): Array
public getNormal ( ): CCoordinate
public getStyle ( ): CStyle
public hasFaces ( ): Boolean
Determine if object has faces
public isDoubleSided ( ): Boolean
public rotate ( Value: CQuaternion ): Void
Rotate the object using a quaternion
public rotateNormal ( Value: CQuaternion ): Void
public setDoubleSides ( Value: Boolean ): Void
public setNormal ( Value: CCoordinate ): Void
public setStyle ( Value: CStyle ): Void
public toXML ( ): XML
Serializes the object into XML

Field Documentation

normal_translated

public var normal_translated: CCoordinate

    Constructor Documentation

    CPolygon

    public function CPolygon (
    )

      Method Documentation

      calculateNormal

      public function calculateNormal (
      ): Void

        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

        destroyMovieClip

        public function destroyMovieClip (
        ): Void
        Trigger removal of the object's movieclip
        Remove the movie created from a prior call to createMovieClip

        draw

        public function draw (
        ): Void
        Draws the object
        This method is called from the renderer when the object needs to draw itself.

        fromXML

        public function fromXML (
        value: XML): Void
        Unserializes XML into the object
        Object state is set according to XML.

        getCenter

        public function getCenter (
        ): CCoordinate

          getFaces

          public function getFaces (
          ): Array

            getNormal

            public function getNormal (
            ): CCoordinate

              getStyle

              public function getStyle (
              ): CStyle

                hasFaces

                public function hasFaces (
                ): Boolean
                Determine if object has faces

                isDoubleSided

                public function isDoubleSided (
                ): Boolean

                  rotate

                  public function rotate (
                  Value: CQuaternion): Void
                  Rotate the object using a quaternion

                  rotateNormal

                  public function rotateNormal (
                  Value: CQuaternion): Void

                    setDoubleSides

                    public function setDoubleSides (
                    Value: Boolean): Void

                      setNormal

                      public function setNormal (
                      Value: CCoordinate): Void

                        setStyle

                        public function setStyle (
                        Value: CStyle): Void

                          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.

                          The documentation was generated from the following file:
                          • CPolygon.as, Last Modified: 07.01.2004 01:23:12