artofillusion.animation.distortion
Class ShatterTrack

java.lang.Object
  extended by artofillusion.animation.Track
      extended by artofillusion.animation.distortion.ShatterTrack

public class ShatterTrack
extends Track

This is a Track which applies a ShatterDistortion to an object.


Constructor Summary
ShatterTrack(ObjectInfo info)
           
 
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.
 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 (possibly for another object and/or parent track).
 void edit(LayoutWindow win)
          This method presents a window in which the user can edit the track.
 double[] getKeyTimes()
          Get a list of all keyframe times for this track.
 java.lang.Object getParent()
          Get the parent object of this track.
 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 setParent(java.lang.Object obj)
          Set the parent object of this track.
 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
deleteDependencies, editKeyframe, getDefaultGraphValues, getDependencies, getGraphValues, getName, getSmoothingMethod, getSubtracks, getTimecourse, getValueNames, getValueRange, isEnabled, isQuantized, setEnabled, setKeyframe, setKeyframe, setKeyframeIfModified, setName, setQuantized, updateObjectReferences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShatterTrack

public ShatterTrack(ObjectInfo info)
Method Detail

apply

public void apply(double time)
Description copied from class: Track
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.

Specified by:
apply in class Track

duplicate

public Track duplicate(java.lang.Object obj)
Description copied from class: Track
Create a duplicate of this track (possibly for another object and/or parent track).

Specified by:
duplicate in class Track

copy

public void copy(Track tr)
Description copied from class: Track
Make this track identical to another one.

Specified by:
copy in class Track

getKeyTimes

public double[] getKeyTimes()
Description copied from class: Track
Get a list of all keyframe times for this track.

Specified by:
getKeyTimes in class Track

moveKeyframe

public int moveKeyframe(int which,
                        double time)
Description copied from class: Track
Move a keyframe to a new time, and return its new position in the list.

Specified by:
moveKeyframe in class Track

deleteKeyframe

public void deleteKeyframe(int which)
Description copied from class: Track
Delete the specified keyframe.

Specified by:
deleteKeyframe in class Track

isNullTrack

public boolean isNullTrack()
Description copied from class: Track
A null track is one which has no affect on the scene. This usually means that no keyframes have been added to it.

Specified by:
isNullTrack in class Track

canAcceptAsParent

public boolean canAcceptAsParent(java.lang.Object obj)
Description copied from class: Track
Determine whether this track can be added as a child of an object.

Overrides:
canAcceptAsParent in class Track

getParent

public java.lang.Object getParent()
Description copied from class: Track
Get the parent object of this track.

Overrides:
getParent in class Track

setParent

public void setParent(java.lang.Object obj)
Description copied from class: Track
Set the parent object of this track.

Overrides:
setParent in class Track

writeToStream

public void writeToStream(java.io.DataOutputStream out,
                          Scene scene)
                   throws java.io.IOException
Description copied from class: Track
Write a serialized representation of this track to a stream.

Specified by:
writeToStream in class Track
Throws:
java.io.IOException

initFromStream

public void initFromStream(java.io.DataInputStream in,
                           Scene scene)
                    throws java.io.IOException,
                           java.io.InvalidObjectException
Initialize this tracked based on its serialized representation as written by writeToStream().

Specified by:
initFromStream in class Track
Throws:
java.io.IOException
java.io.InvalidObjectException

edit

public void edit(LayoutWindow win)
This method presents a window in which the user can edit the track.

Specified by:
edit in class Track


Copyright © 1999-2011 by Peter Eastman.