M3GToolkit 0.5.0

com.java4ever.m3g
Class Transformable

java.lang.Object
  extended bycom.java4ever.m3g.M3GObject
      extended bycom.java4ever.m3g.Object3D
          extended bycom.java4ever.m3g.Transformable
Direct Known Subclasses:
Node, Texture2D

public abstract class Transformable
extends Object3D


Field Summary
 
Fields inherited from class com.java4ever.m3g.M3GObject
ANIMATION_CONTROLLER, ANIMATION_TRACK, APPEARANCE, BACKGROUND, CAMERA, COMPOSITING_MODE, EXTERNAL_REFERENCE, FOG, GROUP, HEADER, IMAGE2D, KEYFRAME_SEQUENCE, LIGHT, MATERIAL, MESH, MORPHING_MESH, POLYGON_MODE, SKINNED_MESH, SPRITE3D, TEXTURE2D, TRIANGLE_STRIP_ARRAY, VERTEX_ARRAY, VERTEX_BUFFER, WORLD
 
Constructor Summary
protected Transformable()
           
 
Method Summary
 void getCompositeTransform(Transform transform)
           
 void getOrientation(float[] angleAxis)
           
 void getScale(float[] xyz)
           
 void getTransform(Transform transform)
           
 void getTranslation(float[] xyz)
           
 void postRotate(float angle, float ax, float ay, float az)
           
 void preRotate(float angle, float ax, float ay, float az)
           
protected  void read(M3GInputStream is, java.util.ArrayList table)
           
 void scale(float sx, float sy, float sz)
           
 void setOrientation(float angle, float ax, float ay, float az)
           
 void setScale(float sx, float sy, float sz)
           
 void setTransform(Transform transform)
           
 void setTranslation(float tx, float ty, float tz)
           
 void translate(float tx, float ty, float tz)
           
protected  void write(M3GOutputStream os, java.util.ArrayList table)
           
 
Methods inherited from class com.java4ever.m3g.Object3D
addAnimationTrack, animate, buildReferenceTable, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class com.java4ever.m3g.M3GObject
getObjectAtIndex, getObjectType, isRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformable

protected Transformable()
Method Detail

setOrientation

public void setOrientation(float angle,
                           float ax,
                           float ay,
                           float az)

preRotate

public void preRotate(float angle,
                      float ax,
                      float ay,
                      float az)

postRotate

public void postRotate(float angle,
                       float ax,
                       float ay,
                       float az)

getOrientation

public void getOrientation(float[] angleAxis)

setScale

public void setScale(float sx,
                     float sy,
                     float sz)

scale

public void scale(float sx,
                  float sy,
                  float sz)

getScale

public void getScale(float[] xyz)

setTranslation

public void setTranslation(float tx,
                           float ty,
                           float tz)

translate

public void translate(float tx,
                      float ty,
                      float tz)

getTranslation

public void getTranslation(float[] xyz)

setTransform

public void setTransform(Transform transform)

getTransform

public void getTransform(Transform transform)

getCompositeTransform

public void getCompositeTransform(Transform transform)

read

protected void read(M3GInputStream is,
                    java.util.ArrayList table)
             throws java.io.IOException
Overrides:
read in class Object3D
Throws:
java.io.IOException

write

protected void write(M3GOutputStream os,
                     java.util.ArrayList table)
              throws java.io.IOException
Overrides:
write in class Object3D
Throws:
java.io.IOException

M3GToolkit 0.5.0

Copyright 2005 java4ever.com. All Rights Reserved.