40 #ifndef vtkTransform2D_h
41 #define vtkTransform2D_h
66 void Translate(
double x,
double y);
73 void Rotate(
double angle);
78 void Scale(
double x,
double y);
79 void Scale(
const double s[2]) { this->
Scale(s[0], s[1]); }
80 void Scale(
const float s[2]) { this->
Scale(s[0], s[1]); }
86 this->SetMatrix(matrix->
GetData()); }
87 void SetMatrix(
const double elements[9]);
100 void GetPosition(
double pos[2]);
103 this->GetPosition(temp);
104 pos[0] =
static_cast<float>(temp[0]);
105 pos[1] =
static_cast<float>(temp[1]); }
112 void GetScale(
double pos[2]);
115 this->GetScale(temp);
116 pos[0] =
static_cast<float>(temp[0]);
117 pos[1] =
static_cast<float>(temp[1]); }
135 void TransformPoints(
const float *inPts,
float *outPts,
int n);
140 void TransformPoints(
const double *inPts,
double *outPts,
int n);
149 void InverseTransformPoints(
const float *inPts,
float *outPts,
int n);
154 void InverseTransformPoints(
const double *inPts,
double *outPts,
int n);
165 this->GetMatrix()->MultiplyPoint(in,out);};
167 this->GetMatrix()->MultiplyPoint(in,out);};
abstract base class for most VTK objects
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetMTime()
a simple class to control print indentation
represent and manipulate 2D points
represent and manipulate 3x3 transformation matrices