32 if (!descriptionRegisters.empty())
34 if (descriptionRegisters.size() > 1)
36 MITK_WARN <<
"Multiple property description services found. Using just one.";
50 if (!persRegisters.empty())
52 if (persRegisters.size() > 1)
54 MITK_WARN <<
"Multiple property description services found. Using just one.";
76 if (tagPath.
Size() == 0)
78 MITK_DEBUG <<
"Indication for wrong DICOMTagsOfInterestService::AddTagOfInterest() usage. Empty DICOM tag path was passed.";
84 this->m_Tags.insert(tagPath);
93 if (persSrv && makePersistant)
99 std::string key = name;
101 info->SetNameAndKey(name, key);
108 info->UseRegEx(propRegEx, propTemplate, key, keyTemplate);
124 for (
auto tag : this->m_Tags)
126 result.insert(std::make_pair(tag,
""));
136 return this->m_Tags.find(tag) != this->m_Tags.cend();
144 this->m_Tags.erase(tag);
168 for (
const auto& tag : m_Tags)
183 this->m_Tags.clear();
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
MITKCORE_EXPORT::std::string serializeTemporoSpatialStringPropertyToJSON(const mitk::BaseProperty *prop)
virtual void RemoveInfo(const std::string &propertyName)=0
Remove persistence info instances of a specific property name/regex.
virtual void RemoveDescription(const std::string &propertyName, const std::string &className="")=0
Remove description of specific property.
MITKDICOMREADER_EXPORT std::string DICOMTagPathToPersistenceKeyRegEx(const DICOMTagPath &tagPath)
void * GetService(const ServiceReferenceBase &reference)
static void info(const char *fmt,...)
MITKDICOMREADER_EXPORT std::string DICOMTagPathToPersistenceNameTemplate(const DICOMTagPath &tagPath)
MITKDICOMREADER_EXPORT std::string DICOMTagPathToPropertyName(const DICOMTagPath &tagPath)
Interface of property descriptions service.
PathIndexType Size() const
MITKDICOMREADER_EXPORT std::string DICOMTagPathToPersistenceKeyTemplate(const DICOMTagPath &tagPath)
std::vector< ServiceReferenceU > GetServiceReferences(const std::string &clazz, const std::string &filter=std::string())
Interface of property persistence service.
MITKDICOMREADER_EXPORT std::string DICOMTagPathToPropertyRegEx(const DICOMTagPath &tagPath)
virtual bool AddDescriptionRegEx(const std::string &propertyRegEx, const std::string &description, const std::string &className="", bool overwrite=false)=0
Add a description for all properties matching the property regulary expression.
static const char * replace[]
This is a dictionary to replace long names of classes, modules, etc. to shorter versions in the conso...
virtual bool AddInfo(const PropertyPersistenceInfo *info, bool overwrite=false)=0
Add persistence info for a specific base data property. If there is already a property info instance ...
MITKCORE_EXPORT mitk::BaseProperty::Pointer deserializeJSONToTemporoSpatialStringProperty(const std::string &value)
std::string GetName() const
Return the name of this tag (e.g. "SeriesDescription" instead of "(0008,103e)")
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
std::map< DICOMTagPath, std::string > DICOMTagPathMapType