21 const std::string ManualPlacementAnnotationRenderer::ANNOTATIONRENDERER_ID =
"ManualPlacementAnnotationRenderer";
23 ManualPlacementAnnotationRenderer::ManualPlacementAnnotationRenderer(
const std::string &rendererId)
24 : AbstractAnnotationRenderer(rendererId, ManualPlacementAnnotationRenderer::ANNOTATIONRENDERER_ID)
33 if (registeredService)
45 GetAnnotationRenderer(rendererID);
54 AddAnnotation(Annotation, renderer->
GetName());
The ManualPlacementAnnotationRenderer is used for the simple placement of mitk::Annotation Objects...
virtual void RegisterAsMicroservice(us::ServiceProperties props)
Registers this object as a Microservice, making it available to every module and/or plugin...
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
static void RegisterAnnotationRenderer(AbstractAnnotationRenderer *annotationRenderer)
RegisterAnnotationRenderer registers an AnnotationRenderer as a microservice and saves a reference to...
static AbstractAnnotationRenderer * GetAnnotationRenderer(const std::string &arTypeID, const std::string &rendererID)
GetAnnotationRenderer returns a registered AnnotationRenderer of a specific type and for a BaseRender...
static ManualPlacementAnnotationRenderer * GetAnnotationRenderer(const std::string &rendererID)
Baseclass of Annotation layouters An AbstractAnnotationRenderer can be implemented to control a set o...
static void AddAnnotation(Annotation *Annotation, const std::string &rendererID)
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
Base class for all Annotation This class is to be implemented in order to create Annotation which are...
static const std::string US_PROPKEY_RENDERER_ID
~ManualPlacementAnnotationRenderer() override
virtual destructor in order to derive from this class
static const std::string US_PROPKEY_AR_ID
const char * GetName() const
get the name of the Renderer