comparison Framework/StoneEnumerations.h @ 860:238693c3bc51 am-dev

merge default -> am-dev
author Alain Mazy <alain@mazy.be>
date Mon, 24 Jun 2019 14:35:00 +0200
parents be9c1530d40a
children 4092b6e71d45 922d2e61aa5d
comparison
equal deleted inserted replaced
856:a6e17a5a39e7 860:238693c3bc51
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include <string> 24 #include <string>
25
26
27 namespace Deprecated
28 {
29 enum SliceImageQuality
30 {
31 SliceImageQuality_FullPng, // smaller to transmit but longer to generate on Orthanc side (better choice when on low bandwidth)
32 SliceImageQuality_FullPam, // bigger to transmit but faster to generate on Orthanc side (better choice when on localhost or LAN)
33 SliceImageQuality_Jpeg50,
34 SliceImageQuality_Jpeg90,
35 SliceImageQuality_Jpeg95,
36
37 SliceImageQuality_InternalRaw // downloads the raw pixels data as they are stored in the DICOM file (internal use only)
38 };
39 }
40
25 41
26 namespace OrthancStone 42 namespace OrthancStone
27 { 43 {
28 enum SliceOffsetMode 44 enum SliceOffsetMode
29 { 45 {
83 KeyboardKeys_Up = 38, 99 KeyboardKeys_Up = 38,
84 KeyboardKeys_Right = 39, 100 KeyboardKeys_Right = 39,
85 KeyboardKeys_Down = 40 101 KeyboardKeys_Down = 40
86 }; 102 };
87 103
88 enum SliceImageQuality
89 {
90 SliceImageQuality_FullPng, // smaller to transmit but longer to generate on Orthanc side (better choice when on low bandwidth)
91 SliceImageQuality_FullPam, // bigger to transmit but faster to generate on Orthanc side (better choice when on localhost or LAN)
92 SliceImageQuality_Jpeg50,
93 SliceImageQuality_Jpeg90,
94 SliceImageQuality_Jpeg95,
95
96 SliceImageQuality_InternalRaw // downloads the raw pixels data as they are stored in the DICOM file (internal use only)
97 };
98
99 enum SopClassUid 104 enum SopClassUid
100 { 105 {
101 SopClassUid_Other, 106 SopClassUid_Other,
102 SopClassUid_RTDose 107 SopClassUid_RTDose
103 }; 108 };
113 BitmapAnchor_TopLeft, 118 BitmapAnchor_TopLeft,
114 BitmapAnchor_TopCenter, 119 BitmapAnchor_TopCenter,
115 BitmapAnchor_TopRight 120 BitmapAnchor_TopRight
116 }; 121 };
117 122
118 enum ControlPointType
119 {
120 ControlPoint_TopLeftCorner = 0,
121 ControlPoint_TopRightCorner = 1,
122 ControlPoint_BottomRightCorner = 2,
123 ControlPoint_BottomLeftCorner = 3
124 };
125
126 enum PhotometricDisplayMode
127 {
128 PhotometricDisplayMode_Default,
129
130 PhotometricDisplayMode_Monochrome1,
131 PhotometricDisplayMode_Monochrome2
132 };
133
134
135 SopClassUid StringToSopClassUid(const std::string& source); 123 SopClassUid StringToSopClassUid(const std::string& source);
136 124
137 void ComputeWindowing(float& targetCenter, 125 void ComputeWindowing(float& targetCenter,
138 float& targetWidth, 126 float& targetWidth,
139 ImageWindowing windowing, 127 ImageWindowing windowing,