|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.animation.Track
artofillusion.animation.WeightTrack
public class WeightTrack
This is a Track which controls the weight given to another track.
| Constructor Summary | |
|---|---|
WeightTrack(Track parent)
|
|
| Method Summary | |
|---|---|
void |
apply(double time)
This method should modify whatever aspects of the scene are governed by this track, so that they correspond to their values at the specified time. |
void |
copy(Track tr)
Make this track identical to another one. |
void |
deleteKeyframe(int which)
Delete the specified keyframe. |
Track |
duplicate(java.lang.Object parent)
Create a duplicate of this track (possibly for another object and/or parent track). |
void |
edit(LayoutWindow win)
This method should present a window in which the user can edit the track. |
void |
editKeyframe(LayoutWindow win,
int which)
This method should 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. |
Timecourse |
getTimecourse()
Get the timecourse describing this track, or null if it is not described by a timecourse. |
java.lang.String[] |
getValueNames()
Get the names of all graphable values for this track. |
double[][] |
getValueRange()
Get the allowed range for graphable values. |
double |
getWeight(double time)
|
void |
initFromStream(java.io.DataInputStream in,
Scene scene)
Initialize this tracked based on its serialized representation as written by writeToStream(). |
boolean |
isNullTrack()
A null track is one which has no affect on the scene. |
int |
moveKeyframe(int which,
double time)
Move a keyframe to a new time, and return its new position in the list. |
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. |
void |
setSmoothingMethod(int method)
|
void |
setTimecourse(Timecourse t)
|
void |
writeToStream(java.io.DataOutputStream out,
Scene scene)
Write a serialized representation of this track to a stream. |
| Methods inherited from class artofillusion.animation.Track |
|---|
canAcceptAsParent, deleteDependencies, getDependencies, getGraphValues, getName, getSubtracks, isEnabled, isQuantized, setEnabled, setKeyframeIfModified, setName, setParent, setQuantized |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeightTrack(Track parent)
| Method Detail |
|---|
public double getWeight(double time)
public void apply(double time)
Track
apply in class Trackpublic Track duplicate(java.lang.Object parent)
Track
duplicate in class Trackpublic void copy(Track tr)
Track
copy in class Trackpublic Timecourse getTimecourse()
Track
getTimecourse in class Trackpublic void setTimecourse(Timecourse t)
public int getSmoothingMethod()
Track
getSmoothingMethod in class Trackpublic void setSmoothingMethod(int method)
public double[] getKeyTimes()
Track
getKeyTimes in class Track
public void setKeyframe(double time,
Keyframe k,
Smoothness s)
Track
setKeyframe in class Track
public Keyframe setKeyframe(double time,
Scene sc)
Track
setKeyframe in class Track
public int moveKeyframe(int which,
double time)
Track
moveKeyframe in class Trackpublic void deleteKeyframe(int which)
Track
deleteKeyframe in class Trackpublic boolean isNullTrack()
Track
isNullTrack in class Trackpublic java.lang.Object getParent()
Track
getParent in class Trackpublic java.lang.String[] getValueNames()
Track
getValueNames in class Trackpublic double[] getDefaultGraphValues()
Track
getDefaultGraphValues in class Trackpublic double[][] getValueRange()
Track
getValueRange in class Track
public void writeToStream(java.io.DataOutputStream out,
Scene scene)
throws java.io.IOException
Track
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)
Track
editKeyframe in class Trackpublic void edit(LayoutWindow win)
Track
edit in class Track
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||