Mercurial > hg > orthanc-stone
comparison Framework/Viewport/ViewportBase.h @ 1055:af456106576c
moving GetCanvasIdentifier from IViewport to WebAssemblyViewport
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 16:07:58 +0200 |
parents | 32b403a47b19 |
children | 6dd90b8d1589 |
comparison
equal
deleted
inserted
replaced
1054:3c9529edf5fd | 1055:af456106576c |
---|---|
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 class ViewportBase : public IViewport | 29 class ViewportBase : public IViewport |
30 { | 30 { |
31 private: | 31 private: |
32 std::string identifier_; | |
33 boost::shared_ptr<Scene2D> scene_; | 32 boost::shared_ptr<Scene2D> scene_; |
34 | 33 |
35 public: | 34 public: |
36 ViewportBase(const std::string& identifier); | 35 ViewportBase(); |
37 | 36 |
38 ViewportBase(const std::string& identifier, | 37 ViewportBase(boost::shared_ptr<Scene2D>& scene); |
39 boost::shared_ptr<Scene2D>& scene); | |
40 | 38 |
41 virtual Scene2D& GetScene() ORTHANC_OVERRIDE | 39 virtual Scene2D& GetScene() ORTHANC_OVERRIDE |
42 { | 40 { |
43 return *scene_; | 41 return *scene_; |
44 } | 42 } |
45 | 43 |
46 virtual const std::string& GetCanvasIdentifier() const ORTHANC_OVERRIDE | |
47 { | |
48 return identifier_; | |
49 } | |
50 | |
51 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) ORTHANC_OVERRIDE; | 44 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) ORTHANC_OVERRIDE; |
52 }; | 45 }; |
53 } | 46 } |