|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.animation.SkeletonPose
public class SkeletonPose
Contains a single pose in a config and a configType describing what the numbers in the config mean. Poses can be set to or from an array of VObjects set as target
| Field Summary | |
|---|---|
private float[] |
config
|
private int |
configSize
|
private String |
configType
|
private static String[] |
empty_PartIds
|
private boolean |
hasAngularVelocity
|
private boolean |
hasRootTranslation
|
private boolean |
hasRotation
|
private boolean |
hasScale
|
private boolean |
hasTranslation
|
private boolean |
hasVelocity
|
private static org.slf4j.Logger |
logger
|
private String[] |
partIds
|
private String |
rotationEncoding
|
private int |
stride
|
private VObject[] |
targetParts
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
SkeletonPose(String[] partIds,
float[] config,
String configType)
Creates a new SkeletonInterpolator for a specified ConfigList, VParts, and Config type. |
|
SkeletonPose(String[] partIds,
String configType)
Creates a new SkeletonInterpolator for a specified ConfigList, VParts, and Config type. |
|
SkeletonPose(VObject[] targets,
String configType)
|
|
SkeletonPose(XMLTokenizer tokenizer)
Creates a new, uninitialized, SkeletonInterpolator |
|
| Method Summary | |
|---|---|
private void |
calculateConfigSize()
|
private void |
convertFromAxisAngles()
|
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes the XML attributes |
void |
decodeContent(XMLTokenizer xmlTokenizer)
Decodes XML content, and converts it into the float config data. |
float[] |
getConfig()
Gets the Config list |
int |
getConfigSize()
Returns the (uniform) size of configs, in number of floats. |
String |
getConfigType()
Returns the configuration type, as encoded conform VOBject types. |
String[] |
getPartIds()
Returns the list of ids of the VObject parts that are influenced by this interpolator. |
String |
getRotationEncoding()
|
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
void |
setConfig(float[] config)
Sets the ConfigList, defining the VPartsConfigs to be interpolated. |
void |
setConfigType(String configType)
|
void |
setFromTarget()
Sets the current pose from the status of the VObject target |
void |
setPartIds(String[] partIds)
Sets the list of VObject ids/sids |
void |
setPartIds(VObject[] targets)
|
void |
setRotationEncoding(String rotationEncoding)
|
void |
setTargets(VObject[] targets)
Sets a specified VObject array as target for the pose A lookup is performed for parts of the target with Id/Sid/Name as defined by the partIds for this pose. |
void |
setToTarget()
Sets the current pose to the VObject target |
int |
size()
returns the size of the list |
static String |
xmlTag()
The XML Stag for XML encoding -- use this static method when you want to see if a given String equals the xml tag for this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String[] empty_PartIds
private String[] partIds
private float[] config
private String configType
private int configSize
private int stride
private boolean hasRootTranslation
private boolean hasTranslation
private boolean hasRotation
private boolean hasScale
private boolean hasVelocity
private boolean hasAngularVelocity
private String rotationEncoding
private VObject[] targetParts
private static org.slf4j.Logger logger
private static final String XMLTAG
| Constructor Detail |
|---|
public SkeletonPose(XMLTokenizer tokenizer)
throws IOException
IOException
public SkeletonPose(String[] partIds,
float[] config,
String configType)
public SkeletonPose(String[] partIds,
String configType)
public SkeletonPose(VObject[] targets,
String configType)
| Method Detail |
|---|
public void setPartIds(VObject[] targets)
private void calculateConfigSize()
public void setConfig(float[] config)
public float[] getConfig()
public void setPartIds(String[] partIds)
public String[] getPartIds()
public String getConfigType()
public void setConfigType(String configType)
public void setRotationEncoding(String rotationEncoding)
public int getConfigSize()
public int size()
public void setTargets(VObject[] targets)
public void setToTarget()
public void setFromTarget()
public String getRotationEncoding()
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodeAttributes in class XMLStructureAdapter
public void decodeContent(XMLTokenizer xmlTokenizer)
throws IOException
decodeContent in class XMLStructureAdapterIOExceptionprivate void convertFromAxisAngles()
public static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||