|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.StaticTransform
public final class StaticTransform
This class staticly transforms Shapes/GeomContainers/Points.
If you want to move, rotate or scale a Shape once or only very rare,
you should use this class instead of Transform3D, since the transformation
is not done each frame.
| Method Summary | ||
|---|---|---|
static void |
mirrorXY(GeomContainer src)
In-place mirrors the vertices by the xy-plane. |
|
static
|
mirrorXY(S shape)
In-place mirrors the vertices by the xy-plane. |
|
static void |
mirrorXY(org.openmali.vecmath2.Tuple3f[] coords)
In-place mirrors the vertices by the xy-plane. |
|
static void |
mirrorYZ(GeomContainer src)
In-place mirrors the vertices by the xy-plane. |
|
static
|
mirrorYZ(S shape)
In-place mirrors the vertices by the xy-plane. |
|
static void |
mirrorYZ(org.openmali.vecmath2.Tuple3f[] coords)
In-place mirrors the vertices by the xy-plane. |
|
static void |
mirrorZX(GeomContainer src)
In-place mirrors the vertices by the xy-plane. |
|
static
|
mirrorZX(S shape)
In-place mirrors the vertices by the xy-plane. |
|
static void |
mirrorZX(org.openmali.vecmath2.Tuple3f[] coords)
In-place mirrors the vertices by the xy-plane. |
|
static void |
quadratic(GeomContainer src,
org.openmali.vecmath2.Tuple3f A,
org.openmali.vecmath2.Matrix3f B,
org.openmali.vecmath2.Matrix3f C)
Applies a general quadratic transform. |
|
static
|
quadratic(S shape,
org.openmali.vecmath2.Tuple3f A,
org.openmali.vecmath2.Matrix3f B,
org.openmali.vecmath2.Matrix3f C)
Applies a general quadratic transform. |
|
static void |
rotate(GeomContainer src,
float axisX,
float axisY,
float axisZ,
float theta)
Rotates the geometry by angle theta about the given axis. |
|
static void |
rotate(GeomContainer src,
org.openmali.vecmath2.Tuple3f axis,
float theta)
Rotates the geometry by angle theta about the given axis. |
|
static
|
rotate(S shape,
float axisX,
float axisY,
float axisZ,
float theta)
Rotates the geometry by angle theta about the given axis. |
|
static
|
rotate(S shape,
org.openmali.vecmath2.Tuple3f axis,
float theta)
Rotates the geometry by angle theta about the given axis. |
|
static void |
rotate(org.openmali.vecmath2.Tuple3f[] coords,
float axisX,
float axisY,
float axisZ,
float theta)
Rotates the geometry by angle theta about the given axis. |
|
static void |
rotateX(GeomContainer src,
float theta)
Rotates the geometry by angle theta about the x-axis. |
|
static
|
rotateX(S shape,
float theta)
Rotates the geometry by angle theta about the x-axis. |
|
static void |
rotateX(org.openmali.vecmath2.Tuple3f[] coords,
float theta)
Rotates the geometry by angle theta about the x-axis. |
|
static void |
rotateY(GeomContainer src,
float theta)
Rotates the geometry by angle theta about the y-axis. |
|
static
|
rotateY(S shape,
float theta)
Rotates the geometry by angle theta about the y-axis. |
|
static void |
rotateY(org.openmali.vecmath2.Tuple3f[] coords,
float theta)
Rotates the geometry by angle theta about the y-axis. |
|
static void |
rotateZ(GeomContainer src,
float theta)
Rotates the geometry by angle theta about the z-axis. |
|
static
|
rotateZ(S shape,
float theta)
Rotates the geometry by angle theta about the z-axis. |
|
static void |
rotateZ(org.openmali.vecmath2.Tuple3f[] coords,
float theta)
Rotates the geometry by angle theta about the z-axis. |
|
static void |
scale(GeomContainer src,
float scale)
In-place multiplies the vertices in src by scale. |
|
static void |
scale(GeomContainer src,
float scaleX,
float scaleY,
float scaleZ)
In-place multiplies the vertices in src by scale. |
|
static void |
scale(GeomContainer src,
org.openmali.vecmath2.Tuple3f scale)
In-place multiplies the vertices in src by scale. |
|
static
|
scale(S shape,
float scale)
In-place multiplies the vertices in src by scale. |
|
static
|
scale(S shape,
float scaleX,
float scaleY,
float scaleZ)
In-place multiplies the vertices in src by scale. |
|
static
|
scale(S shape,
org.openmali.vecmath2.Tuple3f scale)
In-place multiplies the vertices in src by scale. |
|
static void |
scale(org.openmali.vecmath2.Tuple3f[] coords,
float scaleX,
float scaleY,
float scaleZ)
In-place multiplies the vertices by scale. |
|
static void |
transform(GeomContainer src,
org.openmali.vecmath2.Matrix3f m)
In-place multiplies each point in src by A. |
|
static void |
transform(GeomContainer src,
org.openmali.vecmath2.Matrix4f m)
In-place multiplies each point in src by A. |
|
static void |
transform(org.openmali.vecmath2.Point3f[] coords,
org.openmali.vecmath2.Matrix4f m)
In-place multiplies each point by A. |
|
static
|
transform(S shape,
org.openmali.vecmath2.Matrix3f m)
In-place multiplies each point in src by A. |
|
static
|
transform(S shape,
org.openmali.vecmath2.Matrix4f m)
In-place multiplies each point in src by A. |
|
static void |
transform(org.openmali.vecmath2.Tuple3f[] coords,
org.openmali.vecmath2.Matrix3f m)
In-place multiplies each point by A. |
|
static void |
translate(GeomContainer src,
float offsetX,
float offsetY,
float offsetZ)
In-place addition of an offset to each point in src. |
|
static void |
translate(GeomContainer src,
org.openmali.vecmath2.Matrix3f offset)
Prismatically offsets each point in src. |
|
static void |
translate(GeomContainer src,
org.openmali.vecmath2.Tuple3f offset)
In-place addition of an offset to each point in src. |
|
static void |
translate(GroupNode src,
float offsetX,
float offsetY,
float offsetZ)
In-place addition of an offset to each point in src. |
|
static void |
translate(GroupNode src,
org.openmali.vecmath2.Tuple3f offset)
In-place addition of an offset to each point in src. |
|
static
|
translate(S shape,
float offsetX,
float offsetY,
float offsetZ)
In-place addition of an offset to each point in src. |
|
static
|
translate(S shape,
org.openmali.vecmath2.Matrix3f offset)
Prismatically offsets each point in the shape. |
|
static
|
translate(S shape,
org.openmali.vecmath2.Tuple3f offset)
In-place addition of an offset to each point in src. |
|
static void |
translate(org.openmali.vecmath2.Tuple3f[] coords,
float offsetX,
float offsetY,
float offsetZ)
Inplace offsets each of the given vertices by a specified offset. |
|
static void |
translate(org.openmali.vecmath2.Tuple3f[] coords,
org.openmali.vecmath2.Matrix3f offset)
Prismatically offsets each point. |
|
static void |
translate(org.openmali.vecmath2.Tuple3f[] coords,
org.openmali.vecmath2.Tuple3f offset)
Inplace offsets each of the given vertices by a specified offset. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void translate(org.openmali.vecmath2.Tuple3f[] coords,
float offsetX,
float offsetY,
float offsetZ)
coords - vertices array to be modifiedoffsetX - Shift in x dimensionoffsetY - Shift in y dimensionoffsetZ - Shift in z dimension
public static void translate(org.openmali.vecmath2.Tuple3f[] coords,
org.openmali.vecmath2.Tuple3f offset)
coords - vertices array to be modifiedoffset - Shift in x,y,z dimension
public static void translate(GeomContainer src,
float offsetX,
float offsetY,
float offsetZ)
src - Object to be changedoffsetX - Shift in x dimensionoffsetY - Shift in y dimensionoffsetZ - Shift in z dimension
public static void translate(GeomContainer src,
org.openmali.vecmath2.Tuple3f offset)
src - Object to be changedoffset - Shift in each dimension
public static <S extends Shape3D> S translate(S shape,
float offsetX,
float offsetY,
float offsetZ)
shape - Object to be changedoffsetX - Shift in x dimensionoffsetY - Shift in y dimensionoffsetZ - Shift in z dimension
public static <S extends Shape3D> S translate(S shape,
org.openmali.vecmath2.Tuple3f offset)
shape - Object to be changedoffset - Shift in each dimension
public static void translate(GroupNode src,
float offsetX,
float offsetY,
float offsetZ)
src - Object to be changedoffsetX - Shift in x dimensionoffsetY - Shift in y dimensionoffsetZ - Shift in z dimension
public static void translate(GroupNode src,
org.openmali.vecmath2.Tuple3f offset)
src - Object to be changedoffset - Shift in each dimension
public static void translate(org.openmali.vecmath2.Tuple3f[] coords,
org.openmali.vecmath2.Matrix3f offset)
coords - the Vertices-coordinates to be changedoffset - Shift in each dimension
public static void translate(GeomContainer src,
org.openmali.vecmath2.Matrix3f offset)
src - Object to be changedoffset - Shift in each dimension
public static <S extends Shape3D> S translate(S shape,
org.openmali.vecmath2.Matrix3f offset)
shape - Object to be changedoffset - Shift in each dimension
public static void scale(org.openmali.vecmath2.Tuple3f[] coords,
float scaleX,
float scaleY,
float scaleZ)
coords - the Vertices-coordinates to be changedscaleX - Scaling in x dimensionscaleY - Scaling in y dimensionscaleZ - Scaling in z dimension
public static void scale(GeomContainer src,
float scaleX,
float scaleY,
float scaleZ)
src - Object to be changedscaleX - Scaling in x dimensionscaleY - Scaling in y dimensionscaleZ - Scaling in z dimension
public static void scale(GeomContainer src,
org.openmali.vecmath2.Tuple3f scale)
src - Object to be changedscale - Scaling in each dimension
public static <S extends Shape3D> S scale(S shape,
float scaleX,
float scaleY,
float scaleZ)
shape - Shape to be changedscaleX - Scaling in x dimensionscaleY - Scaling in y dimensionscaleZ - Scaling in z dimension
public static void scale(GeomContainer src,
float scale)
src - Object to be changedscale - Scaling factor
public static <S extends Shape3D> S scale(S shape,
org.openmali.vecmath2.Tuple3f scale)
shape - Shape to be changedscale - Scaling in each dimension
public static <S extends Shape3D> S scale(S shape,
float scale)
shape - Object to be changedscale - Scaling factor
public static void transform(org.openmali.vecmath2.Tuple3f[] coords,
org.openmali.vecmath2.Matrix3f m)
coords - the Vertices-coordinates to be changedm - Scaling matrix
public static void transform(GeomContainer src,
org.openmali.vecmath2.Matrix3f m)
src - Shape to be changedm - Scaling matrix
public static <S extends Shape3D> S transform(S shape,
org.openmali.vecmath2.Matrix3f m)
shape - Shape to be changedm - Scaling matrix
public static void transform(org.openmali.vecmath2.Point3f[] coords,
org.openmali.vecmath2.Matrix4f m)
coords - the Vertices-coordinates to be changedm - transformation matrix
public static void transform(GeomContainer src,
org.openmali.vecmath2.Matrix4f m)
src - Shape to be changedm - transformation matrix
public static <S extends Shape3D> S transform(S shape,
org.openmali.vecmath2.Matrix4f m)
shape - Shape to be changedm - transformation matrix
public static void rotate(org.openmali.vecmath2.Tuple3f[] coords,
float axisX,
float axisY,
float axisZ,
float theta)
coords - the vertices-coordinates to changeaxisX - Rotation axis x-componentaxisY - Rotation axis x-componentaxisZ - Rotation axis x-componenttheta - Rotation angle
public static void rotateX(org.openmali.vecmath2.Tuple3f[] coords,
float theta)
coords - the vertices-coordinates to changetheta - Rotation angle
public static void rotateY(org.openmali.vecmath2.Tuple3f[] coords,
float theta)
coords - the vertices-coordinates to changetheta - Rotation angle
public static void rotateZ(org.openmali.vecmath2.Tuple3f[] coords,
float theta)
coords - the vertices-coordinates to changetheta - Rotation angle
public static void rotate(GeomContainer src,
float axisX,
float axisY,
float axisZ,
float theta)
src - Shape to be changedaxisX - Rotation axis x-componentaxisY - Rotation axis x-componentaxisZ - Rotation axis x-componenttheta - Rotation angle
public static void rotateX(GeomContainer src,
float theta)
src - Shape to be changedtheta - Rotation angle
public static void rotateY(GeomContainer src,
float theta)
src - Shape to be changedtheta - Rotation angle
public static void rotateZ(GeomContainer src,
float theta)
src - Shape to be changedtheta - Rotation angle
public static void rotate(GeomContainer src,
org.openmali.vecmath2.Tuple3f axis,
float theta)
src - Shape to be changedaxis - Rotation axistheta - Rotation angle
public static <S extends Shape3D> S rotate(S shape,
float axisX,
float axisY,
float axisZ,
float theta)
shape - Shape to be changedaxisX - Rotation axis x-componentaxisY - Rotation axis x-componentaxisZ - Rotation axis x-componenttheta - Rotation angle
public static <S extends Shape3D> S rotateX(S shape,
float theta)
shape - Shape to be changedtheta - Rotation angle
public static <S extends Shape3D> S rotateY(S shape,
float theta)
shape - Shape to be changedtheta - Rotation angle
public static <S extends Shape3D> S rotateZ(S shape,
float theta)
shape - Shape to be changedtheta - Rotation angle
public static <S extends Shape3D> S rotate(S shape,
org.openmali.vecmath2.Tuple3f axis,
float theta)
shape - Shape to be changedaxis - Rotation axistheta - Rotation angle
public static void mirrorXY(org.openmali.vecmath2.Tuple3f[] coords)
coords - the vertices-coordinates to changepublic static void mirrorYZ(org.openmali.vecmath2.Tuple3f[] coords)
coords - the vertices-coordinates to changepublic static void mirrorZX(org.openmali.vecmath2.Tuple3f[] coords)
coords - the vertices-coordinates to changepublic static void mirrorXY(GeomContainer src)
src - Object to be changedpublic static void mirrorYZ(GeomContainer src)
src - Object to be changedpublic static void mirrorZX(GeomContainer src)
src - Object to be changedpublic static <S extends Shape3D> S mirrorXY(S shape)
shape - Shape to be changed
public static <S extends Shape3D> S mirrorYZ(S shape)
shape - Shape to be changed
public static <S extends Shape3D> S mirrorZX(S shape)
shape - Shape to be changed
public static void quadratic(GeomContainer src,
org.openmali.vecmath2.Tuple3f A,
org.openmali.vecmath2.Matrix3f B,
org.openmali.vecmath2.Matrix3f C)
src - Shape to be changedA - Constant offsetB - Linear termsC - Quadratic terms
public static <S extends Shape3D> S quadratic(S shape,
org.openmali.vecmath2.Tuple3f A,
org.openmali.vecmath2.Matrix3f B,
org.openmali.vecmath2.Matrix3f C)
shape - Shape to be changedA - Constant offsetB - Linear termsC - Quadratic terms
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||