36 #ifndef vtkTransform2D_h
37 #define vtkTransform2D_h
62 void Translate(
double x,
double y);
69 void Rotate(
double angle);
74 void Scale(
double x,
double y);
82 this->SetMatrix(matrix->
GetData()); }
83 void SetMatrix(
const double elements[9]);
96 void GetPosition(
double pos[2]);
99 this->GetPosition(temp);
100 pos[0] =
static_cast<float>(temp[0]);
101 pos[1] =
static_cast<float>(temp[1]); }
108 void GetScale(
double pos[2]);
111 this->GetScale(temp);
112 pos[0] =
static_cast<float>(temp[0]);
113 pos[1] =
static_cast<float>(temp[1]); }
131 void TransformPoints(
const float *inPts,
float *outPts,
int n);
136 void TransformPoints(
const double *inPts,
double *outPts,
int n);
145 void InverseTransformPoints(
const float *inPts,
float *outPts,
int n);
150 void InverseTransformPoints(
const double *inPts,
double *outPts,
int n);
161 this->GetMatrix()->MultiplyPoint(in,out);};
163 this->GetMatrix()->MultiplyPoint(in,out);};
abstract base class for most VTK objects
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
GLint GLint GLint GLint GLint x
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetMTime()
a simple class to control print indentation
represent and manipulate 2D points
#define vtkGetObjectMacro(name, type)
GLsizei GLboolean transpose
represent and manipulate 3x3 transformation matrices