comparison Framework/Toolbox/ViewportGeometry.h @ 726:4f2416d519b4

moving layers, widgets and loaders to Deprecated namespace
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 May 2019 11:43:25 +0200
parents 3b4df9925db6
children
comparison
equal deleted inserted replaced
714:d2c0e347ddc2 726:4f2416d519b4
24 #include "../Viewport/CairoContext.h" 24 #include "../Viewport/CairoContext.h"
25 #include "Extent2D.h" 25 #include "Extent2D.h"
26 #include "LinearAlgebra.h" 26 #include "LinearAlgebra.h"
27 #include "../Viewport/IMouseTracker.h" // to include "Touch" definition 27 #include "../Viewport/IMouseTracker.h" // to include "Touch" definition
28 28
29 namespace OrthancStone 29 namespace Deprecated
30 { 30 {
31 class ViewportGeometry 31 class ViewportGeometry
32 { 32 {
33 private: 33 private:
34 // Extent of the scene (in world units) 34 // Extent of the scene (in world units)
35 Extent2D sceneExtent_; 35 OrthancStone::Extent2D sceneExtent_;
36 36
37 // Size of the display (in pixels) 37 // Size of the display (in pixels)
38 unsigned int width_; 38 unsigned int width_;
39 unsigned int height_; 39 unsigned int height_;
40 40
51 ViewportGeometry(); 51 ViewportGeometry();
52 52
53 void SetDisplaySize(unsigned int width, 53 void SetDisplaySize(unsigned int width,
54 unsigned int height); 54 unsigned int height);
55 55
56 void SetSceneExtent(const Extent2D& extent); 56 void SetSceneExtent(const OrthancStone::Extent2D& extent);
57 57
58 const Extent2D& GetSceneExtent() const 58 const OrthancStone::Extent2D& GetSceneExtent() const
59 { 59 {
60 return sceneExtent_; 60 return sceneExtent_;
61 } 61 }
62 62
63 void MapDisplayToScene(double& sceneX /* out */, 63 void MapDisplayToScene(double& sceneX /* out */,
93 return zoom_; 93 return zoom_;
94 } 94 }
95 95
96 void FitContent(); 96 void FitContent();
97 97
98 void ApplyTransform(CairoContext& context) const; 98 void ApplyTransform(OrthancStone::CairoContext& context) const;
99 99
100 void GetPan(double& x, 100 void GetPan(double& x,
101 double& y) const; 101 double& y) const;
102 102
103 void SetPan(double x, 103 void SetPan(double x,
104 double y); 104 double y);
105 105
106 void SetZoom(double zoom); 106 void SetZoom(double zoom);
107 107
108 Matrix GetMatrix() const; 108 OrthancStone::Matrix GetMatrix() const;
109 }; 109 };
110 } 110 }