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

Method GetCompositeProjectionTransformMatrix

Rendering/Core/vtkCamera.cxx:1204–1223  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Return the projection transform matrix. See ComputeProjectionTransform.

Source from the content-addressed store, hash-verified

1202//------------------------------------------------------------------------------
1203// Return the projection transform matrix. See ComputeProjectionTransform.
1204vtkMatrix4x4* 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.

Callers 14

GetFrustumPlanesMethod · 0.95
UpdateIdealShiftScaleMethod · 0.95
BuildLocatorMethod · 0.80
RenderGL2PSMethod · 0.80
SetViewInfoMethod · 0.80
operator()Method · 0.80
SetViewInfoMethod · 0.80
ViewToWorldMethod · 0.80
vtkRenderer.cxxFile · 0.80

Calls 5

IdentityMethod · 0.45
ConcatenateMethod · 0.45
GetMatrixMethod · 0.45

Tested by

no test coverage detected