64#ifndef vtkPerspectiveTransform_h
65#define vtkPerspectiveTransform_h
67#include "vtkCommonTransformsModule.h"
86 this->Concatenation->Identity();
97 this->Concatenation->Inverse();
109 void AdjustViewport(
double oldXMin,
double oldXMax,
double oldYMin,
double oldYMax,
110 double newXMin,
double newXMax,
double newYMin,
double newYMax);
119 void AdjustZBuffer(
double oldNearZ,
double oldFarZ,
double newNearZ,
double newFarZ);
126 void Ortho(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
134 void Frustum(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
142 void Perspective(
double angle,
double aspect,
double znear,
double zfar);
157 void Shear(
double dxdz,
double dydz,
double zplane);
169 void Stereo(
double angle,
double focaldistance);
176 void SetupCamera(
const double position[3],
const double focalpoint[3],
const double viewup[3]);
178 void SetupCamera(
double p0,
double p1,
double p2,
double fp0,
double fp1,
double fp2,
double vup0,
179 double vup1,
double vup2);
186 void Translate(
double x,
double y,
double z) { this->Concatenation->Translate(x, y, z); }
200 this->Concatenation->Rotate(angle, x, y, z);
204 this->RotateWXYZ(angle, axis[0], axis[1], axis[2]);
208 this->RotateWXYZ(angle, axis[0], axis[1], axis[2]);
218 void RotateX(
double angle) { this->RotateWXYZ(angle, 1, 0, 0); }
219 void RotateY(
double angle) { this->RotateWXYZ(angle, 0, 1, 0); }
220 void RotateZ(
double angle) { this->RotateWXYZ(angle, 0, 0, 1); }
229 void Scale(
double x,
double y,
double z) { this->Concatenation->Scale(x, y, z); }
230 void Scale(
const double s[3]) { this->
Scale(s[0], s[1], s[2]); }
231 void Scale(
const float s[3]) { this->
Scale(s[0], s[1], s[2]); }
243 this->Concatenate(elements);
253 void Concatenate(
const double elements[16]) { this->Concatenation->Concatenate(elements); }
274 if (this->Concatenation->GetPreMultiplyFlag())
278 this->Concatenation->SetPreMultiplyFlag(1);
291 if (!this->Concatenation->GetPreMultiplyFlag())
295 this->Concatenation->SetPreMultiplyFlag(0);
305 return this->Concatenation->GetNumberOfTransforms() + (this->Input ==
nullptr ? 0 : 1);
319 if (this->Input ==
nullptr)
321 t = this->Concatenation->GetTransform(i);
323 else if (i < this->Concatenation->GetNumberOfPreTransforms())
325 t = this->Concatenation->GetTransform(i);
327 else if (i > this->Concatenation->GetNumberOfPreTransforms())
329 t = this->Concatenation->GetTransform(i - 1);
331 else if (this->GetInverseFlag())
371 if (this->Stack ==
nullptr)
375 this->Stack->Push(&this->Concatenation);
387 if (this->Stack ==
nullptr)
391 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