28 bool parentIsDICOM =
false;
30 for (
const auto &element : *(sourcePropertyList->GetMap()))
32 if (element.first.find(
"DICOM") == 0)
47 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0010, 0x0010),
"NO NAME");
49 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0010, 0x0020),
"NO NAME");
51 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0010, 0x0030));
53 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0010, 0x0040),
"U");
57 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0020, 0x000D));
59 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0080, 0x0020));
61 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0008, 0x0050));
63 AdoptReferenceDICOMProperty(sourcePropertyList, propertyList,
DICOMTag(0x0008, 0x1030));
69 if (dcmFilesProp.IsNotNull())
70 propertyList->SetProperty(
"referenceFiles", dcmFilesProp);
73 void DICOMQIPropertyHelper::AdoptReferenceDICOMProperty(
PropertyList *referencedPropertyList,
76 const std::string &defaultString)
84 if (originalProperty.IsNotNull())
85 propertyList->
SetProperty(tagString.c_str(), originalProperty);
88 if (!defaultString.empty())
unsigned int GetElement() const
Base of all data objects.
Representation of a DICOM tag.
std::string MITKCORE_EXPORT GeneratePropertyNameForDICOMTag(unsigned int group, unsigned int element)
DataCollection - Class to facilitate loading/accessing structured data.
Key-value list holding instances of BaseProperty.
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
static void DeriveDICOMSourceProperties(const BaseData *sourceDICOMImage, BaseData *derivedDICOMImage)
mitk::PropertyList::Pointer GetPropertyList() const
Get the data's property list.
mitk::BaseProperty * GetProperty(const std::string &propertyKey) const
Get a property by its name.
unsigned int GetGroup() const