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

Method RenderWindowCallback

Modules/Core/src/Rendering/mitkAnnotationUtils.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 void AnnotationUtils::RenderWindowCallback(vtkObject *caller, unsigned long, void *, void *)
80 {
81 auto *renderWindow = dynamic_cast<vtkRenderWindow *>(caller);
82 if (!renderWindow)
83 return;
84 BaseRenderer *renderer = BaseRenderer::GetInstance(renderWindow);
85
86 if (nullptr != renderer)
87 {
88 for (AbstractAnnotationRenderer *annotationRenderer : GetAnnotationRenderer(renderer->GetName()))
89 annotationRenderer->OnRenderWindowModified();
90 }
91 }
92
93 Annotation *AnnotationUtils::GetAnnotation(const std::string &AnnotationID)
94 {

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.45

Tested by

no test coverage detected