|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   35 #ifndef vtkTransform2D_h 
   36 #define vtkTransform2D_h 
   38 #include "vtkCommonTransformsModule.h"  
   66   void Translate(
double x, 
double y);
 
   74   void Rotate(
double angle);
 
   80   void Scale(
double x, 
double y);
 
   81   void Scale(
const double s[2]) { this->
Scale(s[0], s[1]); }
 
   82   void Scale(
const float s[2]) { this->
Scale(s[0], s[1]); }
 
   88   void SetMatrix(
const double elements[9]);
 
  104   void GetPosition(
double pos[2]);
 
  108     this->GetPosition(temp);
 
  109     pos[0] = 
static_cast<float>(temp[0]);
 
  110     pos[1] = 
static_cast<float>(temp[1]);
 
  120   void GetScale(
double pos[2]);
 
  124     this->GetScale(temp);
 
  125     pos[0] = 
static_cast<float>(temp[0]);
 
  126     pos[1] = 
static_cast<float>(temp[1]);
 
  153   void TransformPoints(
const float* inPts, 
float* outPts, 
int n);
 
  160   void TransformPoints(
const double* inPts, 
double* outPts, 
int n);
 
  173   void InverseTransformPoints(
const float* inPts, 
float* outPts, 
int n);
 
  180   void InverseTransformPoints(
const double* inPts, 
double* outPts, 
int n);
 
  194   void MultiplyPoint(
const float in[3], 
float out[3]) { this->GetMatrix()->MultiplyPoint(in, out); }
 
  197     this->GetMatrix()->MultiplyPoint(in, out);
 
  
represent and manipulate 2D points
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
represent and manipulate 3x3 transformation matrices
double * GetData()
Return a pointer to the first element of the matrix (double[9]).
virtual vtkMTimeType GetMTime()
Return this object's modified time.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt32 vtkMTimeType