Mercurial > hg > orthanc-stone
comparison Framework/Layers/LineLayerRenderer.cpp @ 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 |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #include "LineLayerRenderer.h" | 22 #include "LineLayerRenderer.h" |
23 | 23 |
24 namespace OrthancStone | 24 namespace Deprecated |
25 { | 25 { |
26 LineLayerRenderer::LineLayerRenderer(double x1, | 26 LineLayerRenderer::LineLayerRenderer(double x1, |
27 double y1, | 27 double y1, |
28 double x2, | 28 double x2, |
29 double y2, | 29 double y2, |
30 const CoordinateSystem3D& plane) : | 30 const OrthancStone::CoordinateSystem3D& plane) : |
31 x1_(x1), | 31 x1_(x1), |
32 y1_(y1), | 32 y1_(y1), |
33 x2_(x2), | 33 x2_(x2), |
34 y2_(y2), | 34 y2_(y2), |
35 plane_(plane) | 35 plane_(plane) |
37 RenderStyle style; | 37 RenderStyle style; |
38 SetLayerStyle(style); | 38 SetLayerStyle(style); |
39 } | 39 } |
40 | 40 |
41 | 41 |
42 bool LineLayerRenderer::RenderLayer(CairoContext& context, | 42 bool LineLayerRenderer::RenderLayer(OrthancStone::CairoContext& context, |
43 const ViewportGeometry& view) | 43 const ViewportGeometry& view) |
44 { | 44 { |
45 if (visible_) | 45 if (visible_) |
46 { | 46 { |
47 context.SetSourceColor(color_); | 47 context.SetSourceColor(color_); |