29 #ifndef vtkTransform2D_h
30 #define vtkTransform2D_h
32 #include "vtkCommonTransformsModule.h"
37 VTK_ABI_NAMESPACE_BEGIN
61 void Translate(
double x,
double y);
69 void Rotate(
double angle);
75 void Scale(
double x,
double y);
76 void Scale(
const double s[2]) { this->
Scale(s[0], s[1]); }
77 void Scale(
const float s[2]) { this->
Scale(s[0], s[1]); }
83 void SetMatrix(
const double elements[9]);
99 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]);
115 void GetScale(
double scale[2]);
119 this->GetScale(temp);
120 pos[0] =
static_cast<float>(temp[0]);
121 pos[1] =
static_cast<float>(temp[1]);
148 void TransformPoints(
const float* inPts,
float* outPts,
int n);
155 void TransformPoints(
const double* inPts,
double* outPts,
int n);
168 void InverseTransformPoints(
const float* inPts,
float* outPts,
int n);
175 void InverseTransformPoints(
const double* inPts,
double* outPts,
int n);
189 void MultiplyPoint(
const float in[3],
float out[3]) { this->GetMatrix()->MultiplyPoint(in, out); }
192 this->GetMatrix()->MultiplyPoint(in, out);
210 VTK_ABI_NAMESPACE_END
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt32 vtkMTimeType
a simple class to control print indentation
represent and manipulate 2D points
virtual vtkMTimeType GetMTime()
Return this object's modified time.
double * GetData()
Return a pointer to the first element of the matrix (double[9]).
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