comparison Framework/Toolbox/ViewportGeometry.h @ 111:7665ccbf33db wasm

rename Extent as Extent2D
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Jun 2017 15:54:06 +0200
parents 53bd9277b025
children e2fe9352f240
comparison
equal deleted inserted replaced
110:53025eecbc95 111:7665ccbf33db
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "../Viewport/CairoContext.h" 24 #include "../Viewport/CairoContext.h"
25 #include "../Toolbox/Extent.h" 25 #include "../Toolbox/Extent2D.h"
26 26
27 namespace OrthancStone 27 namespace OrthancStone
28 { 28 {
29 class ViewportGeometry 29 class ViewportGeometry
30 { 30 {
31 private: 31 private:
32 // Extent of the scene (in world units) 32 // Extent of the scene (in world units)
33 Extent sceneExtent_; 33 Extent2D sceneExtent_;
34 34
35 // Size of the display (in pixels) 35 // Size of the display (in pixels)
36 unsigned int width_; 36 unsigned int width_;
37 unsigned int height_; 37 unsigned int height_;
38 38
49 ViewportGeometry(); 49 ViewportGeometry();
50 50
51 void SetDisplaySize(unsigned int width, 51 void SetDisplaySize(unsigned int width,
52 unsigned int height); 52 unsigned int height);
53 53
54 void SetSceneExtent(const Extent& extent); 54 void SetSceneExtent(const Extent2D& extent);
55 55
56 const Extent& GetSceneExtent() const 56 const Extent2D& GetSceneExtent() const
57 { 57 {
58 return sceneExtent_; 58 return sceneExtent_;
59 } 59 }
60 60
61 void MapDisplayToScene(double& sceneX /* out */, 61 void MapDisplayToScene(double& sceneX /* out */,