com.visioglobe.libVisioDevKit
Class VgDiscreteQuaternionFunctorDescriptor

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

public class VgDiscreteQuaternionFunctorDescriptor
extends VgFunctorDescriptor

This class describes a functor for orientations using discrete samples. The resulting functor will interpolate the orientations using spheric linear quaternion interpolation. The @link VgDiscreteQuaternionFunctorDescriptor::mInitialTimestamp mInitialTimestamp @endlink and @link VgDiscreteQuaternionFunctorDescriptor::mFinalTimestamp mFinalTimestamp @endlink members will be mapped with the animation's duration (meaning that initial timestamp correspond to animation start, and final timestamp will be mapped to animation end) The descriptor must contain at leats one orientation value.


Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
VgDiscreteQuaternionFunctorDescriptor(long cPtr, boolean cMemoryOwn)
          Class constructor.
 
Method Summary
static VgDiscreteQuaternionFunctorDescriptorRefPtr create()
          This static method returns a new heap-allocated descriptor.
 void delete()
           
static long getCPtr(VgDiscreteQuaternionFunctorDescriptor obj)
           
 double getMFinalTimestamp()
          The final timestamp of the animation in seconds
 double getMInitialTimestamp()
          The initial timestamp of the animation in seconds
 VgOrientationValuePairVector getMOrientationValues()
          The vector of orientations paired with the corresponding timestamp in seconds.
 void setMFinalTimestamp(double value)
          The final timestamp of the animation in seconds
 void setMInitialTimestamp(double value)
          The initial timestamp of the animation in seconds
 void setMOrientationValues(VgOrientationValuePairVector value)
          The vector of orientations paired with the corresponding timestamp in seconds.
 
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

VgDiscreteQuaternionFunctorDescriptor

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

Method Detail

getCPtr

public static long getCPtr(VgDiscreteQuaternionFunctorDescriptor obj)

delete

public void delete()
Overrides:
delete in class VgFunctorDescriptor

create

public static VgDiscreteQuaternionFunctorDescriptorRefPtr 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.


setMOrientationValues

public void setMOrientationValues(VgOrientationValuePairVector value)
The vector of orientations paired with the corresponding timestamp in seconds. The timestamps are not necessarily greater than


getMOrientationValues

public VgOrientationValuePairVector getMOrientationValues()
The vector of orientations paired with the corresponding timestamp in seconds. The timestamps are not necessarily greater than


setMInitialTimestamp

public void setMInitialTimestamp(double value)
The initial timestamp of the animation in seconds


getMInitialTimestamp

public double getMInitialTimestamp()
The initial timestamp of the animation in seconds


setMFinalTimestamp

public void setMFinalTimestamp(double value)
The final timestamp of the animation in seconds


getMFinalTimestamp

public double getMFinalTimestamp()
The final timestamp of the animation in seconds


VisioDevKit 2.0, Visioglobe® 2013