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

Method AddAnnotation

Modules/Annotation/src/mitkLayoutAnnotationRenderer.cpp:124–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123 void LayoutAnnotationRenderer::OnRenderWindowModified() { PrepareLayout(); }
124 void LayoutAnnotationRenderer::AddAnnotation(Annotation *Annotation,
125 const std::string &rendererID,
126 Alignment alignment,
127 double marginX,
128 double marginY,
129 int priority)
130 {
131 GetAnnotationRenderer(rendererID);
132 us::ServiceProperties props;
133 props[Annotation::US_PROPKEY_AR_ID] = ANNOTATIONRENDERER_ID;
134 props[Annotation::US_PROPKEY_RENDERER_ID] = rendererID;
135 Annotation->RegisterAsMicroservice(props);
136 Point2D margin;
137 margin[0] = marginX;
138 margin[1] = marginY;
139 AddAlignmentProperty(Annotation, alignment, margin, priority);
140 }
141
142 void LayoutAnnotationRenderer::AddAnnotation(
143 Annotation *Annotation, BaseRenderer *renderer, Alignment alignment, double marginX, double marginY, int priority)

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.45

Tested by

no test coverage detected