com.jme3.animation
Class Pose

java.lang.Object
  extended by com.jme3.animation.Pose
All Implemented Interfaces:
Savable, java.lang.Cloneable

public final class Pose
extends java.lang.Object
implements Savable, java.lang.Cloneable

A pose is a list of offsets that say where a mesh vertices should be for this pose.


Constructor Summary
Pose()
          Serialization-only.
Pose(java.lang.String name, int targetMeshIndex, Vector3f[] offsets, int[] indices)
           
 
Method Summary
 void apply(float blend, java.nio.FloatBuffer vertbuf)
          Applies the offsets of this pose to the vertex buffer given by the blend factor.
 Pose clone()
          This method creates a clone of the current object.
 int getTargetMeshIndex()
           
 void read(JmeImporter i)
           
 void write(JmeExporter e)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pose

public Pose(java.lang.String name,
            int targetMeshIndex,
            Vector3f[] offsets,
            int[] indices)

Pose

public Pose()
Serialization-only. Do not use.

Method Detail

getTargetMeshIndex

public int getTargetMeshIndex()

apply

public void apply(float blend,
                  java.nio.FloatBuffer vertbuf)
Applies the offsets of this pose to the vertex buffer given by the blend factor.

Parameters:
blend - Blend factor, 0 = no change to vertex buffer, 1 = apply full offsets
vertbuf - Vertex buffer to apply this pose to

clone

public Pose clone()
This method creates a clone of the current object.

Overrides:
clone in class java.lang.Object
Returns:
a clone of the current object

write

public void write(JmeExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Throws:
java.io.IOException

read

public void read(JmeImporter i)
          throws java.io.IOException
Specified by:
read in interface Savable
Throws:
java.io.IOException