public class ColladaTraversalContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Stack<Matrix> |
matrixStack
Transform matrix stack.
|
Constructor and Description |
---|
ColladaTraversalContext()
Create a new traversal context.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.util.Stack<Matrix> matrixStack
public ColladaTraversalContext()
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.