Mercurial > hg > orthanc-stone
comparison Framework/Layers/SliceOutlineRenderer.h @ 99:efd9ef2b67f1 wasm
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 May 2017 21:08:31 +0200 |
parents | Framework/Layers/MissingLayerRenderer.h@90bf4116a23c |
children | 53025eecbc95 |
comparison
equal
deleted
inserted
replaced
98:a33abae66344 | 99:efd9ef2b67f1 |
---|---|
1 /** | |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5 * Copyright (C) 2017 Osimis, Belgium | |
6 * | |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU Affero General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
24 #include "ILayerRenderer.h" | |
25 #include "../Toolbox/Slice.h" | |
26 | |
27 namespace OrthancStone | |
28 { | |
29 class SliceOutlineRenderer : public ILayerRenderer | |
30 { | |
31 private: | |
32 Slice slice_; | |
33 RenderStyle style_; | |
34 | |
35 public: | |
36 SliceOutlineRenderer(const Slice& slice) : | |
37 slice_(slice) | |
38 { | |
39 } | |
40 | |
41 virtual bool RenderLayer(CairoContext& context, | |
42 const ViewportGeometry& view); | |
43 | |
44 virtual void SetLayerStyle(const RenderStyle& style) | |
45 { | |
46 style_ = style; | |
47 } | |
48 | |
49 virtual const SliceGeometry& GetLayerSlice() | |
50 { | |
51 return slice_.GetGeometry(); | |
52 } | |
53 | |
54 virtual bool IsFullQuality() | |
55 { | |
56 return true; | |
57 } | |
58 }; | |
59 } |