cas
Class CASMorph

java.lang.Object
  extended by cas.CASMorph

public class CASMorph
extends java.lang.Object

A CASMorph defines a morph setting for a CAS animation frame. This is a conventional "shape" (deformation) morph. (In ancient times it could alternatively be a "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.


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(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.
 
Method Summary
 float getAmount()
          Returns this morph's amount value.
 int getName()
          Returns this morph's Four-CC name.
 boolean hasName(int nm4cc)
          Indicates whether or not this morph has the given Four-CC name.
 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
 

Constructor Detail

CASMorph

public CASMorph(java.lang.String name,
                float value)
Constructs a shape morph with the given name and amount value.


CASMorph

public CASMorph(int name4cc,
                float value)
Constructs a shape morph with the given (four-cc) name and amount value.


CASMorph

public CASMorph(CASMorph morph)
Constructs a copy of the given morph.


CASMorph

public CASMorph(JAInputStream jins)
         throws java.io.IOException
Constructs this morph from the given stream.

Throws:
java.io.IOException
Method Detail

hasName

public boolean hasName(int nm4cc)
Indicates whether or not this morph has the given Four-CC name.


getName

public int getName()
Returns this morph's Four-CC name.


getAmount

public float getAmount()
Returns this morph's amount value.


save

public void save(JAOutputStream jouts)
          throws java.io.IOException
Saves this morph's data to the given stream.

Throws:
java.io.IOException

saveText

public void saveText(java.io.PrintWriter pwrtr)
Prints a legible form of this morph on the given writer.