36#ifndef vtkPerspectiveTransform_h
37#define vtkPerspectiveTransform_h
39#include "vtkCommonTransformsModule.h"
44VTK_ABI_NAMESPACE_BEGIN
59 this->Concatenation->Identity();
70 this->Concatenation->Inverse();
82 void AdjustViewport(
double oldXMin,
double oldXMax,
double oldYMin,
double oldYMax,
83 double newXMin,
double newXMax,
double newYMin,
double newYMax);
92 void AdjustZBuffer(
double oldNearZ,
double oldFarZ,
double newNearZ,
double newFarZ);
99 void Ortho(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
107 void Frustum(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
115 void Perspective(
double angle,
double aspect,
double znear,
double zfar);
130 void Shear(
double dxdz,
double dydz,
double zplane);
142 void Stereo(
double angle,
double focaldistance);
149 void SetupCamera(
const double position[3],
const double focalpoint[3],
const double viewup[3]);
151 void SetupCamera(
double p0,
double p1,
double p2,
double fp0,
double fp1,
double fp2,
double vup0,
152 double vup1,
double vup2);
159 void Translate(
double x,
double y,
double z) { this->Concatenation->Translate(x, y, z); }
173 this->Concatenation->Rotate(angle, x, y, z);
177 this->RotateWXYZ(angle, axis[0], axis[1], axis[2]);
181 this->RotateWXYZ(angle, axis[0], axis[1], axis[2]);
191 void RotateX(
double angle) { this->RotateWXYZ(angle, 1, 0, 0); }
192 void RotateY(
double angle) { this->RotateWXYZ(angle, 0, 1, 0); }
193 void RotateZ(
double angle) { this->RotateWXYZ(angle, 0, 0, 1); }
202 void Scale(
double x,
double y,
double z) { this->Concatenation->Scale(x, y, z); }
203 void Scale(
const double s[3]) { this->
Scale(s[0], s[1], s[2]); }
204 void Scale(
const float s[3]) { this->
Scale(s[0], s[1], s[2]); }
216 this->Concatenate(elements);
226 void Concatenate(
const double elements[16]) { this->Concatenation->Concatenate(elements); }
247 if (this->Concatenation->GetPreMultiplyFlag())
251 this->Concatenation->SetPreMultiplyFlag(1);
264 if (!this->Concatenation->GetPreMultiplyFlag())
268 this->Concatenation->SetPreMultiplyFlag(0);
278 return this->Concatenation->GetNumberOfTransforms() + (this->Input ==
nullptr ? 0 : 1);
292 if (this->Input ==
nullptr)
294 t = this->Concatenation->GetTransform(i);
296 else if (i < this->Concatenation->GetNumberOfPreTransforms())
298 t = this->Concatenation->GetTransform(i);
300 else if (i > this->Concatenation->GetNumberOfPreTransforms())
302 t = this->Concatenation->GetTransform(i - 1);
304 else if (this->GetInverseFlag())
344 if (this->Stack ==
nullptr)
348 this->Stack->Push(&this->Concatenation);
360 if (this->Stack ==
nullptr)
364 this->Stack->Pop(&this->Concatenation);
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