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>
63 vtkGetMacro(Angle,
double);
71 vtkGetVector3Macro(Center,
double);
79 vtkGetMacro(Axis,
int);
92 void Transform(Scalar* tuple)
const override;
104 double AngleInRadians;
111 #include "vtkAngularPeriodicDataArray.txx" 113 #endif //vtkAngularPeriodicDataArray_h void Transform(Scalar *tuple) const override
Transform the provided tuple.
void UpdateRotationMatrix()
Update rotation matrix from Axis, Angle and Center.
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.
vtkAbstractTemplateTypeMacro(vtkAngularPeriodicDataArray< Scalar >, vtkPeriodicDataArray< Scalar >) vtkAOSArrayNewInstanceMacro(vtkAngularPeriodicDataArray< Scalar >) static vtkAngularPeriodicDataArray *New()
void SetAxisToX(void)
Set/Get the rotation axis.
Map native an Array into an angulat periodic array.
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
#define VTK_PERIODIC_ARRAY_AXIS_Y
void SetAxisToY(void)
Set/Get the rotation axis.
#define vtkAOSArrayNewInstanceMacro(thisClass)
void SetAxisToZ(void)
Set/Get the rotation axis.
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
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3x3 transformation matrices
vtkAngularPeriodicDataArray()