Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkTag_h
18 #define mitkTag_h
19 
20 #include "mitkPoint.h"
21 #include "mitkVector.h"
22 #include "mitkPoint.h"
23 
24 #include "MitkDICOMReaderExports.h"
25 
26 namespace mitk
27 {
28 
38 {
39  public:
40 
41  DICOMTag(unsigned int group, unsigned int element);
42  DICOMTag(const DICOMTag& other);
43  DICOMTag& operator=(const DICOMTag& other);
44  bool operator==(const DICOMTag& other) const;
45  bool operator<(const DICOMTag& other) const;
46 
47  unsigned int GetGroup() const;
48  unsigned int GetElement() const;
49 
51  std::string GetName() const;
52 
54  void Print(std::ostream& os) const;
55 
56  private:
57 
58  std::string toHexString(unsigned int i) const;
59 
60  unsigned int m_Group;
61  unsigned int m_Element;
62 };
63 
64 typedef std::vector<DICOMTag> DICOMTagList;
65 
74 void DICOMStringToOrientationVectors(const std::string& s, Vector3D& right, Vector3D& up, bool& successful);
75 
76 bool DICOMStringToSpacing(const std::string& s, ScalarType& spacingX, ScalarType& spacingY);
77 
78 
87 Point3D DICOMStringToPoint3D(const std::string& s, bool& successful);
88 
89 }
90 
91 #endif
double ScalarType
bool DICOMStringToSpacing(const std::string &s, ScalarType &spacingX, ScalarType &spacingY)
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:64
void DICOMStringToOrientationVectors(const std::string &s, Vector3D &right, Vector3D &up, bool &successful)
Convert DICOM string describing a point two Vector3D.
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:37
#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.