Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
DICOM tags of interest service. More...
#include <mitkDICOMTagsOfInterestService.h>
Public Member Functions | |
DICOMTagsOfInterestService () | |
~DICOMTagsOfInterestService () override | |
void | AddTagOfInterest (const DICOMTagPath &tag, bool makePersistant=true) override |
Add an tag to the TOI. If the tag was already added it will be overwritten with the passed values. More... | |
DICOMTagPathMapType | GetTagsOfInterest () const override |
bool | HasTag (const DICOMTagPath &tag) const override |
void | RemoveTag (const DICOMTagPath &tag) override |
Remove specific tag. If it not exists the function will do nothing. More... | |
void | RemoveAllTags () override |
Remove all tags. More... | |
![]() | |
virtual | ~IDICOMTagsOfInterest () |
DICOM tags of interest service.
This service allows you to manage the tags of interest (toi). All registred toi will be extracted when loading dicom data and stored as properties in the corresponding base data object. In addition the service can (if available) use IPropertyPersistance and IPropertyDescriptions to ensure that the tags of interests are also persisted and have a human readable descriptions.
Definition at line 35 of file mitkDICOMTagsOfInterestService.h.
mitk::DICOMTagsOfInterestService::DICOMTagsOfInterestService | ( | ) |
Definition at line 59 of file mitkDICOMTagsOfInterestService.cpp.
References ~DICOMTagsOfInterestService().
Referenced by GetPersistenceService().
|
override |
Definition at line 64 of file mitkDICOMTagsOfInterestService.cpp.
References AddTagOfInterest().
Referenced by DICOMTagsOfInterestService().
|
overridevirtual |
Add an tag to the TOI. If the tag was already added it will be overwritten with the passed values.
[in] | tag | Tag that should be added. |
[in] | makePersistant | Indicates if the tag should be made persistant if possible via the IPropertyPersistence service. |
Implements mitk::IDICOMTagsOfInterest.
Definition at line 70 of file mitkDICOMTagsOfInterestService.cpp.
References mitk::IPropertyDescriptions::AddDescriptionRegEx(), mitk::IPropertyPersistence::AddInfo(), mitk::PropertyPersistenceDeserialization::deserializeJSONToTemporoSpatialStringProperty(), mitk::DICOMTagPathToPersistenceKeyRegEx(), mitk::DICOMTagPathToPersistenceKeyTemplate(), mitk::DICOMTagPathToPersistenceNameTemplate(), mitk::DICOMTagPathToPropertyName(), mitk::DICOMTagPathToPropertyRegEx(), GetDescriptionsService(), mitk::DICOMTagPath::GetLastNode(), mitk::DICOMTag::GetName(), GetPersistenceService(), GetTagsOfInterest(), info(), mitk::DICOMTagPath::IsExplicit(), MITK_DEBUG, mitk::PropertyPersistenceInfo::New(), mbilog::replace, mitk::PropertyPersistenceSerialization::serializeTemporoSpatialStringPropertyToJSON(), mitk::DICOMTagPath::Size(), and mitk::DICOMTagPath::NodeInfo::tag.
Referenced by ~DICOMTagsOfInterestService().
|
overridevirtual |
Returns the map of all tags of interest. Key is the property name. Value is the DICOM tag.
Implements mitk::IDICOMTagsOfInterest.
Definition at line 115 of file mitkDICOMTagsOfInterestService.cpp.
References HasTag().
Referenced by AddTagOfInterest(), mitk::RTPlanReaderService::Read(), and mitk::RTStructureSetReaderService::Read().
|
overridevirtual |
Indicates if the given tag is already a tag of interest.
Implements mitk::IDICOMTagsOfInterest.
Definition at line 130 of file mitkDICOMTagsOfInterestService.cpp.
References RemoveTag().
Referenced by GetTagsOfInterest().
|
overridevirtual |
Remove all tags.
Implements mitk::IDICOMTagsOfInterest.
Definition at line 158 of file mitkDICOMTagsOfInterestService.cpp.
References mitk::DICOMTagPathToPropertyRegEx(), GetDescriptionsService(), GetPersistenceService(), mitk::IPropertyDescriptions::RemoveDescription(), and mitk::IPropertyPersistence::RemoveInfo().
Referenced by RemoveTag().
|
overridevirtual |
Remove specific tag. If it not exists the function will do nothing.
[in] | tag | Tag that should be removed. |
Implements mitk::IDICOMTagsOfInterest.
Definition at line 137 of file mitkDICOMTagsOfInterestService.cpp.
References mitk::DICOMTagPathToPropertyRegEx(), GetDescriptionsService(), GetPersistenceService(), RemoveAllTags(), mitk::IPropertyDescriptions::RemoveDescription(), and mitk::IPropertyPersistence::RemoveInfo().
Referenced by HasTag().