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

Method ComputeModelViewMatrix

Rendering/Core/vtkCamera.cxx:544–558  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

542
543//------------------------------------------------------------------------------
544void vtkCamera::ComputeModelViewMatrix()
545{
546 if (this->ModelViewTransform->GetMTime() < this->ModelTransformMatrix->GetMTime() ||
547 this->ModelViewTransform->GetMTime() < this->ViewTransform->GetMTime() ||
548 (this->UseOffAxisProjection &&
549 this->ModelViewTransform->GetMTime() < this->EyeTransformMatrix->GetMTime()))
550 {
551 if (this->UseOffAxisProjection)
552 {
553 this->ComputeViewTransform();
554 }
555 vtkMatrix4x4::Multiply4x4(this->ViewTransform->GetMatrix(), this->ModelTransformMatrix,
556 this->ModelViewTransform->GetMatrix());
557 }
558}
559
560//------------------------------------------------------------------------------
561void vtkCamera::OrthogonalizeViewUp()

Callers 2

Calls 3

ComputeViewTransformMethod · 0.95
GetMTimeMethod · 0.45
GetMatrixMethod · 0.45

Tested by

no test coverage detected