|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.animation.PathInterpolator
org.robokind.api.animation.MotionPath
public class MotionPath
An extended PathInterpolator which can generate a CompiledPath from the interpolated positions.
Field Summary |
---|
Fields inherited from class org.robokind.api.animation.PathInterpolator |
---|
myXVals |
Constructor Summary | |
---|---|
MotionPath()
Creates an empty MotionPath with the default Interpolator. |
|
MotionPath(InterpolatorFactory factory)
Creates a MotionPath with an Interpolator from the given InterpolatorFactory. |
Method Summary | |
---|---|
MotionPath |
clone()
Returns a deep copy of the Channel. |
boolean |
compilePath(long stepLength)
Generates and caches a CompiledPath for the complete MotionPath. |
CompiledPath |
compilePath(long start,
long end,
long stepLength)
Creates a CompiledPath from the interpolated points. |
CompiledPath |
getCompiledPath(long stepLength)
Gets a CompiledPath of the full MotionPath. |
String |
getName()
Returns the MotionPath's name. |
Long |
getStartTime()
Returns the start time |
Long |
getStopTime()
Returns the stop time |
protected boolean |
interpolate()
Calls interpolate for PathInterpolator. |
void |
setName(String name)
Sets the name of the MotionPath |
void |
setStartTime(Long time)
Sets the start time |
void |
setStopTime(Long time)
Sets the stop time |
Methods inherited from class org.robokind.api.animation.PathInterpolator |
---|
addPoint, addPoints, addPoints, clear, getControlPoints, getInterpolatedPoints, getInterpolatorFactory, getInterpolatorVersion, insertPoint, interpolationChanged, moveControlPoint, overlaps, removePoint, removePoint, setInterpolatorFactory, setPoint |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MotionPath()
public MotionPath(InterpolatorFactory factory)
factory
- the InterpolatorFactory from which a Motion Path is to be createdMethod Detail |
---|
public String getName()
public void setName(String name)
name
- the name to setpublic void setStartTime(Long time)
time
- start timepublic Long getStartTime()
public void setStopTime(Long time)
time
- stop timepublic Long getStopTime()
public CompiledPath getCompiledPath(long stepLength)
stepLength
- milliseconds between positions
public boolean compilePath(long stepLength)
stepLength
- milliseconds between positions
public CompiledPath compilePath(long start, long end, long stepLength)
start
- path start timeend
- path end timestepLength
- milliseconds between positions
public MotionPath clone()
clone
in class Object
protected boolean interpolate()
interpolate
in class PathInterpolator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |