|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.animation.Track
artofillusion.animation.PoseTrack
public class PoseTrack
This is a Track which controls the pose of an object.
| Constructor Summary | |
|---|---|
PoseTrack(ObjectInfo info)
|
|
| Method Summary | |
|---|---|
void |
apply(double time)
Modify the pose of the object. |
boolean |
canAcceptAsParent(java.lang.Object obj)
Determine whether this track can be added as a child of an object. |
void |
copy(Track tr)
Make this track identical to another one. |
void |
deleteKeyframe(int which)
Delete the specified keyframe. |
Track |
duplicate(java.lang.Object obj)
Create a duplicate of this track. |
void |
edit(LayoutWindow win)
This method presents a window in which the user can edit the track. |
void |
editKeyframe(LayoutWindow win,
int which)
Present a window in which the user can edit the specified keyframe. |
double[] |
getDefaultGraphValues()
Get the default list of graphable values (for a track which has no keyframes). |
double[] |
getKeyTimes()
Get a list of all keyframe times for this track. |
java.lang.Object |
getParent()
Get the parent object of this track. |
int |
getSmoothingMethod()
Get the smoothing method for this track. |
Track[] |
getSubtracks()
This has a single child track. |
Timecourse |
getTimecourse()
Get the timecourse describing this track. |
java.lang.String[] |
getValueNames()
Get the names of all graphable values for this track. |
double[][] |
getValueRange()
Get the allowed range for graphable values. |
void |
initFromStream(java.io.DataInputStream in,
Scene scene)
Initialize this tracked based on its serialized representation as written by writeToStream(). |
boolean |
isNullTrack()
This track is null if it has no keyframes. |
boolean |
isRelative()
Determine whether this track is in absolute or relative mode. |
int |
moveKeyframe(int which,
double time)
Move a keyframe to a new time, and return its new position in the list. |
void |
setGraphableValues(java.lang.String[] names,
double[] defaults,
double[][] ranges)
Set the list of graphable values for this track. |
void |
setKeyframe(double time,
Keyframe k,
Smoothness s)
Set a keyframe at the specified time. |
Keyframe |
setKeyframe(double time,
Scene sc)
Set a keyframe at the specified time, based on the current state of the Scene. |
Keyframe |
setKeyframeIfModified(double time,
Scene sc)
Set a keyframe at the specified time, based on the current state of the Scene, if and only if the Scene does not match the current state of the track. |
void |
setParent(java.lang.Object obj)
Set the parent object of this track. |
void |
setRelative(boolean rel)
Set whether this track is in absolute or relative mode. |
void |
setSmoothingMethod(int method)
Set the smoothing method for this track. |
void |
setSubtracks(Track[] extraSubtracks)
Set the list of subtracks (other than the weight track) for this track. |
void |
writeToStream(java.io.DataOutputStream out,
Scene sc)
Write a serialized representation of this track to a stream. |
| Methods inherited from class artofillusion.animation.Track |
|---|
deleteDependencies, getDependencies, getGraphValues, getName, isEnabled, isQuantized, setEnabled, setName, setQuantized |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoseTrack(ObjectInfo info)
| Method Detail |
|---|
public void apply(double time)
apply in class Trackpublic Track duplicate(java.lang.Object obj)
duplicate in class Trackpublic void copy(Track tr)
copy in class Trackpublic double[] getKeyTimes()
getKeyTimes in class Trackpublic Timecourse getTimecourse()
getTimecourse in class Track
public void setKeyframe(double time,
Keyframe k,
Smoothness s)
setKeyframe in class Track
public Keyframe setKeyframe(double time,
Scene sc)
setKeyframe in class Track
public Keyframe setKeyframeIfModified(double time,
Scene sc)
setKeyframeIfModified in class Track
public int moveKeyframe(int which,
double time)
moveKeyframe in class Trackpublic void deleteKeyframe(int which)
deleteKeyframe in class Trackpublic boolean isNullTrack()
isNullTrack in class Trackpublic Track[] getSubtracks()
getSubtracks in class Trackpublic boolean canAcceptAsParent(java.lang.Object obj)
canAcceptAsParent in class Trackpublic java.lang.Object getParent()
getParent in class Trackpublic void setParent(java.lang.Object obj)
setParent in class Trackpublic int getSmoothingMethod()
getSmoothingMethod in class Trackpublic void setSmoothingMethod(int method)
public boolean isRelative()
public void setRelative(boolean rel)
public java.lang.String[] getValueNames()
getValueNames in class Trackpublic double[] getDefaultGraphValues()
getDefaultGraphValues in class Trackpublic double[][] getValueRange()
getValueRange in class Track
public void setGraphableValues(java.lang.String[] names,
double[] defaults,
double[][] ranges)
names - the names of the graphable valuesdefaults - the default values of the graphable valuesranges - specifies the allowed range of each graphable values. elements [n][0]
and [n][1] are the minimum and maximum allowed values, respectively, for
the nth graphable value.public void setSubtracks(Track[] extraSubtracks)
public void writeToStream(java.io.DataOutputStream out,
Scene sc)
throws java.io.IOException
writeToStream in class Trackjava.io.IOException
public void initFromStream(java.io.DataInputStream in,
Scene scene)
throws java.io.IOException,
java.io.InvalidObjectException
initFromStream in class Trackjava.io.IOException
java.io.InvalidObjectException
public void editKeyframe(LayoutWindow win,
int which)
editKeyframe in class Trackpublic void edit(LayoutWindow win)
edit in class Track
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||