36 #ifndef __vtkTransform2D_h
37 #define __vtkTransform2D_h
61 void Translate(
double x,
double y);
68 void Rotate(
double angle);
73 void Scale(
double x,
double y);
74 void Scale(
const double s[2]) { this->
Scale(s[0], s[1]); }
75 void Scale(
const float s[2]) { this->
Scale(s[0], s[1]); }
81 this->SetMatrix(matrix->
GetData()); }
82 void SetMatrix(
const double elements[9]);
95 void GetPosition(
double pos[2]);
98 this->GetPosition(temp);
99 pos[0] =
static_cast<float>(temp[0]);
100 pos[1] =
static_cast<float>(temp[1]); }
118 void TransformPoints(
const float *inPts,
float *outPts,
int n);
123 void TransformPoints(
const double *inPts,
double *outPts,
int n);
132 void InverseTransformPoints(
const float *inPts,
float *outPts,
int n);
137 void InverseTransformPoints(
const double *inPts,
double *outPts,
int n);
148 this->GetMatrix()->MultiplyPoint(in,out);};
150 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