Mercurial > hg > orthanc-stone
comparison Framework/Layers/FrameRenderer.h @ 728:8190213e2279 am-dev
Merged default into am-dev
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 21 May 2019 13:25:58 +0200 |
parents | 4f2416d519b4 |
children |
comparison
equal
deleted
inserted
replaced
690:f185cfcb72a0 | 728:8190213e2279 |
---|---|
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); |
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& framePlane, | 66 const Deprecated::Slice& framePlane, |
67 bool isFullQuality); | 67 bool isFullQuality); |
68 }; | 68 }; |
69 } | 69 } |