Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayer.h @ 629:8d66efecd91c am-dev
rename
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 08 May 2019 16:38:25 +0200 |
parents | fd9b9d993fc7 |
children | 0c5398c3b994 |
comparison
equal
deleted
inserted
replaced
628:84af39146e76 | 629:8d66efecd91c |
---|---|
73 bool hasCrop_; | 73 bool hasCrop_; |
74 unsigned int cropX_; | 74 unsigned int cropX_; |
75 unsigned int cropY_; | 75 unsigned int cropY_; |
76 unsigned int cropWidth_; | 76 unsigned int cropWidth_; |
77 unsigned int cropHeight_; | 77 unsigned int cropHeight_; |
78 bool verticalFlip_; | 78 bool flipVertical_; |
79 bool horizontalFlip_; | 79 bool flipHorizontal_; |
80 double panX_; | 80 double panX_; |
81 double panY_; | 81 double panY_; |
82 double angle_; | 82 double angle_; |
83 bool resizeable_; | 83 bool resizeable_; |
84 double pixelSpacingX_; | 84 double pixelSpacingX_; |
166 double GetPixelSpacingY() const | 166 double GetPixelSpacingY() const |
167 { | 167 { |
168 return pixelSpacingY_; | 168 return pixelSpacingY_; |
169 } | 169 } |
170 | 170 |
171 void SetVerticalFlip(bool flip) // mirrors image around an horizontal axis (note: flip is applied before the rotation !) | 171 void SetFlipVertical(bool flip) // mirrors image around an horizontal axis (note: flip is applied before the rotation !) |
172 { | 172 { |
173 verticalFlip_ = flip; | 173 flipVertical_ = flip; |
174 } | 174 } |
175 | 175 |
176 void SetHorizontalFlip(bool flip) // mirrors image around a vertical axis (note: flip is applied before the rotation !) | 176 void SetFlipHorizontal(bool flip) // mirrors image around a vertical axis (note: flip is applied before the rotation !) |
177 { | 177 { |
178 horizontalFlip_ = flip; | 178 flipHorizontal_ = flip; |
179 } | 179 } |
180 | 180 |
181 bool GetVerticalFlip() const | 181 bool GetFlipVertical() const |
182 { | 182 { |
183 return verticalFlip_; | 183 return flipVertical_; |
184 } | 184 } |
185 | 185 |
186 bool GetHorizontalFlip() const | 186 bool GetHorizontalVertical() const |
187 { | 187 { |
188 return horizontalFlip_; | 188 return flipHorizontal_; |
189 } | 189 } |
190 | 190 |
191 double GetScalingX() const | 191 double GetScalingX() const |
192 { | 192 { |
193 return (horizontalFlip_ ? - pixelSpacingX_: pixelSpacingX_); | 193 return (flipHorizontal_ ? - pixelSpacingX_: pixelSpacingX_); |
194 } | 194 } |
195 | 195 |
196 double GetScalingY() const | 196 double GetScalingY() const |
197 { | 197 { |
198 return (verticalFlip_ ? - pixelSpacingY_: pixelSpacingY_); | 198 return (flipVertical_ ? - pixelSpacingY_: pixelSpacingY_); |
199 } | 199 } |
200 }; | 200 }; |
201 | 201 |
202 private: | 202 private: |
203 size_t index_; | 203 size_t index_; |
280 void SetAngle(double angle); | 280 void SetAngle(double angle); |
281 | 281 |
282 void SetPan(double x, | 282 void SetPan(double x, |
283 double y); | 283 double y); |
284 | 284 |
285 void SetVerticalFlip(bool flip); // mirrors image around an horizontal axis (note: flip is applied before the rotation !) | 285 void SetFlipVertical(bool flip); // mirrors image around an horizontal axis (note: flip is applied before the rotation !) |
286 | 286 |
287 void SetHorizontalFlip(bool flip); // mirrors image around a vertical axis (note: flip is applied before the rotation !) | 287 void SetFlipHorizontal(bool flip); // mirrors image around a vertical axis (note: flip is applied before the rotation !) |
288 | 288 |
289 void SetResizeable(bool resizeable) | 289 void SetResizeable(bool resizeable) |
290 { | 290 { |
291 geometry_.SetResizeable(resizeable); | 291 geometry_.SetResizeable(resizeable); |
292 } | 292 } |