hmi.graphics.collada.scenegraph
Class TransformTranslator

java.lang.Object
  extended by hmi.graphics.collada.scenegraph.TransformTranslator

public final class TransformTranslator
extends Object

Translates a sequence of transforms

Author:
Job Zwiers

Field Summary
private static float[] m
           
private static float[] q
           
private static float[] smat
           
private static int stage
           
private static int STAGE0
           
private static int STAGE1
           
private static int STAGE2
           
private static int STAGE3
           
private static int STAGE4
           
private static int STAGE5
           
private static float[] svec
           
private static float[] t
           
 
Constructor Summary
private TransformTranslator()
           
 
Method Summary
private static void setMatrix()
           
static void setTransform(List<TransformNode> transforms, GNode gnode)
          Translates a list of TransformNodes in a transform matrix and, if possible, a decomposition in a rotation, translation and scaling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m

private static float[] m

t

private static float[] t

q

private static float[] q

svec

private static float[] svec

smat

private static float[] smat

stage

private static int stage

STAGE0

private static final int STAGE0
See Also:
Constant Field Values

STAGE1

private static final int STAGE1
See Also:
Constant Field Values

STAGE2

private static final int STAGE2
See Also:
Constant Field Values

STAGE3

private static final int STAGE3
See Also:
Constant Field Values

STAGE4

private static final int STAGE4
See Also:
Constant Field Values

STAGE5

private static final int STAGE5
See Also:
Constant Field Values
Constructor Detail

TransformTranslator

private TransformTranslator()
Method Detail

setMatrix

private static void setMatrix()

setTransform

public static void setTransform(List<TransformNode> transforms,
                                GNode gnode)
Translates a list of TransformNodes in a transform matrix and, if possible, a decomposition in a rotation, translation and scaling. The results are used to set the transforms for a specified GNode.