com.visioglobe.libVisioDevKit
Class VgVectorInterpolationFunctorDescriptor

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

public class VgVectorInterpolationFunctorDescriptor
extends VgFunctorDescriptor

This class implements descriptors for vector interpolation functors. It will simply interpolate between the start and end vectors using 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
VgVectorInterpolationFunctorDescriptor(long cPtr, boolean cMemoryOwn)
          Class constructor.
 
Method Summary
static VgVectorInterpolationFunctorDescriptorRefPtr create()
          This static method returns a new heap-allocated descriptor.
 void delete()
           
static long getCPtr(VgVectorInterpolationFunctorDescriptor obj)
           
 boolean getMCubic()
          This boolean value tells whether we should use a cubic function to add acceleration and deceleration (true) or pure linear with constant velocity (false).
 VgPosition getMEndPosition()
          The target position.
 VgPosition getMStartPosition()
          The starting position.
 void setMCubic(boolean value)
          This boolean value tells whether we should use a cubic function to add acceleration and deceleration (true) or pure linear with constant velocity (false).
 void setMEndPosition(VgPosition value)
          The target position.
 void setMStartPosition(VgPosition value)
          The starting position.
 
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

VgVectorInterpolationFunctorDescriptor

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

Method Detail

getCPtr

public static long getCPtr(VgVectorInterpolationFunctorDescriptor obj)

delete

public void delete()
Overrides:
delete in class VgFunctorDescriptor

create

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


setMStartPosition

public void setMStartPosition(VgPosition value)
The starting position.


getMStartPosition

public VgPosition getMStartPosition()
The starting position.


setMEndPosition

public void setMEndPosition(VgPosition value)
The target position.


getMEndPosition

public VgPosition getMEndPosition()
The target position.


setMCubic

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


getMCubic

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


VisioDevKit 2.0, Visioglobe® 2013