45#ifndef vtkPerspectiveTransform_h
46#define vtkPerspectiveTransform_h
48#include "vtkCommonTransformsModule.h"
90 void AdjustViewport(
double oldXMin,
double oldXMax,
double oldYMin,
double oldYMax,
91 double newXMin,
double newXMax,
double newYMin,
double newYMax);
100 void AdjustZBuffer(
double oldNearZ,
double oldFarZ,
double newNearZ,
double newFarZ);
107 void Ortho(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
115 void Frustum(
double xmin,
double xmax,
double ymin,
double ymax,
double znear,
double zfar);
123 void Perspective(
double angle,
double aspect,
double znear,
double zfar);
138 void Shear(
double dxdz,
double dydz,
double zplane);
150 void Stereo(
double angle,
double focaldistance);
157 void SetupCamera(
const double position[3],
const double focalpoint[3],
const double viewup[3]);
159 void SetupCamera(
double p0,
double p1,
double p2,
double fp0,
double fp1,
double fp2,
double vup0,
160 double vup1,
double vup2);
185 this->
RotateWXYZ(angle, axis[0], axis[1], axis[2]);
189 this->
RotateWXYZ(angle, axis[0], axis[1], axis[2]);
211 void Scale(
const double s[3]) { this->
Scale(s[0], s[1], s[2]); }
212 void Scale(
const float s[3]) { this->
Scale(s[0], s[1], s[2]); }
286 return this->
Concatenation->GetNumberOfTransforms() + (this->
Input ==
nullptr ? 0 : 1);
300 if (this->
Input ==
nullptr)
304 else if (i < this->
Concatenation->GetNumberOfPreTransforms())
308 else if (i > this->
Concatenation->GetNumberOfPreTransforms())
314 t = this->
Input->GetInverse();
352 if (this->
Stack ==
nullptr)
368 if (this->
Stack ==
nullptr)
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