org.ogre4j
Interface ISimpleSpline

All Superinterfaces:
INativeObject
All Known Implementing Classes:
SimpleSpline

public interface ISimpleSpline
extends INativeObject


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.
 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 interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

addPoint

void addPoint(IVector3 p)
Adds a control point to the end of the spline.


getPoint

IVector3 getPoint(int index)
Gets the detail of one of the control points of the spline.


getNumPoints

int getNumPoints()
Gets the number of control points in the spline.


clear

void clear()
Clears all the points in the spline.


updatePoint

void updatePoint(int index,
                 IVector3 value)
Updates a single point in the spline.


interpolate

void interpolate(IVector3 returnValue,
                 float t)
Returns an interpolated point based on a parametric value over the whole series.


interpolate

void interpolate(IVector3 returnValue,
                 long fromIndex,
                 float t)
Interpolates a single segment of the spline given a parametric value.


setAutoCalculate

void setAutoCalculate(boolean autoCalc)
Tells the spline whether it should automatically calculate tangents on demand as points are added.


recalcTangents

void recalcTangents()
Recalculates the tangents associated with this spline.



Copyright © 2007 netAllied GmbH. All Rights Reserved.