|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.schedops.movement.TransformationDirectives
public class TransformationDirectives
This class may serve as a base for classes to describe the transformation speed by the three carthesian axes or a user-defined axis.
| Nested Class Summary | |
|---|---|
static class |
TransformationDirectives.Axes
The axes of a carthesian coordinate system. |
static class |
TransformationDirectives.AxisOrder
The order in which to rotate around the axes. |
| Constructor Summary | |
|---|---|
TransformationDirectives()
Creates a new TransformationDirectives instance with all values set to zero. |
|
TransformationDirectives(float speedX,
float speedY,
float speedZ)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(float initValueX,
float initValueY,
float initValueZ,
float speedX,
float speedY,
float speedZ)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(float initValueX,
float initValueY,
float initValueZ,
float speedX,
float speedY,
float speedZ,
TransformationDirectives.AxisOrder axisOrder)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(float speedX,
float speedY,
float speedZ,
TransformationDirectives.AxisOrder axisOrder)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(TransformationDirectives.AxisOrder axisOrder)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(org.openmali.vecmath2.Vector3f userAxis)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(org.openmali.vecmath2.Vector3f userAxis,
float speed)
Creates a new TransformationDirectives instance. |
|
TransformationDirectives(org.openmali.vecmath2.Vector3f userAxis,
float initValue,
float speed)
Creates a new TransformationDirectives instance. |
|
| Method Summary | |
|---|---|
TransformationDirectives.AxisOrder |
getAxisOrder()
|
float |
getInitValue()
|
float |
getInitValue(TransformationDirectives.Axes axis)
|
float |
getInitValueUser()
|
float |
getInitValueX()
|
float |
getInitValueY()
|
float |
getInitValueZ()
|
float |
getSpeed()
Returns the speed by the user-defined axis. |
float |
getSpeed(TransformationDirectives.Axes axis)
Returns the speed by the specified axis. |
float |
getSpeedUser()
|
float |
getSpeedX()
|
float |
getSpeedY()
|
float |
getSpeedZ()
|
org.openmali.vecmath2.Vector3f |
getUserAxis()
|
boolean |
isDirty()
|
void |
setAxisOrder(TransformationDirectives.AxisOrder axisOrder)
Sets in which order the transformation is to be applied. |
void |
setClean()
|
void |
setInitValue(float value)
Sets the initial transformation value by the user-defined axis. |
void |
setInitValue(TransformationDirectives.Axes axis,
float value)
Sets the initial transformation value by the specified axis. |
void |
setInitValueUser(float value)
Sets the initial transformation value by the user-defined-axis (1.0f is 360 degree). |
void |
setInitValueX(float value)
Sets the initial transformation value by the x-axis (1.0f is 360 degree). |
void |
setInitValueY(float value)
Sets the initial transformation value by the y-axis (1.0f is 360 degree). |
void |
setInitValueZ(float value)
Sets the initial transformation value by the z-axis (1.0f is 360 degree). |
void |
setSpeed(float value)
Sets the speed by the user-defined axis. |
void |
setSpeed(TransformationDirectives.Axes axis,
float value)
Sets the speed by the specified axis. |
void |
setSpeedUser(float speed)
Sets the speed by the user-defined-axis (e.g. rotations per second). |
void |
setSpeedX(float speed)
Sets the speed by the x-axis (e.g. rotations per second). |
void |
setSpeedY(float speed)
Sets the speed by the y-axis (e.g. rotations per second). |
void |
setSpeedZ(float speed)
Sets the speed by the z-axis (e.g. rotations per second). |
void |
setUserAxis(org.openmali.vecmath2.Vector3f userAxis)
Sets the user-defined axis to transform by. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformationDirectives(org.openmali.vecmath2.Vector3f userAxis,
float initValue,
float speed)
userAxis - the axis by which to transforminitValue - the initial transformation by the user-defined-axis (e.g. 1.0f is 360 degree)speed - the speed by the user-defined-axis (e.g. 1.0f is one turn per second)
public TransformationDirectives(org.openmali.vecmath2.Vector3f userAxis,
float speed)
userAxis - the axis around which to rotatespeed - the speed by the user-defined-axis (e.g. 1.0f is one turn per second)public TransformationDirectives(org.openmali.vecmath2.Vector3f userAxis)
userAxis - the axis around which to rotate
public TransformationDirectives(float initValueX,
float initValueY,
float initValueZ,
float speedX,
float speedY,
float speedZ,
TransformationDirectives.AxisOrder axisOrder)
initValueX - the initial value by the x-axis (e.g. 1.0f is 360 degree)initValueY - the initial rotation around the y-axis (e.g. 1.0f is 360 degree)initValueZ - the initial rotation around the z-axis (e.g. 1.0f is 360 degree)speedX - the rotation speed around the x-axis (e.g. 1.0f is one turn per second)speedY - the rotation speed around the y-axis (e.g. 1.0f is one turn per second)speedZ - the rotation speed around the z-axis (e.g. 1.0f is one turn per second)axisOrder - the order in which the axes are to rotate around
public TransformationDirectives(float initValueX,
float initValueY,
float initValueZ,
float speedX,
float speedY,
float speedZ)
initValueX - the initial value by the x-axis (e.g. 1.0f is 360 degree)initValueY - the initial rotation around the y-axis (e.g. 1.0f is 360 degree)initValueZ - the initial rotation around the z-axis (e.g. 1.0f is 360 degree)speedX - the rotation speed around the x-axis (e.g. 1.0f is one turn per second)speedY - the rotation speed around the y-axis (e.g. 1.0f is one turn per second)speedZ - the rotation speed around the z-axis (e.g. 1.0f is one turn per second)
public TransformationDirectives(float speedX,
float speedY,
float speedZ,
TransformationDirectives.AxisOrder axisOrder)
speedX - the rotation speed around the x-axis (1.0f is one turn per second)speedY - the rotation speed around the y-axis (1.0f is one turn per second)speedZ - the rotation speed around the z-axis (1.0f is one turn per second)axisOrder - the order in which the axes are to transformed by
public TransformationDirectives(float speedX,
float speedY,
float speedZ)
speedX - the transformation speed by the x-axis (1.0f is one turn per second)speedY - the transformation speed by the y-axis (1.0f is one turn per second)speedZ - the transformation speed by the z-axis (1.0f is one turn per second)public TransformationDirectives(TransformationDirectives.AxisOrder axisOrder)
axisOrder - the order in which the axes are to translated bypublic TransformationDirectives()
| Method Detail |
|---|
public final void setClean()
public final boolean isDirty()
public TransformationDirectives.AxisOrder getAxisOrder()
public void setAxisOrder(TransformationDirectives.AxisOrder axisOrder)
public org.openmali.vecmath2.Vector3f getUserAxis()
public void setUserAxis(org.openmali.vecmath2.Vector3f userAxis)
public void setInitValueX(float value)
public float getInitValueX()
public void setInitValueY(float value)
public float getInitValueY()
public void setInitValueZ(float value)
public float getInitValueZ()
public void setInitValueUser(float value)
public float getInitValueUser()
public void setInitValue(TransformationDirectives.Axes axis,
float value)
public void setInitValue(float value)
public float getInitValue(TransformationDirectives.Axes axis)
public float getInitValue()
public void setSpeedX(float speed)
public float getSpeedX()
public void setSpeedY(float speed)
public float getSpeedY()
public void setSpeedZ(float speed)
public float getSpeedZ()
public void setSpeedUser(float speed)
public float getSpeedUser()
public void setSpeed(TransformationDirectives.Axes axis,
float value)
axis - the axis to rotate agoundvalue - the turns per secondpublic void setSpeed(float value)
value - the turns per secondpublic float getSpeed(TransformationDirectives.Axes axis)
axis - the axis to translate by
public float getSpeed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||