------------------------------------------------------------------------------ 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).
| 1034 | // no shear occurs is given by (dshear = center * FocalDistance). |
| 1035 | // |
| 1036 | void 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 | |
| 1052 | void vtkCamera::SetViewShear(double d[3]) |
no test coverage detected