Medical Imaging Interaction Toolkit  2018.4.99-b585543d
Medical Imaging Interaction Toolkit
mitkDICOMPMPropertyHelper.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
14 #include <mitkDICOMTag.h>
16 #include <mitkPropertyList.h>
17 #include <mitkPropertyNameHelper.h>
19 
20 #include <MitkDICOMQIExports.h>
21 
22 
24 
25 // us
26 #include <usGetModuleContext.h>
27 #include <usModuleContext.h>
28 
29 namespace mitk
30 {
32  {
33  PropertyList::Pointer propertyList = derivedDICOMImage->GetPropertyList();
34 
35  // Add DICOM Tag (0008, 0060) Modality "PM"
36  propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0008, 0x0060).c_str(),
38 
39  // Add DICOM Tag (0008,103E) Series Description
40  propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0008, 0x103E).c_str(),
41  TemporoSpatialStringProperty::New("MITK Parameter Map"));
42  // Add DICOM Tag (0070,0084) Content Creator Name
43  propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0070, 0x0084).c_str(),
45 
46 
47 
48 
49  }
50 
51 
52 
53 } // namespace mitk
54 
55 
56 
static void DeriveDICOMPMProperties(BaseData *derivedDICOMImage)
Base of all data objects.
Definition: mitkBaseData.h:37
std::string MITKCORE_EXPORT GeneratePropertyNameForDICOMTag(unsigned int group, unsigned int element)
DataCollection - Class to facilitate loading/accessing structured data.
mitk::PropertyList::Pointer GetPropertyList() const
Get the data&#39;s property list.