comparison Framework/Layers/FrameRenderer.h @ 394:17d54c028805

rename ILayerRenderer::GetLayerSlice() to GetLayerPlane()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 10 Nov 2018 08:44:18 +0100
parents 814fa32e2fcc
children b70e9be013e4
comparison
equal deleted inserted replaced
393:e7a494bdd956 394:17d54c028805
28 namespace OrthancStone 28 namespace OrthancStone
29 { 29 {
30 class FrameRenderer : public ILayerRenderer 30 class FrameRenderer : public ILayerRenderer
31 { 31 {
32 private: 32 private:
33 CoordinateSystem3D frameSlice_; 33 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<CairoSurface> display_;
39 39
40 protected: 40 protected:
41 virtual CairoSurface* GenerateDisplay(const RenderStyle& style) = 0; 41 virtual CairoSurface* GenerateDisplay(const RenderStyle& style) = 0;
42 42
43 public: 43 public:
44 FrameRenderer(const CoordinateSystem3D& frameSlice, 44 FrameRenderer(const 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(CairoContext& context,
50 const ViewportGeometry& view); 50 const ViewportGeometry& view);
51 51
52 virtual const CoordinateSystem3D& GetLayerSlice() 52 virtual const CoordinateSystem3D& GetLayerPlane()
53 { 53 {
54 return frameSlice_; 54 return framePlane_;
55 } 55 }
56 56
57 virtual void SetLayerStyle(const RenderStyle& style); 57 virtual void SetLayerStyle(const RenderStyle& style);
58 58
59 virtual bool IsFullQuality() 59 virtual bool IsFullQuality()
61 return isFullQuality_; 61 return isFullQuality_;
62 } 62 }
63 63
64 // TODO: Avoid cloning the "frame" 64 // TODO: Avoid cloning the "frame"
65 static ILayerRenderer* CreateRenderer(const Orthanc::ImageAccessor& frame, 65 static ILayerRenderer* CreateRenderer(const Orthanc::ImageAccessor& frame,
66 const Slice& frameSlice, 66 const Slice& framePlane,
67 bool isFullQuality); 67 bool isFullQuality);
68 }; 68 };
69 } 69 }