|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.j3d.utils.behaviors.interpolators.KBCubicSplineCurve
public class KBCubicSplineCurve
KBCubicSplineCurve is a container class that holds a number of KBCubicSplineSegments
| Field Summary | |
|---|---|
private KBCubicSplineSegment[] |
cubicSplineSegment
|
int |
numSegments
|
private float |
totalCurveLength
|
| Constructor Summary | |
|---|---|
KBCubicSplineCurve()
|
|
KBCubicSplineCurve(KBCubicSplineSegment[] s)
This method takes a list of spline segments creates the KBCubicSplineCurve. |
|
KBCubicSplineCurve(KBKeyFrame[] keys)
This method takes a list of key frames and creates spline segments from it. |
|
| Method Summary | |
|---|---|
private void |
computeTotalCurveLength()
|
KBCubicSplineSegment |
getSegment(int index)
This method returns the KBCubicSplineSegments pointed to by index |
float |
getTotalCurveLength()
This method returns the total length of the entire KBCubicSplineCurve motion path. |
void |
setSegments(KBCubicSplineSegment[] s)
This method takes a list of spline segments to replace the existing set of KBCubicSplineSegments that comprise the current KBCubicSplineCurve 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 KBCubicSplineSegment[] cubicSplineSegment
public int numSegments
| Constructor Detail |
|---|
KBCubicSplineCurve()
KBCubicSplineCurve(KBKeyFrame[] keys)
the - list of key frames that specify the motion pathKBCubicSplineCurve(KBCubicSplineSegment[] s)
the - list of segments that comprise the complete motion path| Method Detail |
|---|
public void setSegments(KBCubicSplineSegment[] s)
s - the list of segments that comprise the complete motion pathpublic KBCubicSplineSegment getSegment(int index)
index - the index of the KBCubicSplineSegment required
private void computeTotalCurveLength()
public float getTotalCurveLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||