BenQ Mobile

javax.microedition.m3g
Class Transformable

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.Transformable
Direct Known Subclasses:
Node, Texture2D

public abstract class Transformable
extends Object3D

An abstract base class for Node and Texture2D, defining common methods for manipulating node and texture transformations.


Method Summary
 void getCompositeTransform(Transform transform)
          Retrieves the composite transformation matrix of this Transformable.
 void getOrientation(float[] angleAxis)
          Retrieves the orientation component of this Transformable.
 void getScale(float[] xyz)
          Retrieves the scale component of this Transformable.
 void getTransform(Transform transform)
          Retrieves the matrix component of this Transformable.
 void getTranslation(float[] xyz)
          Retrieves the translation component of this Transformable.
 void postRotate(float angle, float ax, float ay, float az)
          Multiplies the current orientation component from the right by the given orientation.
 void preRotate(float angle, float ax, float ay, float az)
          Multiplies the current orientation component from the left by the given orientation.
 void scale(float sx, float sy, float sz)
          Multiplies the current scale component by the given scale factors.
 void setOrientation(float angle, float ax, float ay, float az)
          Sets the orientation component of this Transformable.
 void setScale(float sx, float sy, float sz)
          Retrieves the scale component of this Transformable.
 void setTransform(Transform transform)
          Sets the matrix component of this Transformable by copying in the given Transform.
 void setTranslation(float tx, float ty, float tz)
          Sets the translation component of this Transformable.
 void translate(float tx, float ty, float tz)
          Adds the given offset to the current translation component.
 
Methods inherited from class javax.microedition.m3g.Object3D
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setOrientation

public void setOrientation(float angle,
                           float ax,
                           float ay,
                           float az)
Sets the orientation component of this Transformable.


preRotate

public void preRotate(float angle,
                      float ax,
                      float ay,
                      float az)
Multiplies the current orientation component from the left by the given orientation.


postRotate

public void postRotate(float angle,
                       float ax,
                       float ay,
                       float az)
Multiplies the current orientation component from the right by the given orientation.


getOrientation

public void getOrientation(float[] angleAxis)
Retrieves the orientation component of this Transformable.


setScale

public void setScale(float sx,
                     float sy,
                     float sz)
Retrieves the scale component of this Transformable.


scale

public void scale(float sx,
                  float sy,
                  float sz)
Multiplies the current scale component by the given scale factors.


getScale

public void getScale(float[] xyz)
Retrieves the scale component of this Transformable.


setTranslation

public void setTranslation(float tx,
                           float ty,
                           float tz)
Sets the translation component of this Transformable.


translate

public void translate(float tx,
                      float ty,
                      float tz)
Adds the given offset to the current translation component.


getTranslation

public void getTranslation(float[] xyz)
Retrieves the translation component of this Transformable.


setTransform

public void setTransform(Transform transform)
Sets the matrix component of this Transformable by copying in the given Transform.


getTransform

public void getTransform(Transform transform)
Retrieves the matrix component of this Transformable.


getCompositeTransform

public void getCompositeTransform(Transform transform)
Retrieves the composite transformation matrix of this Transformable.


BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.