com.visioglobe.libVisioDevKit
Class VgQuaternionInterpolationFunctorDescriptor

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgReferenced
      extended by com.visioglobe.libVisioDevKit.VgFunctorDescriptor
          extended by com.visioglobe.libVisioDevKit.VgQuaternionInterpolationFunctorDescriptor

public class VgQuaternionInterpolationFunctorDescriptor
extends VgFunctorDescriptor

This class implements descriptors for orientation interpolation functors. It will simply interpolate between the start and end orientations using spheric linear interpolation. It is possible to set the functor to use a cubic function to have acceleration at start and deceleration at end.


Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
VgQuaternionInterpolationFunctorDescriptor(long cPtr, boolean cMemoryOwn)
          Class constructor.
 
Method Summary
static VgQuaternionInterpolationFunctorDescriptorRefPtr create()
          This static method returns a new heap-allocated descriptor.
 void delete()
           
static long getCPtr(VgQuaternionInterpolationFunctorDescriptor obj)
           
 boolean getMCubic()
          This boolean value tells whether a cubic function should be used to add acceleration and deceleration (true) or pure linear with constant velocity (false).
 VgOrientation getMEndOrientation()
          This is the target orientation
 int getMExtraSpins()
          Number of additional full cycles
 VgOrientation getMStartOrientation()
          This is the starting orientation.
 void setMCubic(boolean value)
          This boolean value tells whether a cubic function should be used to add acceleration and deceleration (true) or pure linear with constant velocity (false).
 void setMEndOrientation(VgOrientation value)
          This is the target orientation
 void setMExtraSpins(int value)
          Number of additional full cycles
 void setMStartOrientation(VgOrientation value)
          This is the starting orientation.
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgFunctorDescriptor
finalize, getCPtr, getMEndTime, getMStartTime, setMEndTime, setMStartTime
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced
getCPtr, getNbReferences, ref, unref
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VgQuaternionInterpolationFunctorDescriptor

public VgQuaternionInterpolationFunctorDescriptor(long cPtr,
                                                  boolean cMemoryOwn)
Class constructor. This can't be called publicly, instances must be obtained through the VgQuaternionInterpolationFunctorDescriptor::create method.

Method Detail

getCPtr

public static long getCPtr(VgQuaternionInterpolationFunctorDescriptor obj)

delete

public void delete()
Overrides:
delete in class VgFunctorDescriptor

create

public static VgQuaternionInterpolationFunctorDescriptorRefPtr create()
This static method returns a new heap-allocated descriptor. It is the only method that should be used to instantiate new descriptors. It is a way to make sure no one will delete it, except the last VgRefPtr pointing to it.


setMStartOrientation

public void setMStartOrientation(VgOrientation value)
This is the starting orientation.


getMStartOrientation

public VgOrientation getMStartOrientation()
This is the starting orientation.


setMEndOrientation

public void setMEndOrientation(VgOrientation value)
This is the target orientation


getMEndOrientation

public VgOrientation getMEndOrientation()
This is the target orientation


setMExtraSpins

public void setMExtraSpins(int value)
Number of additional full cycles


getMExtraSpins

public int getMExtraSpins()
Number of additional full cycles


setMCubic

public void setMCubic(boolean value)
This boolean value tells whether a cubic function should be used to add acceleration and deceleration (true) or pure linear with constant velocity (false).


getMCubic

public boolean getMCubic()
This boolean value tells whether a cubic function should be used to add acceleration and deceleration (true) or pure linear with constant velocity (false).


VisioDevKit 2.0, Visioglobe® 2013