|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.ogc.collada.impl.ColladaTraversalContext
public class ColladaTraversalContext
Context to keep track of state while a COLLADA document is traversed. The traversal context keeps track of the transform matrix stack that determines how COLLADA nodes are rendered.
| Field Summary | |
|---|---|
protected Stack<Matrix> |
matrixStack
Transform matrix stack. |
| Constructor Summary | |
|---|---|
ColladaTraversalContext()
Create a new traversal context. |
|
| Method Summary | |
|---|---|
void |
initialize()
Reset the context so that it may be used for a fresh traversal. |
void |
multiplyMatrix(Matrix m)
Multiply the matrix at the top of the stack with another matrix. |
Matrix |
peekMatrix()
Returns the matrix at the top of the matrix stack, but does not modify the stack. |
Matrix |
popMatrix()
Removes the matrix at the top of the matrix stack. |
void |
pushMatrix()
Clone the matrix at the top of the matrix stack and push the clone onto the stack. |
void |
pushMatrix(Matrix m)
Push a matrix onto the stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Stack<Matrix> matrixStack
| Constructor Detail |
|---|
public ColladaTraversalContext()
| Method Detail |
|---|
public void initialize()
public void multiplyMatrix(Matrix m)
m - Matrix to multiply. Multiplication is performed as top * m.public Matrix peekMatrix()
public Matrix popMatrix()
public void pushMatrix()
public void pushMatrix(Matrix m)
m - Matrix to add to the stack. This matrix becomes the new top matrix.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||