comparison OrthancStone/Sources/Scene2D/Scene2D.h @ 1989:e8b9a2ba1df1

Added left/right rotation buttons
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Oct 2022 20:59:59 +0100
parents 7053b8a0aaec
children 07964689cb0b
comparison
equal deleted inserted replaced
1988:3c84c34322d7 1989:e8b9a2ba1df1
58 AffineTransform2D canvasToScene_; 58 AffineTransform2D canvasToScene_;
59 uint64_t layerCounter_; 59 uint64_t layerCounter_;
60 60
61 Scene2D(const Scene2D& other); 61 Scene2D(const Scene2D& other);
62 62
63 void FitContent(const AffineTransform2D& forcedTransform,
64 unsigned int canvasWidth,
65 unsigned int canvasHeight);
66
63 public: 67 public:
64 Scene2D() : layerCounter_(0) 68 Scene2D() : layerCounter_(0)
65 { 69 {
66 } 70 }
67 71
116 120
117 void FitContent(unsigned int canvasWidth, 121 void FitContent(unsigned int canvasWidth,
118 unsigned int canvasHeight); 122 unsigned int canvasHeight);
119 123
120 void GetBoundingBox(Extent2D& target) const; 124 void GetBoundingBox(Extent2D& target) const;
125
126 void RotateViewport(double angle,
127 unsigned int canvasWidth,
128 unsigned int canvasHeight);
129
130 void FlipViewportX(unsigned int canvasWidth,
131 unsigned int canvasHeight);
132
133 void FlipViewportY(unsigned int canvasWidth,
134 unsigned int canvasHeight);
121 }; 135 };
122 } 136 }