comparison Framework/StoneEnumerations.h @ 366:a7de01c8fd29 am-2

new enum BitmapAnchor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 01 Nov 2018 11:55:45 +0100
parents 8716176ff7f0
children e7a494bdd956
comparison
equal deleted inserted replaced
365:ef31240a73f6 366:a7de01c8fd29
100 enum SopClassUid 100 enum SopClassUid
101 { 101 {
102 SopClassUid_RTDose 102 SopClassUid_RTDose
103 }; 103 };
104 104
105 enum BitmapAnchor
106 {
107 BitmapAnchor_BottomLeft,
108 BitmapAnchor_BottomCenter,
109 BitmapAnchor_BottomRight,
110 BitmapAnchor_CenterLeft,
111 BitmapAnchor_Center,
112 BitmapAnchor_CenterRight,
113 BitmapAnchor_TopLeft,
114 BitmapAnchor_TopCenter,
115 BitmapAnchor_TopRight
116 };
117
105 bool StringToSopClassUid(SopClassUid& result, 118 bool StringToSopClassUid(SopClassUid& result,
106 const std::string& source); 119 const std::string& source);
107 120
108 void ComputeWindowing(float& targetCenter, 121 void ComputeWindowing(float& targetCenter,
109 float& targetWidth, 122 float& targetWidth,
110 ImageWindowing windowing, 123 ImageWindowing windowing,
111 float defaultCenter, 124 float defaultCenter,
112 float defaultWidth); 125 float defaultWidth);
126
127 void ComputeAnchorTranslation(double& deltaX /* out */,
128 double& deltaY /* out */,
129 BitmapAnchor anchor,
130 unsigned int bitmapWidth,
131 unsigned int bitmapHeight);
113 } 132 }