org.ogre4j
Class RotationalSpline

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.RotationalSpline
All Implemented Interfaces:
IRotationalSpline, INativeObject

public class RotationalSpline
extends NativeObject
implements IRotationalSpline


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  RotationalSpline()
           
  RotationalSpline(InstancePointer p)
          This constructor is public for internal useage only!
protected RotationalSpline(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RotationalSpline(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addPoint(IQuaternion 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.
 IQuaternion getPoint(int index)
          Gets the detail of one of the control points of the spline.
 void interpolate(IQuaternion returnValue, float t, boolean useShortestPath)
          Returns an interpolated point based on a parametric value over the whole series.
 void interpolate(IQuaternion returnValue, long fromIndex, float t, boolean useShortestPath)
          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, IQuaternion 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

RotationalSpline

public RotationalSpline(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


RotationalSpline

protected RotationalSpline(InstancePointer p,
                           boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


RotationalSpline

public RotationalSpline(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

RotationalSpline

public RotationalSpline()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

addPoint

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

Specified by:
addPoint in interface IRotationalSpline

getPoint

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

Specified by:
getPoint in interface IRotationalSpline

getNumPoints

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

Specified by:
getNumPoints in interface IRotationalSpline

clear

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

Specified by:
clear in interface IRotationalSpline

updatePoint

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

Specified by:
updatePoint in interface IRotationalSpline

interpolate

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

Specified by:
interpolate in interface IRotationalSpline

interpolate

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

Specified by:
interpolate in interface IRotationalSpline

setAutoCalculate

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

Specified by:
setAutoCalculate in interface IRotationalSpline

recalcTangents

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

Specified by:
recalcTangents in interface IRotationalSpline


Copyright © 2007 netAllied GmbH. All Rights Reserved.