------------------------------------------------------------------------------ Return the projection transform matrix. See ComputeProjectionTransform.
| 1202 | //------------------------------------------------------------------------------ |
| 1203 | // Return the projection transform matrix. See ComputeProjectionTransform. |
| 1204 | vtkMatrix4x4* vtkCamera::GetCompositeProjectionTransformMatrix( |
| 1205 | double aspect, double nearz, double farz) |
| 1206 | { |
| 1207 | // turn off stereo, the CompositeProjectionTransformMatrix is used for |
| 1208 | // picking, not for rendering. |
| 1209 | int stereo = this->Stereo; |
| 1210 | this->Stereo = 0; |
| 1211 | |
| 1212 | vtkMatrix4x4* projectionMatrix = this->GetProjectionTransformMatrix(aspect, nearz, farz); |
| 1213 | vtkMatrix4x4* viewMatrix = this->GetViewTransformMatrix(); |
| 1214 | |
| 1215 | this->Transform->Identity(); |
| 1216 | this->Transform->Concatenate(projectionMatrix); |
| 1217 | this->Transform->Concatenate(viewMatrix); |
| 1218 | |
| 1219 | this->Stereo = stereo; |
| 1220 | |
| 1221 | // return the transform |
| 1222 | return this->Transform->GetMatrix(); |
| 1223 | } |
| 1224 | |
| 1225 | //------------------------------------------------------------------------------ |
| 1226 | // Return the attached light transform matrix. |
no test coverage detected