|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcas.CASMorph
public class CASMorph
A CASMorph defines a morph setting for a CAS animation frame. This may be a conventional "shape" (deformation) morph, or "landmark" morph defined as an (x,y) displacement of a landmark point in an appearance model. Each morph is identified by it four-cc name.
Field Summary | |
---|---|
static int |
LANDMARK
|
static int |
SHAPE
|
Constructor Summary | |
---|---|
CASMorph(CASMorph morph)
Constructs a copy of the given morph. |
|
CASMorph(int name4cc,
float value)
Constructs a shape morph with the given (four-cc) name and amount value. |
|
CASMorph(int name4cc,
float xx,
float yy)
Constructs a landmark morph with the given (four-cc) name and offset values. |
|
CASMorph(JAInputStream jins)
Constructs this morph from the given stream. |
|
CASMorph(java.lang.String name,
float value)
Constructs a shape morph with the given name and amount value. |
|
CASMorph(java.lang.String name,
float xx,
float yy)
Constructs a landmark morph with the given name and offset values. |
Method Summary | |
---|---|
float |
getAmount()
Returns this morph's amount value. |
int |
getName()
Returns this morph's Four-CC name. |
int |
getType()
Returns this morph's type. |
float |
getX()
Returns this morph's x offset. |
float |
getY()
Returns this morph's y offset. |
void |
save(JAOutputStream jouts)
Saves this morph's data to the given stream. |
void |
saveText(java.io.PrintWriter pwrtr)
Prints a legible form of this morph on the given writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int SHAPE
public static int LANDMARK
Constructor Detail |
---|
public CASMorph(java.lang.String name, float value)
public CASMorph(java.lang.String name, float xx, float yy)
public CASMorph(int name4cc, float value)
public CASMorph(int name4cc, float xx, float yy)
public CASMorph(CASMorph morph)
public CASMorph(JAInputStream jins) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getName()
public int getType()
public float getAmount()
public float getX()
public float getY()
public void save(JAOutputStream jouts) throws java.io.IOException
java.io.IOException
public void saveText(java.io.PrintWriter pwrtr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |