------------------------------------------------------------------------------
| 1232 | |
| 1233 | //------------------------------------------------------------------------------ |
| 1234 | void 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 |
no outgoing calls
no test coverage detected