32 #ifndef vtkAngularPeriodicDataArray_h
33 #define vtkAngularPeriodicDataArray_h
37 #define VTK_PERIODIC_ARRAY_AXIS_X 0
38 #define VTK_PERIODIC_ARRAY_AXIS_Y 1
39 #define VTK_PERIODIC_ARRAY_AXIS_Z 2
43 template <
class Scalar>
62 vtkGetMacro(Angle,
double);
70 vtkGetVector3Macro(Center,
double);
78 vtkGetMacro(Axis,
int);
103 double AngleInRadians;
110 #include "vtkAngularPeriodicDataArray.txx"
Map native an Array into an angulat periodic array.
void SetAxis(int axis)
Set/Get the rotation axis.
void InitializeArray(vtkAOSDataArrayTemplate< Scalar > *inputData)
Initialize the mapped array with the original input data array.
vtkAOSArrayNewInstanceMacro(vtkAngularPeriodicDataArray< Scalar >)
vtkAngularPeriodicDataArray()
vtkAbstractTemplateTypeMacro(vtkAngularPeriodicDataArray< Scalar >, vtkPeriodicDataArray< Scalar >)
void UpdateRotationMatrix()
Update rotation matrix from Axis, Angle and Center.
void SetAxisToX(void)
Set/Get the rotation axis.
void SetAxisToY(void)
Set/Get the rotation axis.
static vtkAngularPeriodicDataArray * New()
~vtkAngularPeriodicDataArray() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Transform(Scalar *tuple) const override
Transform the provided tuple.
void SetCenter(double *center)
Set/Get the rotation center.
void SetAxisToZ(void)
Set/Get the rotation axis.
void SetAngle(double angle)
Set/Get the rotation angle in degrees.
a simple class to control print indentation
represent and manipulate 3x3 transformation matrices
Map native an Array into an angulat periodic array.
#define VTK_PERIODIC_ARRAY_AXIS_X
#define VTK_PERIODIC_ARRAY_AXIS_Y
#define VTK_PERIODIC_ARRAY_AXIS_Z