comparison Framework/Layers/FrameRenderer.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 d2c0e347ddc2
children
comparison
equal deleted inserted replaced
714:d2c0e347ddc2 726:4f2416d519b4
23 23
24 #include "ILayerRenderer.h" 24 #include "ILayerRenderer.h"
25 25
26 #include "../Toolbox/Slice.h" 26 #include "../Toolbox/Slice.h"
27 27
28 namespace OrthancStone 28 namespace Deprecated
29 { 29 {
30 class FrameRenderer : public ILayerRenderer 30 class FrameRenderer : public ILayerRenderer
31 { 31 {
32 private: 32 private:
33 CoordinateSystem3D framePlane_; 33 OrthancStone::CoordinateSystem3D framePlane_;
34 double pixelSpacingX_; 34 double pixelSpacingX_;
35 double pixelSpacingY_; 35 double pixelSpacingY_;
36 RenderStyle style_; 36 RenderStyle style_;
37 bool isFullQuality_; 37 bool isFullQuality_;
38 std::auto_ptr<CairoSurface> display_; 38 std::auto_ptr<OrthancStone::CairoSurface> display_;
39 39
40 protected: 40 protected:
41 virtual CairoSurface* GenerateDisplay(const RenderStyle& style) = 0; 41 virtual OrthancStone::CairoSurface* GenerateDisplay(const RenderStyle& style) = 0;
42 42
43 public: 43 public:
44 FrameRenderer(const CoordinateSystem3D& framePlane, 44 FrameRenderer(const OrthancStone::CoordinateSystem3D& framePlane,
45 double pixelSpacingX, 45 double pixelSpacingX,
46 double pixelSpacingY, 46 double pixelSpacingY,
47 bool isFullQuality); 47 bool isFullQuality);
48 48
49 virtual bool RenderLayer(CairoContext& context, 49 virtual bool RenderLayer(OrthancStone::CairoContext& context,
50 const ViewportGeometry& view); 50 const ViewportGeometry& view);
51 51
52 virtual const CoordinateSystem3D& GetLayerPlane() 52 virtual const OrthancStone::CoordinateSystem3D& GetLayerPlane()
53 { 53 {
54 return framePlane_; 54 return framePlane_;
55 } 55 }
56 56
57 virtual void SetLayerStyle(const RenderStyle& style); 57 virtual void SetLayerStyle(const RenderStyle& style);