|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.util.DefaultMatrixSupport
public class DefaultMatrixSupport
Utility to store default matrices for Transformation
s.
For convienience, there is one shared instance.
Constructor Summary | |
---|---|
DefaultMatrixSupport()
|
Method Summary | |
---|---|
static DefaultMatrixSupport |
getSharedInstance()
|
void |
restoreDefault(Transformation trafo,
boolean clear)
Restores the default matrix if there is any, otherwise assigns the identity matrix or does nothing, depending on the clear flag. |
void |
restoreDefaultMatrices(SceneGraphComponent root,
boolean clear)
|
void |
storeAsDefault(Transformation trafo)
Stores the current matrix of trafo as its default matrix. |
void |
storeDefault(Transformation trafo,
double[] defMatrix)
Stores the given array as default matrix for trafo. |
void |
storeDefaultMatrices(SceneGraphComponent root)
Traverses thetree from the given root and calls storeDefault
for all Transformation s. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMatrixSupport()
Method Detail |
---|
public static DefaultMatrixSupport getSharedInstance()
public void storeDefault(Transformation trafo, double[] defMatrix)
trafo
- the trafo for which to set the default matrixdefMatrix
- the default matrix for trafopublic void storeAsDefault(Transformation trafo)
trafo
- the trafopublic void restoreDefault(Transformation trafo, boolean clear)
clear
flag.
trafo
- the trafo to restoreclear
- determines the behaviour for Transformations
without a default matrix: if true, set to the indentity - if
false, do nothing.public void restoreDefaultMatrices(SceneGraphComponent root, boolean clear)
public void storeDefaultMatrices(SceneGraphComponent root)
storeDefault
for all Transformation
s.
root
- the root of the subgraph to traverse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |