comparison Resources/Orthanc/Plugins/Samples/Common/DicomTag.h @ 200:03afbee0cc7b

integration of Orthanc core into Stone
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Mar 2018 11:04:03 +0100
parents
children
comparison
equal deleted inserted replaced
199:dabe9982fca3 200:03afbee0cc7b
1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2018 Osimis S.A., Belgium
6 *
7 * This program is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
11 *
12 * In addition, as a special exception, the copyright holders of this
13 * program give permission to link the code of its release with the
14 * OpenSSL project's "OpenSSL" library (or with modified versions of it
15 * that use the same license as the "OpenSSL" library), and distribute
16 * the linked executables. You must obey the GNU General Public License
17 * in all respects for all of the code used other than "OpenSSL". If you
18 * modify file(s) with this exception, you may extend this exception to
19 * your version of the file(s), but you are not obligated to do so. If
20 * you do not wish to do so, delete this exception statement from your
21 * version. If you delete this exception statement from all source files
22 * in the program, then also delete it here.
23 *
24 * This program is distributed in the hope that it will be useful, but
25 * WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * General Public License for more details.
28 *
29 * You should have received a copy of the GNU General Public License
30 * along with this program. If not, see <http://www.gnu.org/licenses/>.
31 **/
32
33
34 #pragma once
35
36 #include <stdint.h>
37
38 namespace OrthancPlugins
39 {
40 class DicomTag
41 {
42 private:
43 uint16_t group_;
44 uint16_t element_;
45
46 DicomTag(); // Forbidden
47
48 public:
49 DicomTag(uint16_t group,
50 uint16_t element) :
51 group_(group),
52 element_(element)
53 {
54 }
55
56 uint16_t GetGroup() const
57 {
58 return group_;
59 }
60
61 uint16_t GetElement() const
62 {
63 return element_;
64 }
65
66 const char* GetName() const;
67
68 bool operator== (const DicomTag& other) const
69 {
70 return group_ == other.group_ && element_ == other.element_;
71 }
72
73 bool operator!= (const DicomTag& other) const
74 {
75 return !(*this == other);
76 }
77 };
78
79
80 static const DicomTag DICOM_TAG_BITS_STORED(0x0028, 0x0101);
81 static const DicomTag DICOM_TAG_COLUMNS(0x0028, 0x0011);
82 static const DicomTag DICOM_TAG_COLUMN_POSITION_IN_TOTAL_IMAGE_PIXEL_MATRIX(0x0048, 0x021e);
83 static const DicomTag DICOM_TAG_IMAGE_ORIENTATION_PATIENT(0x0020, 0x0037);
84 static const DicomTag DICOM_TAG_IMAGE_POSITION_PATIENT(0x0020, 0x0032);
85 static const DicomTag DICOM_TAG_MODALITY(0x0008, 0x0060);
86 static const DicomTag DICOM_TAG_NUMBER_OF_FRAMES(0x0028, 0x0008);
87 static const DicomTag DICOM_TAG_PER_FRAME_FUNCTIONAL_GROUPS_SEQUENCE(0x5200, 0x9230);
88 static const DicomTag DICOM_TAG_PHOTOMETRIC_INTERPRETATION(0x0028, 0x0004);
89 static const DicomTag DICOM_TAG_PIXEL_REPRESENTATION(0x0028, 0x0103);
90 static const DicomTag DICOM_TAG_PIXEL_SPACING(0x0028, 0x0030);
91 static const DicomTag DICOM_TAG_PLANE_POSITION_SLIDE_SEQUENCE(0x0048, 0x021a);
92 static const DicomTag DICOM_TAG_RESCALE_INTERCEPT(0x0028, 0x1052);
93 static const DicomTag DICOM_TAG_RESCALE_SLOPE(0x0028, 0x1053);
94 static const DicomTag DICOM_TAG_ROWS(0x0028, 0x0010);
95 static const DicomTag DICOM_TAG_ROW_POSITION_IN_TOTAL_IMAGE_PIXEL_MATRIX(0x0048, 0x021f);
96 static const DicomTag DICOM_TAG_SAMPLES_PER_PIXEL(0x0028, 0x0002);
97 static const DicomTag DICOM_TAG_SERIES_INSTANCE_UID(0x0020, 0x000e);
98 static const DicomTag DICOM_TAG_SLICE_THICKNESS(0x0018, 0x0050);
99 static const DicomTag DICOM_TAG_SOP_CLASS_UID(0x0008, 0x0016);
100 static const DicomTag DICOM_TAG_SOP_INSTANCE_UID(0x0008, 0x0018);
101 static const DicomTag DICOM_TAG_TOTAL_PIXEL_MATRIX_COLUMNS(0x0048, 0x0006);
102 static const DicomTag DICOM_TAG_TOTAL_PIXEL_MATRIX_ROWS(0x0048, 0x0007);
103 static const DicomTag DICOM_TAG_TRANSFER_SYNTAX_UID(0x0002, 0x0010);
104 static const DicomTag DICOM_TAG_WINDOW_CENTER(0x0028, 0x1050);
105 static const DicomTag DICOM_TAG_WINDOW_WIDTH(0x0028, 0x1051);
106 }