comparison Framework/Layers/SliceOutlineRenderer.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
22 #pragma once 22 #pragma once
23 23
24 #include "ILayerRenderer.h" 24 #include "ILayerRenderer.h"
25 #include "../Toolbox/Slice.h" 25 #include "../Toolbox/Slice.h"
26 26
27 namespace OrthancStone 27 namespace Deprecated
28 { 28 {
29 class SliceOutlineRenderer : public ILayerRenderer 29 class SliceOutlineRenderer : public ILayerRenderer
30 { 30 {
31 private: 31 private:
32 CoordinateSystem3D geometry_; 32 OrthancStone::CoordinateSystem3D geometry_;
33 double pixelSpacingX_; 33 double pixelSpacingX_;
34 double pixelSpacingY_; 34 double pixelSpacingY_;
35 unsigned int width_; 35 unsigned int width_;
36 unsigned int height_; 36 unsigned int height_;
37 RenderStyle style_; 37 RenderStyle style_;
38 38
39 public: 39 public:
40 SliceOutlineRenderer(const Deprecated::Slice& slice) : 40 SliceOutlineRenderer(const Slice& slice) :
41 geometry_(slice.GetGeometry()), 41 geometry_(slice.GetGeometry()),
42 pixelSpacingX_(slice.GetPixelSpacingX()), 42 pixelSpacingX_(slice.GetPixelSpacingX()),
43 pixelSpacingY_(slice.GetPixelSpacingY()), 43 pixelSpacingY_(slice.GetPixelSpacingY()),
44 width_(slice.GetWidth()), 44 width_(slice.GetWidth()),
45 height_(slice.GetHeight()) 45 height_(slice.GetHeight())
46 { 46 {
47 } 47 }
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 void SetLayerStyle(const RenderStyle& style) 52 virtual void SetLayerStyle(const RenderStyle& style)
53 { 53 {
54 style_ = style; 54 style_ = style;
55 } 55 }
56 56
57 virtual const CoordinateSystem3D& GetLayerSlice() 57 virtual const OrthancStone::CoordinateSystem3D& GetLayerSlice()
58 { 58 {
59 return geometry_; 59 return geometry_;
60 } 60 }
61 61
62 virtual bool IsFullQuality() 62 virtual bool IsFullQuality()