|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.Track
artofillusion.animation.ConstraintTrack
public class ConstraintTrack
This is a Track which places constraints on the position or orientation of an object.
Constructor Summary | |
---|---|
ConstraintTrack(ObjectInfo info)
|
Method Summary | |
---|---|
void |
apply(double time)
Modify the position 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 |
deleteDependencies(ObjectInfo obj)
Delete all references to the specified object from this track. |
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. |
ObjectInfo[] |
getDependencies()
Get an array of any objects which this track depends on (and which therefore must be updated before this track is applied). |
double[] |
getKeyTimes()
Get a list of all keyframe times for this track. |
java.lang.Object |
getParent()
Get the parent object of this track. |
Track[] |
getSubtracks()
This has a single child track. |
void |
initFromStream(java.io.DataInputStream in,
Scene scene)
Initialize this tracked based on its serialized representation as written by writeToStream(). |
boolean |
isNullTrack()
Constraint tracks are never null. |
int |
moveKeyframe(int which,
double time)
Move a keyframe to a new time, and return its new position in the list. |
void |
setParent(java.lang.Object obj)
Set the parent object of this track. |
void |
updateObjectReferences(java.util.Map<ObjectInfo,ObjectInfo> objectMap)
Update any references to objects this track depends on. |
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 |
---|
editKeyframe, getDefaultGraphValues, getGraphValues, getName, getSmoothingMethod, getTimecourse, getValueNames, getValueRange, isEnabled, isQuantized, setEnabled, setKeyframe, setKeyframe, setKeyframeIfModified, setName, setQuantized |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstraintTrack(ObjectInfo info)
Method Detail |
---|
public void edit(LayoutWindow win)
edit
in class Track
public void apply(double time)
apply
in class Track
public Track duplicate(java.lang.Object obj)
duplicate
in class Track
public void copy(Track tr)
copy
in class Track
public double[] getKeyTimes()
getKeyTimes
in class Track
public int moveKeyframe(int which, double time)
moveKeyframe
in class Track
public void deleteKeyframe(int which)
deleteKeyframe
in class Track
public boolean isNullTrack()
isNullTrack
in class Track
public Track[] getSubtracks()
getSubtracks
in class Track
public boolean canAcceptAsParent(java.lang.Object obj)
canAcceptAsParent
in class Track
public java.lang.Object getParent()
getParent
in class Track
public void setParent(java.lang.Object obj)
setParent
in class Track
public ObjectInfo[] getDependencies()
getDependencies
in class Track
public void deleteDependencies(ObjectInfo obj)
deleteDependencies
in class Track
public void updateObjectReferences(java.util.Map<ObjectInfo,ObjectInfo> objectMap)
Track
updateObjectReferences
in class Track
public void writeToStream(java.io.DataOutputStream out, Scene scene) throws java.io.IOException
writeToStream
in class Track
java.io.IOException
public void initFromStream(java.io.DataInputStream in, Scene scene) throws java.io.IOException, java.io.InvalidObjectException
initFromStream
in class Track
java.io.IOException
java.io.InvalidObjectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |