| 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; |
nothing calls this directly
no test coverage detected