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

Method GetHeight

Modules/Annotation/src/mitkLayoutAnnotationRenderer.cpp:330–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 double LayoutAnnotationRenderer::GetHeight(AnnotationRankedMap &annotations, BaseRenderer *renderer)
331 {
332 double height = 0;
333 for (auto it = annotations.cbegin(); it != annotations.cend(); ++it)
334 {
335 Annotation *annotation = it->second;
336 Annotation::Bounds bounds = annotation->GetBoundsOnDisplay(renderer);
337 height += bounds.Size[0];
338 height += GetMargin2D(annotation)[0];
339 }
340 return height;
341 }
342}

Callers

nothing calls this directly

Calls 1

GetBoundsOnDisplayMethod · 0.45

Tested by

no test coverage detected