|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.Track
artofillusion.animation.ProceduralRotationTrack
public class ProceduralRotationTrack
This is a Track which uses a procedure to control the orientation of an object.
Field Summary | |
---|---|
static int |
ABSOLUTE
|
static int |
LOCAL
|
static int |
OBJECT
|
static int |
PARENT
|
static int |
RELATIVE
|
static int |
WORLD
|
Constructor Summary | |
---|---|
ProceduralRotationTrack(ObjectInfo info)
|
Method Summary | |
---|---|
void |
acceptEdits(ProcedureEditor editor)
This is called when the user clicks OK in the procedure editor. |
boolean |
allowParameters()
Determine whether the procedure may contain Parameter modules. |
boolean |
allowViewAngle()
Determine whether the procedure may contain View Angle modules. |
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. |
boolean |
canEditName()
Determine whether the procedure may be renamed. |
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. |
void |
disposePreview(java.lang.Object preview)
Dispose of the preview object when the editor is closed. |
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 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. |
void |
editProperties(ProcedureEditor editor)
Display the Properties dialog. |
int |
getApplyToJoint()
Get the ID of the joint this track applies to, or -1 if it applies to the object origin. |
int |
getCoordinateSystem()
Get the coordinate system of this track (WORLD, PARENT, OBJECT, or LOCAL). |
ObjectRef |
getCoordsObject()
Get the object reference for the parent coordinate system. |
double[] |
getDefaultGraphValues()
Get the default list of graphable values (for a track which has no keyframes). |
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. |
java.lang.Object |
getPreview(ProcedureEditor editor)
Create an object which displays a preview of the procedure. |
int |
getSmoothingMethod()
Get the smoothing method for this track. |
Track[] |
getSubtracks()
Get any child tracks of 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. |
java.lang.String |
getWindowTitle()
Get the title of the procedure's editing window. |
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. |
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 |
setApplyToJoint(int jointID)
Set the ID of the joint this track applies to. |
void |
setCoordinateSystem(int system)
Set the coordinate system of this track (WORLD, PARENT, OBJECT, or LOCAL). |
void |
setCoordsObject(ObjectRef obj)
Set the object reference for the parent coordinate system. |
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 |
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)
|
void |
updateObjectReferences(java.util.Map<ObjectInfo,ObjectInfo> objectMap)
Update any references to objects this track depends on. |
void |
updatePreview(java.lang.Object preview)
Update the display of the preview. |
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 |
---|
getGraphValues, getName, isEnabled, isQuantized, setEnabled, setKeyframeIfModified, setName, setQuantized |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface artofillusion.procedural.ProcedureOwner |
---|
getName, setName |
Field Detail |
---|
public static final int ABSOLUTE
public static final int RELATIVE
public static final int WORLD
public static final int PARENT
public static final int OBJECT
public static final int LOCAL
Constructor Detail |
---|
public ProceduralRotationTrack(ObjectInfo info)
Method Detail |
---|
public void apply(double time)
Track
apply
in class Track
public Track duplicate(java.lang.Object obj)
Track
duplicate
in class Track
public void copy(Track tr)
Track
copy
in class Track
public double[] getKeyTimes()
Track
getKeyTimes
in class Track
public Timecourse getTimecourse()
Track
getTimecourse
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 Track
public void deleteKeyframe(int which)
Track
deleteKeyframe
in class Track
public boolean isNullTrack()
Track
isNullTrack
in class Track
public Track[] getSubtracks()
Track
getSubtracks
in class Track
public boolean canAcceptAsParent(java.lang.Object obj)
Track
canAcceptAsParent
in class Track
public java.lang.Object getParent()
Track
getParent
in class Track
public void setParent(java.lang.Object obj)
Track
setParent
in class Track
public int getSmoothingMethod()
Track
getSmoothingMethod
in class Track
public void setSmoothingMethod(int method)
public boolean isRelative()
public void setRelative(boolean rel)
public int getCoordinateSystem()
public void setCoordinateSystem(int system)
public ObjectRef getCoordsObject()
public void setCoordsObject(ObjectRef obj)
public int getApplyToJoint()
public void setApplyToJoint(int jointID)
public java.lang.String[] getValueNames()
Track
getValueNames
in class Track
public double[] getDefaultGraphValues()
Track
getDefaultGraphValues
in class Track
public double[][] getValueRange()
Track
getValueRange
in class Track
public ObjectInfo[] getDependencies()
Track
getDependencies
in class Track
public void deleteDependencies(ObjectInfo obj)
Track
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
Track
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
public void editKeyframe(LayoutWindow win, int which)
Track
editKeyframe
in class Track
public void edit(LayoutWindow win)
Track
edit
in class Track
public java.lang.String getWindowTitle()
getWindowTitle
in interface ProcedureOwner
public java.lang.Object getPreview(ProcedureEditor editor)
getPreview
in interface ProcedureOwner
public void updatePreview(java.lang.Object preview)
updatePreview
in interface ProcedureOwner
public void disposePreview(java.lang.Object preview)
disposePreview
in interface ProcedureOwner
public boolean allowViewAngle()
allowViewAngle
in interface ProcedureOwner
public boolean allowParameters()
allowParameters
in interface ProcedureOwner
public boolean canEditName()
canEditName
in interface ProcedureOwner
public void acceptEdits(ProcedureEditor editor)
acceptEdits
in interface ProcedureOwner
public void editProperties(ProcedureEditor editor)
editProperties
in interface ProcedureOwner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |