|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.elckerlyc.animationengine.procanimation.Keyframe
public class Keyframe
Procedural description of a joint rotation at a key time
| Field Summary | |
|---|---|
private float[] |
aa
|
private String |
encoding
|
private float[] |
euler
|
private VJoint |
joint
|
private boolean |
local
|
private org.nfunk.jep.Node[] |
node
|
private org.lsmp.djep.xjep.XJep |
parser
|
private float[] |
q
|
private float[] |
qp
|
private float[] |
qw
|
private String[] |
rotFormula
|
private float |
time
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
Keyframe(Keyframe kf)
Copy-constructor. |
|
Keyframe(org.lsmp.djep.xjep.XJep p,
String enc)
Constructor |
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributeString(StringBuilder buf)
Appends a String to buf that encodes the attributes for the XML encoding. |
int |
compareTo(Keyframe o)
Comparable interface Compares this object with the specified object for order. |
boolean |
decodeAttribute(String attrName,
String attrValue)
decodes the value from an attribute value String returns true if succesful, returns false for attribute names that are not recognized. |
boolean |
decodeAttribute(String attrName,
String attrValue,
XMLTokenizer tokenizer)
decodes the value from an attribute value String returns true if succesful, returns false for attribute names that are not recognized. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
boolean |
evaluate(float[] goal,
VJoint human)
Calculates the joint rotation. |
Vector |
findParameters(Vector v)
returns list with all parameters used in all formulas |
float |
getTime()
|
String |
getXMLTag()
Get the XML tag |
void |
mirror()
|
void |
setJoint(VJoint j)
Sets the joint to rotate |
void |
setRotation(int i,
String rotation)
Set the rotation path |
String |
toString()
the default toString() method returns the result of toXMLSTring() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private org.lsmp.djep.xjep.XJep parser
private float time
private boolean local
private String[] rotFormula
private org.nfunk.jep.Node[] node
private float[] q
private float[] euler
private float[] qw
private float[] qp
private float[] aa
private VJoint joint
private String encoding
| Constructor Detail |
|---|
public Keyframe(org.lsmp.djep.xjep.XJep p,
String enc)
p - parserpublic Keyframe(Keyframe kf)
kf - keyframe to copy| Method Detail |
|---|
public void setJoint(VJoint j)
j - jointpublic void mirror()
public String toString()
XMLStructureAdapter
toString in class XMLStructureAdapter
public void setRotation(int i,
String rotation)
throws org.nfunk.jep.ParseException
i - the rotation axis (0=x,1=y,2=z)rotation - the rotation path a formula of 0 < t < 1 and amplitude a
org.nfunk.jep.ParseExceptionpublic Vector findParameters(Vector v)
public boolean evaluate(float[] goal,
VJoint human)
goal - : output rotation (quaternion)human - : humanoid joint
public int compareTo(Keyframe o)
compareTo in interface Comparable<Keyframe>public StringBuilder appendAttributeString(StringBuilder buf)
XMLStructureAdapter
appendAttributeString in class XMLStructureAdapter
public boolean decodeAttribute(String attrName,
String attrValue)
XMLStructureAdapter
decodeAttribute in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOException
public boolean decodeAttribute(String attrName,
String attrValue,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttribute in class XMLStructureAdapterpublic String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapterpublic float getTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||