|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.RotationKeyframe
public class RotationKeyframe
This class is a keyframe for a rotation track. It can represent rotations both in terms of rotation angles and in terms of quaternions.
Field Summary | |
---|---|
double |
x
|
double |
y
|
double |
z
|
Constructor Summary | |
---|---|
RotationKeyframe(CoordinateSystem coords)
|
|
RotationKeyframe(java.io.DataInputStream in,
java.lang.Object parent)
Reconstructs the keyframe from its serialized representation. |
|
RotationKeyframe(double xrot,
double yrot,
double zrot)
|
Method Summary | |
---|---|
void |
applyToCoordinates(CoordinateSystem coords,
double weight,
Mat4 preTransform,
Mat4 postTransform,
boolean relative,
boolean enablex,
boolean enabley,
boolean enablez)
Apply this rotation to a coordinate system. |
Keyframe |
blend(Keyframe o2,
double weight1,
double weight2)
Return a new Keyframe which is a weighted average of this one and one other. |
Keyframe |
blend(Keyframe o2,
Keyframe o3,
double weight1,
double weight2,
double weight3)
Return a new Keyframe which is a weighted average of this one and two others. |
Keyframe |
blend(Keyframe o2,
Keyframe o3,
Keyframe o4,
double weight1,
double weight2,
double weight3,
double weight4)
Return a new Keyframe which is a weighted average of this one and three others. |
Keyframe |
duplicate()
Create a duplicate of this keyframe. |
Keyframe |
duplicate(java.lang.Object owner)
Create a duplicate of this keyframe for a (possibly different) object. |
boolean |
equals(Keyframe k)
Determine whether this keyframe is identical to another one. |
double[] |
getGraphValues()
Get the list of graphable values for this keyframe. |
double[] |
getQuaternion()
Get the quaternion representation of this keyframe. |
boolean |
getUseQuaternion()
Get which method will be used for interpolating. |
void |
set(double xrot,
double yrot,
double zrot)
Set the rotation angles. |
void |
setGraphValues(double[] values)
Set the list of graphable values for this keyframe. |
void |
setUseQuaternion(boolean use)
Set which method will be used for interpolating. |
void |
writeToStream(java.io.DataOutputStream out)
Write out a representation of this keyframe to a stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double x
public double y
public double z
Constructor Detail |
---|
public RotationKeyframe(double xrot, double yrot, double zrot)
public RotationKeyframe(CoordinateSystem coords)
public RotationKeyframe(java.io.DataInputStream in, java.lang.Object parent) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void set(double xrot, double yrot, double zrot)
public double[] getGraphValues()
getGraphValues
in interface Keyframe
public void setGraphValues(double[] values)
setGraphValues
in interface Keyframe
public boolean getUseQuaternion()
public void setUseQuaternion(boolean use)
public double[] getQuaternion()
public void applyToCoordinates(CoordinateSystem coords, double weight, Mat4 preTransform, Mat4 postTransform, boolean relative, boolean enablex, boolean enabley, boolean enablez)
public Keyframe duplicate()
Keyframe
duplicate
in interface Keyframe
public Keyframe duplicate(java.lang.Object owner)
Keyframe
duplicate
in interface Keyframe
public Keyframe blend(Keyframe o2, double weight1, double weight2)
Keyframe
blend
in interface Keyframe
public Keyframe blend(Keyframe o2, Keyframe o3, double weight1, double weight2, double weight3)
Keyframe
blend
in interface Keyframe
public Keyframe blend(Keyframe o2, Keyframe o3, Keyframe o4, double weight1, double weight2, double weight3, double weight4)
Keyframe
blend
in interface Keyframe
public boolean equals(Keyframe k)
equals
in interface Keyframe
public void writeToStream(java.io.DataOutputStream out) throws java.io.IOException
writeToStream
in interface Keyframe
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |