45 #ifndef vtkPerspectiveTransform_h
46 #define vtkPerspectiveTransform_h
48 #include "vtkCommonTransformsModule.h"
53 VTK_ABI_NAMESPACE_BEGIN
68 this->Concatenation->Identity();
79 this->Concatenation->Inverse();
91 void AdjustViewport(
double oldXMin,
double oldXMax,
double oldYMin,
double oldYMax,
92 double newXMin,
double newXMax,
double newYMin,
double newYMax);
101 void AdjustZBuffer(
double oldNearZ,
double oldFarZ,
double newNearZ,
double newFarZ);
108 void Ortho(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
116 void Frustum(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
124 void Perspective(
double angle,
double aspect,
double znear,
double zfar);
139 void Shear(
double dxdz,
double dydz,
double zplane);
151 void Stereo(
double angle,
double focaldistance);
160 void SetupCamera(
double p0,
double p1,
double p2,
double fp0,
double fp1,
double fp2,
double vup0,
161 double vup1,
double vup2);
168 void Translate(
double x,
double y,
double z) { this->Concatenation->Translate(x, y, z); }
182 this->Concatenation->Rotate(angle, x, y, z);
186 this->RotateWXYZ(angle, axis[0], axis[1], axis[2]);
190 this->RotateWXYZ(angle, axis[0], axis[1], axis[2]);
200 void RotateX(
double angle) { this->RotateWXYZ(angle, 1, 0, 0); }
201 void RotateY(
double angle) { this->RotateWXYZ(angle, 0, 1, 0); }
202 void RotateZ(
double angle) { this->RotateWXYZ(angle, 0, 0, 1); }
211 void Scale(
double x,
double y,
double z) { this->Concatenation->Scale(x, y, z); }
212 void Scale(
const double s[3]) { this->
Scale(s[0], s[1], s[2]); }
213 void Scale(
const float s[3]) { this->
Scale(s[0], s[1], s[2]); }
225 this->Concatenate(elements);
235 void Concatenate(
const double elements[16]) { this->Concatenation->Concatenate(elements); }
256 if (this->Concatenation->GetPreMultiplyFlag())
260 this->Concatenation->SetPreMultiplyFlag(1);
273 if (!this->Concatenation->GetPreMultiplyFlag())
277 this->Concatenation->SetPreMultiplyFlag(0);
287 return this->Concatenation->GetNumberOfTransforms() + (this->Input ==
nullptr ? 0 : 1);
301 if (this->Input ==
nullptr)
303 t = this->Concatenation->GetTransform(i);
305 else if (i < this->Concatenation->GetNumberOfPreTransforms())
307 t = this->Concatenation->GetTransform(i);
309 else if (i > this->Concatenation->GetNumberOfPreTransforms())
311 t = this->Concatenation->GetTransform(i - 1);
313 else if (this->GetInverseFlag())
353 if (this->Stack ==
nullptr)
357 this->Stack->Push(&this->Concatenation);
369 if (this->Stack ==
nullptr)
373 this->Stack->Pop(&this->Concatenation);
415 VTK_ABI_NAMESPACE_END
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
double Element[4][4]
The internal data is public for historical reasons. Do not use!
virtual void Modified()
Update the modification time for this object.
vtkTypeUInt32 vtkMTimeType