Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyLayer.h Wed May 08 16:32:57 2019 +0200 +++ b/Framework/Radiography/RadiographyLayer.h Wed May 08 16:38:25 2019 +0200 @@ -75,8 +75,8 @@ unsigned int cropY_; unsigned int cropWidth_; unsigned int cropHeight_; - bool verticalFlip_; - bool horizontalFlip_; + bool flipVertical_; + bool flipHorizontal_; double panX_; double panY_; double angle_; @@ -168,34 +168,34 @@ return pixelSpacingY_; } - void SetVerticalFlip(bool flip) // mirrors image around an horizontal axis (note: flip is applied before the rotation !) + void SetFlipVertical(bool flip) // mirrors image around an horizontal axis (note: flip is applied before the rotation !) { - verticalFlip_ = flip; + flipVertical_ = flip; } - void SetHorizontalFlip(bool flip) // mirrors image around a vertical axis (note: flip is applied before the rotation !) + void SetFlipHorizontal(bool flip) // mirrors image around a vertical axis (note: flip is applied before the rotation !) { - horizontalFlip_ = flip; + flipHorizontal_ = flip; } - bool GetVerticalFlip() const + bool GetFlipVertical() const { - return verticalFlip_; + return flipVertical_; } - bool GetHorizontalFlip() const + bool GetHorizontalVertical() const { - return horizontalFlip_; + return flipHorizontal_; } double GetScalingX() const { - return (horizontalFlip_ ? - pixelSpacingX_: pixelSpacingX_); + return (flipHorizontal_ ? - pixelSpacingX_: pixelSpacingX_); } double GetScalingY() const { - return (verticalFlip_ ? - pixelSpacingY_: pixelSpacingY_); + return (flipVertical_ ? - pixelSpacingY_: pixelSpacingY_); } }; @@ -282,9 +282,9 @@ void SetPan(double x, double y); - void SetVerticalFlip(bool flip); // mirrors image around an horizontal axis (note: flip is applied before the rotation !) + void SetFlipVertical(bool flip); // mirrors image around an horizontal axis (note: flip is applied before the rotation !) - void SetHorizontalFlip(bool flip); // mirrors image around a vertical axis (note: flip is applied before the rotation !) + void SetFlipHorizontal(bool flip); // mirrors image around a vertical axis (note: flip is applied before the rotation !) void SetResizeable(bool resizeable) {