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

Method PrepareBottomLeftLayout

Modules/Annotation/src/mitkLayoutAnnotationRenderer.cpp:267–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 }
266
267 void LayoutAnnotationRenderer::PrepareBottomLeftLayout(int * /*displaySize*/)
268 {
269 double posX, posY;
270 Point2D margin;
271 posX = 0;
272 posY = 0;
273 mitk::Annotation::Bounds bounds;
274 AnnotationRankedMap &AnnotationMap = m_AnnotationContainerMap[BottomLeft];
275 for (auto it = AnnotationMap.cbegin(); it != AnnotationMap.cend(); ++it)
276 {
277 Annotation *Annotation = it->second;
278 margin = GetMargin2D(Annotation);
279 bounds = Annotation->GetBoundsOnDisplay(this->GetCurrentBaseRenderer());
280
281 bounds.Position[0] = posX + margin[0];
282 bounds.Position[1] = posY + margin[1];
283 Annotation->SetBoundsOnDisplay(this->GetCurrentBaseRenderer(), bounds);
284 posY += bounds.Size[1] + margin[1];
285 }
286 }
287 void LayoutAnnotationRenderer::PrepareBottomLayout(int *displaySize)
288 {
289 double posX, posY;

Callers

nothing calls this directly

Calls 3

GetBoundsOnDisplayMethod · 0.45
SetBoundsOnDisplayMethod · 0.45

Tested by

no test coverage detected