Mercurial > hg > orthanc-stone
comparison Framework/Layers/LineLayerRenderer.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 | b70e9be013e4 |
children |
comparison
equal
deleted
inserted
replaced
714:d2c0e347ddc2 | 726:4f2416d519b4 |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "ILayerRenderer.h" | 24 #include "ILayerRenderer.h" |
25 | 25 |
26 namespace OrthancStone | 26 namespace Deprecated |
27 { | 27 { |
28 class LineLayerRenderer : public ILayerRenderer | 28 class LineLayerRenderer : public ILayerRenderer |
29 { | 29 { |
30 private: | 30 private: |
31 double x1_; | 31 double x1_; |
32 double y1_; | 32 double y1_; |
33 double x2_; | 33 double x2_; |
34 double y2_; | 34 double y2_; |
35 CoordinateSystem3D plane_; | 35 OrthancStone::CoordinateSystem3D plane_; |
36 bool visible_; | 36 bool visible_; |
37 uint8_t color_[3]; | 37 uint8_t color_[3]; |
38 | 38 |
39 public: | 39 public: |
40 LineLayerRenderer(double x1, | 40 LineLayerRenderer(double x1, |
41 double y1, | 41 double y1, |
42 double x2, | 42 double x2, |
43 double y2, | 43 double y2, |
44 const CoordinateSystem3D& plane); | 44 const OrthancStone::CoordinateSystem3D& plane); |
45 | 45 |
46 virtual bool RenderLayer(CairoContext& context, | 46 virtual bool RenderLayer(OrthancStone::CairoContext& context, |
47 const ViewportGeometry& view); | 47 const ViewportGeometry& view); |
48 | 48 |
49 virtual void SetLayerStyle(const RenderStyle& style); | 49 virtual void SetLayerStyle(const RenderStyle& style); |
50 | 50 |
51 virtual const CoordinateSystem3D& GetLayerPlane() | 51 virtual const OrthancStone::CoordinateSystem3D& GetLayerPlane() |
52 { | 52 { |
53 return plane_; | 53 return plane_; |
54 } | 54 } |
55 | 55 |
56 virtual bool IsFullQuality() | 56 virtual bool IsFullQuality() |