comparison Framework/Scene2D/OpenGLCompositor.h @ 848:80829436ce0c am-mainline

starting to re-implement radiography editor with latest framework
author Alain Mazy <alain@mazy.be>
date Thu, 13 Jun 2019 16:47:02 +0200
parents 7efa2543699d
children 6e79e8c9021c
comparison
equal deleted inserted replaced
842:2b245953b44b 848:80829436ce0c
27 #include "Internals/OpenGLLinesProgram.h" 27 #include "Internals/OpenGLLinesProgram.h"
28 #include "Internals/OpenGLTextProgram.h" 28 #include "Internals/OpenGLTextProgram.h"
29 29
30 namespace OrthancStone 30 namespace OrthancStone
31 { 31 {
32 class OpenGLCompositor : private Internals::CompositorHelper::IRendererFactory 32 class OpenGLCompositor :
33 public ICompositor,
34 private Internals::CompositorHelper::IRendererFactory
33 { 35 {
34 private: 36 private:
35 class Font; 37 class Font;
36 38
37 typedef std::map<size_t, Font*> Fonts; 39 typedef std::map<size_t, Font*> Fonts;
56 58
57 ~OpenGLCompositor(); 59 ~OpenGLCompositor();
58 60
59 void UpdateSize(); 61 void UpdateSize();
60 62
61 void Refresh(); 63 virtual void Refresh();
62 64
63 void SetFont(size_t index, 65 void SetFont(size_t index,
64 const GlyphBitmapAlphabet& dict); 66 const GlyphBitmapAlphabet& dict);
65 67
66 #if ORTHANC_ENABLE_LOCALE == 1 68 #if ORTHANC_ENABLE_LOCALE == 1
68 Orthanc::EmbeddedResources::FileResourceId resource, 70 Orthanc::EmbeddedResources::FileResourceId resource,
69 unsigned int fontSize, 71 unsigned int fontSize,
70 Orthanc::Encoding codepage); 72 Orthanc::Encoding codepage);
71 #endif 73 #endif
72 74
73 unsigned int GetCanvasWidth() const 75 virtual unsigned int GetWidth() const
74 { 76 {
75 return canvasWidth_; 77 return canvasWidth_;
76 } 78 }
77 79
78 unsigned int GetCanvasHeight() const 80 unsigned int GetHeight() const
79 { 81 {
80 return canvasHeight_; 82 return canvasHeight_;
81 } 83 }
82 84
83 ScenePoint2D GetPixelCenterCoordinates(int x, int y) const;
84 }; 85 };
85 } 86 }