diff --git a/Modules/Pharmacokinetics/include/mitkDICOMPMPropertyHelper.h b/Modules/Pharmacokinetics/include/mitkDICOMPMPropertyHelper.h index 4a80a07263..790b7a727b 100644 --- a/Modules/Pharmacokinetics/include/mitkDICOMPMPropertyHelper.h +++ b/Modules/Pharmacokinetics/include/mitkDICOMPMPropertyHelper.h @@ -1,34 +1,34 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef DICOMSEGMENTATIONPROPERTYHELPER_H_ #define DICOMSEGMENTATIONPROPERTYHELPER_H_ #include - +#include #include namespace mitk { class MITKPHARMACOKINETICS_EXPORT DICOMPMPropertyHelper { public: - static PropertyList::Pointer DeriveDICOMPMProperties(); + static void DeriveDICOMPMProperties(BaseData *derivedDICOMImage); }; } // namespace mitk #endif diff --git a/Modules/Pharmacokinetics/src/Common/mitkDICOMPMPropertyHelper.cpp b/Modules/Pharmacokinetics/src/Common/mitkDICOMPMPropertyHelper.cpp index 2b4e1ab23c..bf7e4a5290 100644 --- a/Modules/Pharmacokinetics/src/Common/mitkDICOMPMPropertyHelper.cpp +++ b/Modules/Pharmacokinetics/src/Common/mitkDICOMPMPropertyHelper.cpp @@ -1,71 +1,71 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include #include #include #include #include #include #include #include #include #include #include // us #include #include namespace mitk { - PropertyList::Pointer DICOMPMPropertyHelper::DeriveDICOMPMProperties() + void DICOMPMPropertyHelper::DeriveDICOMPMProperties(BaseData *derivedDICOMImage) { - PropertyList::Pointer propertyList = PropertyList::New(); + PropertyList::Pointer propertyList = derivedDICOMImage->GetPropertyList(); // Add DICOM Tag (0008, 0060) Modality "PM" propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0008, 0x0060).c_str(), TemporoSpatialStringProperty::New("PM")); // Add DICOM Tag (0008,103E) Series Description propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0008, 0x103E).c_str(), TemporoSpatialStringProperty::New("MITK Parameter Map")); // Add DICOM Tag (0070,0084) Content Creator Name propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0070, 0x0084).c_str(), TemporoSpatialStringProperty::New("MITK")); // Add DICOM Tag (0012, 0071) Clinical Trial Series ID propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0012, 0x0071).c_str(), TemporoSpatialStringProperty::New("Session 1")); // Add DICOM Tag (0012,0050) Clinical Trial Time Point ID propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0012, 0x0050).c_str(), TemporoSpatialStringProperty::New("0")); // Add DICOM Tag (0012, 0060) Clinical Trial Coordinating Center Name propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0012, 0x0060).c_str(), TemporoSpatialStringProperty::New("Unknown")); - return propertyList; + } } // namespace mitk