Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Framework/Scene2D/OpenGLCompositor.h Wed Jun 12 09:52:25 2019 +0200 +++ b/Framework/Scene2D/OpenGLCompositor.h Thu Jun 13 16:47:02 2019 +0200 @@ -29,7 +29,9 @@ namespace OrthancStone { - class OpenGLCompositor : private Internals::CompositorHelper::IRendererFactory + class OpenGLCompositor : + public ICompositor, + private Internals::CompositorHelper::IRendererFactory { private: class Font; @@ -58,7 +60,7 @@ void UpdateSize(); - void Refresh(); + virtual void Refresh(); void SetFont(size_t index, const GlyphBitmapAlphabet& dict); @@ -70,16 +72,15 @@ Orthanc::Encoding codepage); #endif - unsigned int GetCanvasWidth() const + virtual unsigned int GetWidth() const { return canvasWidth_; } - unsigned int GetCanvasHeight() const + unsigned int GetHeight() const { return canvasHeight_; } - ScenePoint2D GetPixelCenterCoordinates(int x, int y) const; }; }