Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
Medical Imaging Interaction Toolkit
mitkDICOMTag.h
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 
13 #ifndef mitkTag_h
14 #define mitkTag_h
15 
16 #include "mitkPoint.h"
17 #include "mitkVector.h"
18 
19 #include "MitkDICOMReaderExports.h"
20 
21 namespace mitk
22 {
23 
33 {
34  public:
35 
36  DICOMTag(unsigned int group, unsigned int element);
37  DICOMTag(const DICOMTag& other);
38  DICOMTag& operator=(const DICOMTag& other);
39  bool operator==(const DICOMTag& other) const;
40  bool operator<(const DICOMTag& other) const;
41 
42  unsigned int GetGroup() const;
43  unsigned int GetElement() const;
44 
46  std::string GetName() const;
47 
49  void Print(std::ostream& os) const;
50 
51  private:
52 
53  std::string toHexString(unsigned int i) const;
54 
55  unsigned int m_Group;
56  unsigned int m_Element;
57 };
58 
59 typedef std::vector<DICOMTag> DICOMTagList;
60 
69 void DICOMStringToOrientationVectors(const std::string& s, Vector3D& right, Vector3D& up, bool& successful);
70 
71 bool DICOMStringToSpacing(const std::string& s, ScalarType& spacingX, ScalarType& spacingY);
72 
73 
82 Point3D DICOMStringToPoint3D(const std::string& s, bool& successful);
83 
84 }
85 
86 #endif
double ScalarType
bool DICOMStringToSpacing(const std::string &s, ScalarType &spacingX, ScalarType &spacingY)
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:59
void DICOMStringToOrientationVectors(const std::string &s, Vector3D &right, Vector3D &up, bool &successful)
Convert DICOM string describing a point two Vector3D.
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two var lists and returns true if the first list&#39;s first item is lower than the second one&#39;s...
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:32
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
static std::string GetName(std::string fileName, std::string suffix)
Point3D DICOMStringToPoint3D(const std::string &s, bool &successful)
Convert DICOM string describing a point to Point3D.