|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jreality.scene.SceneGraphNode
de.jreality.scene.Transformation
public class Transformation
A simple transformation class which wraps a 4x4 real matrix. Access is read-only.
When contained as a field in an instance of 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 Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class de.jreality.scene.SceneGraphNode |
|---|
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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()) instead
t - | Method Detail |
|---|
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)
SceneGraphNode
accept in class SceneGraphNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||