Medical Imaging Interaction Toolkit  2021.10.00
Medical Imaging Interaction Toolkit
mitk::DICOMTagsOfInterestAddHelper Class Reference

#include <mitkDICOMTagsOfInterestAddHelper.h>

Public Types

using TagsOfInterestVector = std::vector< mitk::DICOMTagPath >

Public Member Functions

 ~DICOMTagsOfInterestAddHelper ()
void Activate (us::ModuleContext *context, TagsOfInterestVector tags)
void Deactivate ()

Detailed Description

Helper class that can be used to ensure that a given list of DICOM tags will be registered at existing DICOMTagsOfInterest services. If the services are available the tags will be directly added. As long as the helper is active, it will add the given tags to all new DICOMTagsOfInterest services as soon as they are registered. This helper class is e.g. used in module activators where the DICOMTagsOfInterest service might not be registered when a module is loaded but the module wants to ensure that the tags are added as soon as possible. The helper must be deactivated before the module context used on activation gets invalid (e.g. in the Unload function of the module activator that uses the helper to ensure that the tags will be added).

Definition at line 49 of file mitkDICOMTagsOfInterestAddHelper.h.

Member Typedef Documentation

◆ TagsOfInterestVector

Constructor & Destructor Documentation

◆ ~DICOMTagsOfInterestAddHelper()

mitk::DICOMTagsOfInterestAddHelper::~DICOMTagsOfInterestAddHelper ( )

Member Function Documentation

◆ Activate()

void mitk::DICOMTagsOfInterestAddHelper::Activate ( us::ModuleContext *  context,
TagsOfInterestVector  tags 

◆ Deactivate()

void mitk::DICOMTagsOfInterestAddHelper::Deactivate ( )

The documentation for this class was generated from the following file: