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