MCPcopy Create free account
hub / github.com/Kitware/VTK / SetViewShear

Method SetViewShear

Rendering/Core/vtkCamera.cxx:1036–1049  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Set the shear transform of the viewing frustum. Parameters are dx/dz, dy/dz, and center. center is a factor that describes where to shear around. The distance dshear from the camera where no shear occurs is given by (dshear = center * FocalDistance).

Source from the content-addressed store, hash-verified

1034// no shear occurs is given by (dshear = center * FocalDistance).
1035//
1036void vtkCamera::SetViewShear(double dxdz, double dydz, double center)
1037{
1038 if (dxdz != this->ViewShear[0] || dydz != this->ViewShear[1] || center != this->ViewShear[2])
1039 {
1040 this->Modified();
1041 this->ViewingRaysModified();
1042
1043 this->ViewShear[0] = dxdz;
1044 this->ViewShear[1] = dydz;
1045 this->ViewShear[2] = center;
1046
1047 this->ComputeViewPlaneNormal();
1048 }
1049}
1050//------------------------------------------------------------------------------
1051
1052void vtkCamera::SetViewShear(double d[3])

Callers 1

SetObliqueAnglesMethod · 0.95

Calls 3

ViewingRaysModifiedMethod · 0.95
ModifiedMethod · 0.45

Tested by

no test coverage detected