hmi.animation
Class VObjectTransformCopier

java.lang.Object
  extended by hmi.animation.VObjectTransformCopier

public class VObjectTransformCopier
extends Object

Copies transformations from a list of source VObject to a list of destination VObjects

Author:
welberge

Field Summary
private  float[] buf
           
private  String configType
           
private  VObject[] dstParts
           
private static VObject[] emptyParts
           
private  boolean hasAngularVelocity
           
private  boolean hasRootTranslation
           
private  boolean hasRotation
           
private  boolean hasScale
           
private  boolean hasTranslation
           
private  boolean hasVelocity
           
private  VObject[] srcParts
           
 
Constructor Summary
protected VObjectTransformCopier(VObject[] srcParts, VObject[] dstParts, String type)
           
 
Method Summary
 void copyConfig()
          Copies translation, rotation and,
private static boolean equiv(VObject src, VObject dst)
           
 String getConfigType()
           
static
<T extends VObject>
VObjectTransformCopier
newInstanceFromMatchingVObjectLists(List<T> srcList, List<T> dstList, String type)
          Creates a new VObject copier from lists of VObjects WITHOUT CHECKING, assuming that the one who calls the constructor makes sure that src and dst match
static VObjectTransformCopier newInstanceFromVJointTree(VJoint sourceRoot, VJoint destinationRoot, String type)
          Creates a new VObject copier from two VJoint root objects
static
<T extends VObject>
VObjectTransformCopier
newInstanceFromVObjectLists(List<T> srcList, List<T> dstList, String type)
          Creates a new VObject copier from lists of VObjects
 void setConfigType(String configType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcParts

private final VObject[] srcParts

dstParts

private final VObject[] dstParts

configType

private String configType

hasRootTranslation

private boolean hasRootTranslation

hasTranslation

private boolean hasTranslation

hasRotation

private boolean hasRotation

hasScale

private boolean hasScale

hasVelocity

private boolean hasVelocity

hasAngularVelocity

private boolean hasAngularVelocity

buf

private float[] buf

emptyParts

private static final VObject[] emptyParts
Constructor Detail

VObjectTransformCopier

protected VObjectTransformCopier(VObject[] srcParts,
                                 VObject[] dstParts,
                                 String type)
Method Detail

newInstanceFromMatchingVObjectLists

public static <T extends VObject> VObjectTransformCopier newInstanceFromMatchingVObjectLists(List<T> srcList,
                                                                                             List<T> dstList,
                                                                                             String type)
Creates a new VObject copier from lists of VObjects WITHOUT CHECKING, assuming that the one who calls the constructor makes sure that src and dst match


newInstanceFromVObjectLists

public static <T extends VObject> VObjectTransformCopier newInstanceFromVObjectLists(List<T> srcList,
                                                                                     List<T> dstList,
                                                                                     String type)
Creates a new VObject copier from lists of VObjects


newInstanceFromVJointTree

public static VObjectTransformCopier newInstanceFromVJointTree(VJoint sourceRoot,
                                                               VJoint destinationRoot,
                                                               String type)
Creates a new VObject copier from two VJoint root objects


equiv

private static boolean equiv(VObject src,
                             VObject dst)

setConfigType

public void setConfigType(String configType)

copyConfig

public void copyConfig()
Copies translation, rotation and,


getConfigType

public String getConfigType()