|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.behaviors.interpolators.CubicSplineCurve
public class CubicSplineCurve
CubicSplineCurve is a container class that holds a number of cubicSplineSegments
Field Summary | |
---|---|
private CubicSplineSegment[] |
cubicSplineSegment
|
int |
numSegments
|
private float |
totalCurveLength
|
Constructor Summary | |
---|---|
CubicSplineCurve()
Default constructor |
|
CubicSplineCurve(CubicSplineSegment[] s)
This method takes a list of spline segments creates the CubicSplineCurve. |
|
CubicSplineCurve(TCBKeyFrame[] keys)
This method takes a list of key frames and creates spline segments from it. |
Method Summary | |
---|---|
private void |
computeTotalCurveLength()
|
CubicSplineSegment |
getSegment(int index)
This method returns the CubicSplineSegments pointed to by index |
float |
getTotalCurveLength()
This method returns the total length of the entire CubicSplineCurve motion path. |
void |
setSegments(CubicSplineSegment[] s)
This method takes a list of spline segments to replace the existing set of CubicSplineSegments that comprise the current CubicSplineCurve motion path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float totalCurveLength
private CubicSplineSegment[] cubicSplineSegment
public int numSegments
Constructor Detail |
---|
CubicSplineCurve()
CubicSplineCurve(TCBKeyFrame[] keys)
keys
- the list of key frames that specify the motion pathCubicSplineCurve(CubicSplineSegment[] s)
the
- list of segments that comprise the complete motion pathMethod Detail |
---|
public void setSegments(CubicSplineSegment[] s)
s
- the list of segments that comprise the complete motion pathpublic CubicSplineSegment getSegment(int index)
index
- the index of the CubicSplineSegment required
private void computeTotalCurveLength()
public float getTotalCurveLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |