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

Method ComputeViewPlaneNormal

Rendering/Core/vtkCamera.cxx:1234–1253  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1232
1233//------------------------------------------------------------------------------
1234void vtkCamera::ComputeViewPlaneNormal()
1235{
1236 if (this->ViewShear[0] != 0.0 || this->ViewShear[1] != 0.0)
1237 {
1238 // set the VPN in camera coordinates
1239 this->ViewPlaneNormal[0] = this->ViewShear[0];
1240 this->ViewPlaneNormal[1] = this->ViewShear[1];
1241 this->ViewPlaneNormal[2] = 1.0;
1242 // transform the VPN to world coordinates using inverse of view transform
1243 this->ViewTransform->GetLinearInverse()->TransformNormal(
1244 this->ViewPlaneNormal, this->ViewPlaneNormal);
1245 }
1246 else
1247 {
1248 // VPN is -DOP
1249 this->ViewPlaneNormal[0] = -this->DirectionOfProjection[0];
1250 this->ViewPlaneNormal[1] = -this->DirectionOfProjection[1];
1251 this->ViewPlaneNormal[2] = -this->DirectionOfProjection[2];
1252 }
1253}
1254
1255//------------------------------------------------------------------------------
1256// Return the 6 planes (Ax + By + Cz + D = 0) that bound

Callers 13

ComputeDistanceMethod · 0.95
SetViewShearMethod · 0.95
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
OrientParentCameraMethod · 0.80
InterpolateCameraMethod · 0.80
RotateMethod · 0.80
SpinMethod · 0.80
MyRotateCameraMethod · 0.80
RotateMethod · 0.80
SpinMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected