MCPcopy Create free account
hub / github.com/MITK/MITK / SetAntiAliasing

Method SetAntiAliasing

Modules/Core/src/Controllers/mitkRenderingManager.cpp:759–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757 }
758
759 void RenderingManager::SetAntiAliasing(AntiAliasing antiAliasing)
760 {
761 if (m_AntiAliasing != antiAliasing)
762 {
763 auto renderingManager = RenderingManager::GetInstance();
764 auto renderWindows = renderingManager->GetAllRegisteredRenderWindows();
765
766 for (auto renderWindow : renderWindows)
767 {
768 auto renderers = renderWindow->GetRenderers();
769
770 if (nullptr != renderers)
771 {
772 renderers->InitTraversal();
773 auto renderer = renderers->GetNextItem();
774
775 while (nullptr != renderer)
776 {
777 renderer->SetUseFXAA(AntiAliasing::FastApproximate == antiAliasing);
778 renderer = renderers->GetNextItem();
779 }
780
781 renderingManager->RequestUpdate(renderWindow);
782 }
783 }
784
785 m_AntiAliasing = antiAliasing;
786 }
787 }
788
789 void RenderingManager::SetConstrainedPanningZooming(bool constrain)
790 {

Callers 1

InitializeMethod · 0.80

Calls 1

RequestUpdateMethod · 0.45

Tested by 1

InitializeMethod · 0.64