public class Transformation extends SceneGraphNode
SceneGraphComponent,
this transformation is applied to any geometry contained in the component as well as
to all children.
For generating and manipulating matrices meeting specific constraints
(isometries, etc.)
see P3, MatrixBuilder and
FactoredMatrix.
For other support, see DefaultMatrixSupport.
| Constructor and Description |
|---|
Transformation() |
Transformation(double[] matrix) |
Transformation(String name) |
Transformation(String name,
double[] m)
Generate a new transform with given matrix
If m is null, use identity matrix.
|
Transformation(Transformation t)
Deprecated.
use
new Transformation(oldTrafo.getMatrix()) instead |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
void |
addTransformationListener(TransformationListener listener) |
double[] |
getMatrix() |
double[] |
getMatrix(double[] aMatrix)
Copy the current matrix into aMatrix and return it.
|
void |
multiplyOnLeft(double[] T) |
void |
multiplyOnRight(double[] T) |
void |
removeTransformationListener(TransformationListener listener) |
void |
setMatrix(double[] aMatrix)
Assign aMatrix to this Transformation.
|
static void |
superAccept(Transformation t,
SceneGraphVisitor visitor) |
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toStringpublic Transformation(String name, double[] m)
metric - See Pn.m - public Transformation(double[] matrix)
public Transformation(String name)
public Transformation()
public Transformation(Transformation t)
new Transformation(oldTrafo.getMatrix()) insteadt - public double[] getMatrix()
public double[] getMatrix(double[] aMatrix)
aMatrix - public void setMatrix(double[] aMatrix)
aMatrix - public void multiplyOnRight(double[] T)
public void multiplyOnLeft(double[] T)
public void addTransformationListener(TransformationListener listener)
public void removeTransformationListener(TransformationListener listener)
public static void superAccept(Transformation t, SceneGraphVisitor visitor)
public void accept(SceneGraphVisitor v)
SceneGraphNodeaccept in class SceneGraphNode