55 #ifndef vtkQuaternionInterpolator_h
56 #define vtkQuaternionInterpolator_h
58 #include "vtkCommonMathModule.h"
62 class vtkQuaternionList;
128 enum {INTERPOLATION_TYPE_LINEAR=0,
129 INTERPOLATION_TYPE_SPLINE
140 vtkSetClampMacro(InterpolationType,
int,INTERPOLATION_TYPE_LINEAR,
141 INTERPOLATION_TYPE_SPLINE);
142 vtkGetMacro(InterpolationType,
int);
144 {this->SetInterpolationType(INTERPOLATION_TYPE_LINEAR);}
146 {this->SetInterpolationType(INTERPOLATION_TYPE_SPLINE);}
154 int InterpolationType;
157 vtkQuaternionList *QuaternionList;
a simple class to control print indentation
abstract base class for most VTK objects
void InterpolateQuaternion(double t, vtkQuaterniond &q)
Interpolate the list of quaternions and determine a new quaternion (i.e., fill in the quaternion prov...
void AddQuaternion(double t, const vtkQuaterniond &q)
Add another quaternion to the list of quaternions to be interpolated.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInterpolationTypeToLinear()
void Initialize()
Reset the class so that it contains no data; i.e., the array of (t,q[4]) information is discarded.
void RemoveQuaternion(double t)
Delete the quaternion at a particular parameter t.
double GetMinimumT()
Obtain some information about the interpolation range.
vtkQuaternionInterpolator()
void AddQuaternion(double t, double q[4])
void SetInterpolationTypeToSpline()
static vtkQuaternionInterpolator * New()
Instantiate the class.
int GetNumberOfQuaternions()
Return the number of quaternions in the list of quaternions to be interpolated.
~vtkQuaternionInterpolator() override
void InterpolateQuaternion(double t, double q[4])