Mercurial > hg > orthanc-stone
comparison Framework/StoneEnumerations.h @ 194:7a031ac16b2d wasm
rename Enumerations.h to StoneEnumerations.h to avoid clashes with Orthanc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Mar 2018 14:46:58 +0100 |
parents | Framework/Enumerations.h@f48c5d422d45 |
children | fccffbf99ba1 |
comparison
equal
deleted
inserted
replaced
193:4abddd083374 | 194:7a031ac16b2d |
---|---|
1 /** | |
2 * Stone of Orthanc | |
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 Affero General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
24 #include <string> | |
25 | |
26 namespace OrthancStone | |
27 { | |
28 enum SliceOffsetMode | |
29 { | |
30 SliceOffsetMode_Absolute, | |
31 SliceOffsetMode_Relative, | |
32 SliceOffsetMode_Loop | |
33 }; | |
34 | |
35 enum ImageWindowing | |
36 { | |
37 ImageWindowing_Default, | |
38 ImageWindowing_Bone, | |
39 ImageWindowing_Lung, | |
40 ImageWindowing_Custom | |
41 }; | |
42 | |
43 enum MouseButton | |
44 { | |
45 MouseButton_Left, | |
46 MouseButton_Right, | |
47 MouseButton_Middle | |
48 }; | |
49 | |
50 enum MouseWheelDirection | |
51 { | |
52 MouseWheelDirection_Up, | |
53 MouseWheelDirection_Down | |
54 }; | |
55 | |
56 enum VolumeProjection | |
57 { | |
58 VolumeProjection_Axial, | |
59 VolumeProjection_Coronal, | |
60 VolumeProjection_Sagittal | |
61 }; | |
62 | |
63 enum ImageInterpolation | |
64 { | |
65 ImageInterpolation_Nearest, | |
66 ImageInterpolation_Bilinear, | |
67 ImageInterpolation_Trilinear | |
68 }; | |
69 | |
70 enum KeyboardModifiers | |
71 { | |
72 KeyboardModifiers_None = 0, | |
73 KeyboardModifiers_Shift = (1 << 0), | |
74 KeyboardModifiers_Control = (1 << 1), | |
75 KeyboardModifiers_Alt = (1 << 2) | |
76 }; | |
77 | |
78 enum SliceImageQuality | |
79 { | |
80 SliceImageQuality_Full, | |
81 SliceImageQuality_Jpeg50, | |
82 SliceImageQuality_Jpeg90, | |
83 SliceImageQuality_Jpeg95 | |
84 }; | |
85 | |
86 enum SopClassUid | |
87 { | |
88 SopClassUid_RTDose | |
89 }; | |
90 | |
91 bool StringToSopClassUid(SopClassUid& result, | |
92 const std::string& source); | |
93 | |
94 void ComputeWindowing(float& targetCenter, | |
95 float& targetWidth, | |
96 ImageWindowing windowing, | |
97 float defaultCenter, | |
98 float defaultWidth); | |
99 } |