Provides static utility functions for accessing registered AnnotationRenderers and Annotations.
More...
#include <mitkAnnotationUtils.h>
Provides static utility functions for accessing registered AnnotationRenderers and Annotations.
Definition at line 33 of file mitkAnnotationUtils.h.
◆ AnnotationRendererServices
◆ AnnotationUtils()
| mitk::AnnotationUtils::AnnotationUtils |
( |
| ) |
|
◆ ~AnnotationUtils()
| mitk::AnnotationUtils::~AnnotationUtils |
( |
| ) |
|
◆ BaseRendererChanged()
| static void mitk::AnnotationUtils::BaseRendererChanged |
( |
BaseRenderer * |
renderer | ) |
|
|
static |
Notify that the actual BaseRenderer object for a BaseRenderer ID has changed.
This must be called when a RenderWindow is closed and reopened, so that AnnotationRenderers can update their reference.
- Parameters
-
◆ GetAnnotation()
| static mitk::Annotation* mitk::AnnotationUtils::GetAnnotation |
( |
const std::string & |
AnnotationID | ) |
|
|
static |
Get a registered Annotation by its unique ID.
- Parameters
-
| [in] | AnnotationID | The unique identifier of the Annotation. |
- Returns
- The matching Annotation, or nullptr if not found.
◆ GetAnnotationRenderer() [1/2]
| static AbstractAnnotationRenderer* mitk::AnnotationUtils::GetAnnotationRenderer |
( |
const std::string & |
arTypeID, |
|
|
const std::string & |
rendererID |
|
) |
| |
|
static |
Get a registered AnnotationRenderer of a specific type for a given BaseRenderer.
- Parameters
-
| [in] | arTypeID | Name specifier of the AnnotationRenderer type. |
| [in] | rendererID | Name specifier of the BaseRenderer. |
- Returns
- The matching AnnotationRenderer, or nullptr if not found.
◆ GetAnnotationRenderer() [2/2]
Get all registered AnnotationRenderers for a specified BaseRenderer.
- Parameters
-
- Returns
- A vector of matching AnnotationRenderer pointers.
◆ RegisterAnnotationRenderer()
Register an AnnotationRenderer as a microservice.
Saves a reference to it in a local static list.
- Parameters
-
| [in] | annotationRenderer | The AnnotationRenderer to register. |
◆ UpdateAnnotationRenderer()
| static void mitk::AnnotationUtils::UpdateAnnotationRenderer |
( |
const std::string & |
rendererID | ) |
|
|
static |
The documentation for this class was generated from the following file: