|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.SimpleSpline
public class SimpleSpline
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
SimpleSpline()
|
|
SimpleSpline(InstancePointer p)
This constructor is public for internal useage only! |
protected |
SimpleSpline(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
SimpleSpline(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
addPoint(IVector3 p)
Adds a control point to the end of the spline. |
void |
clear()
Clears all the points in the spline. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
int |
getNumPoints()
Gets the number of control points in the spline. |
IVector3 |
getPoint(int index)
Gets the detail of one of the control points of the spline. |
void |
interpolate(IVector3 returnValue,
float t)
Returns an interpolated point based on a parametric value over the whole series. |
void |
interpolate(IVector3 returnValue,
long fromIndex,
float t)
Interpolates a single segment of the spline given a parametric value. |
void |
recalcTangents()
Recalculates the tangents associated with this spline. |
void |
setAutoCalculate(boolean autoCalc)
Tells the spline whether it should automatically calculate tangents on demand as points are added. |
void |
updatePoint(int index,
IVector3 value)
Updates a single point in the spline. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public SimpleSpline(InstancePointer p)
protected SimpleSpline(InstancePointer p,
boolean remote)
public SimpleSpline(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public SimpleSpline()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void addPoint(IVector3 p)
addPoint in interface ISimpleSplinepublic IVector3 getPoint(int index)
getPoint in interface ISimpleSplinepublic int getNumPoints()
getNumPoints in interface ISimpleSplinepublic void clear()
clear in interface ISimpleSpline
public void updatePoint(int index,
IVector3 value)
updatePoint in interface ISimpleSpline
public void interpolate(IVector3 returnValue,
float t)
interpolate in interface ISimpleSpline
public void interpolate(IVector3 returnValue,
long fromIndex,
float t)
interpolate in interface ISimpleSplinepublic void setAutoCalculate(boolean autoCalc)
setAutoCalculate in interface ISimpleSplinepublic void recalcTangents()
recalcTangents in interface ISimpleSpline
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||