| java.lang.Object com.db.hanim.Gesture
Gesture | public class Gesture extends Object (Code) | | This class to implement a H-Anim 1.1 compatible avatar Gesture.
author: Silvere Martin-Michiellot version: 1.1 |
Constructor Summary | |
public | Gesture(Humanoid humanoid, String gestureName, long duration, int loop) Constructs a new Gesture. |
duration | protected long duration(Code) | | |
Gesture | public Gesture(Humanoid humanoid, String gestureName, long duration, int loop)(Code) | | Constructs a new Gesture. Each Gesture is a combination of movements. Each movement describes the position and orientation of a Joint using an Interpolator.
Parameters: humanoid - the humanoid to apply the Gesture to Parameters: gestureName - the human readable name for this gesture Parameters: duration - the total duration of this gesture Parameters: loop - the number of loops to apply to this gesture |
addGesturePositionComponent | public void addGesturePositionComponent(Joint joint, float[] knots, Point3f[] positions)(Code) | | Adds a movement for a Joint as a position component
Parameters: Joint - the Joint to which these time sliced translations are applied Parameters: knots - the float array that defines the time slices. Parameters: positions - the Point3f array that describes the successive positions of the Joint exception: java.lang.IllegalArgumentException - if the Joint doesn't exist in the Humanoid used for this gesture. |
addGestureRotPosComponent | public void addGestureRotPosComponent(Joint joint, float[] knots, Quat4f[] quats, Point3f[] positions)(Code) | | Adds a movement for a Joint as a position and rotation component
Parameters: Joint - the Joint to which these time sliced translations and roations are applied Parameters: knots - the float array that defines the time slices. Parameters: positions - the Point3f array that describes the successive positions of the Joint Parameters: positions - the Point3f array that describes the successive rotations of the Joint exception: java.lang.IllegalArgumentException - if the Joint doesn't exist in the Humanoid used for this gesture. |
addGestureRotationComponent | public void addGestureRotationComponent(Joint joint, float[] knots, Quat4f[] quats)(Code) | | Adds a movement for a Joint as a rotation component
Parameters: Joint - the Joint to which these time sliced rotations are applied Parameters: knots - the float array that defines the time slices. Parameters: quats - the Quat4f array that describes the successive rotations of the Joint exception: java.lang.IllegalArgumentException - if the Joint doesn't exist in the Humanoid used for this gesture. |
getBranchGroup | public BranchGroup getBranchGroup()(Code) | | Gets the BranchGroup that can be used by Java3D to animate the Humanoid. Every element in the resulting BranchGroup has its userData set to the Name of the corresponding Joint.
the BranchGroup that contains all the interpolators to be added to the Java3D graph |
getDuration | public long getDuration()(Code) | | Gets the total duration of this Gesture
the duration of the gesture. An Alpha component is used is the underlying implementation. See Java3D documentation. |
getHumanoid | public Humanoid getHumanoid()(Code) | | Gets the Humanoid used with this Gesture
the Humanoid |
getLoop | public int getLoop()(Code) | | Gets the number of loops for this Gesture
the number of loops of the gesture. An Alpha component is used is the underlying implementation. See Java3D documentation. |
getName | public String getName()(Code) | | Gets the String name of this Gesture
the name of this Gesture |
|
|