jarp
Class MorphSet

java.lang.Object
  extended by jarp.MorphSet

public class MorphSet
extends java.lang.Object

A morph-definition element for a Java ARP avatar, specifying a mesh vertex and an offset (for a "shape" morph), or a weight (for a "landmark" morph).


Constructor Summary
MorphSet()
          Default constructor -- ixVertex is -1.
MorphSet(JAInputStream jins, boolean hasnorm)
          Constructs this MorphSet from the given stream.
 
Method Summary
 Vector3f getNormal()
          Returns this morph-set's normal vector.
 float[] getNormalFloats()
          Returns this morph-set's normal vector as an array of 3 floats.
 Vector3f getOffset()
          Returns this morph-set's offset (distortion) vector.
 float[] getOffsetFloats()
          Returns this morph-set's offset (distortion) vector as an array of 3 floats.
 int getVertexId()
          Returns this morph-set's vertex index.
 float getWeight()
          Returns this morph-set's weight.
 void save(JAOutputStream jouts)
          Writes this MorphSet to the given stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphSet

public MorphSet()
Default constructor -- ixVertex is -1.


MorphSet

public MorphSet(JAInputStream jins,
                boolean hasnorm)
         throws java.io.IOException
Constructs this MorphSet from the given stream.

Throws:
java.io.IOException
Method Detail

getVertexId

public int getVertexId()
Returns this morph-set's vertex index.


getWeight

public float getWeight()
Returns this morph-set's weight.


getOffset

public Vector3f getOffset()
Returns this morph-set's offset (distortion) vector.


getNormal

public Vector3f getNormal()
Returns this morph-set's normal vector.


getOffsetFloats

public float[] getOffsetFloats()
Returns this morph-set's offset (distortion) vector as an array of 3 floats.


getNormalFloats

public float[] getNormalFloats()
Returns this morph-set's normal vector as an array of 3 floats.


save

public void save(JAOutputStream jouts)
          throws java.io.IOException
Writes this MorphSet to the given stream.

Throws:
java.io.IOException