41 #ifndef vtkTransform2D_h
42 #define vtkTransform2D_h
44 #include "vtkCommonTransformsModule.h"
87 void Scale(
const double s[2]) { this->
Scale(s[0], s[1]); }
88 void Scale(
const float s[2]) { this->
Scale(s[0], s[1]); }
94 this->SetMatrix(matrix->
GetData()); }
114 this->GetPosition(temp);
115 pos[0] =
static_cast<float>(temp[0]);
116 pos[1] =
static_cast<float>(temp[1]); }
128 this->GetScale(temp);
129 pos[0] =
static_cast<float>(temp[0]);
130 pos[1] =
static_cast<float>(temp[1]); }
156 void TransformPoints(const
float *inPts,
float *outPts,
int n);
163 void TransformPoints(const
double *inPts,
double *outPts,
int n);
176 void InverseTransformPoints(const
float *inPts,
float *outPts,
int n);
183 void InverseTransformPoints(const
double *inPts,
double *outPts,
int n);
197 void MultiplyPoint(const
float in[3],
float out[3]) {
198 this->GetMatrix()->MultiplyPoint(in,out);};
200 this->GetMatrix()->MultiplyPoint(in,out);};
a simple class to control print indentation
represent and manipulate 3x3 transformation matrices
double * GetData()
Return a pointer to the first element of the matrix (double[9]).
abstract base class for most VTK objects
represent and manipulate 2D points
vtkTypeUInt64 vtkMTimeType