Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DebugDrawing2D.h @ 2161:e65fe2e50fde dicom-sr tip
integration mainline->dicom-sr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Sep 2024 22:34:17 +0200 |
parents | 340bde744884 |
children |
comparison
equal
deleted
inserted
replaced
2152:f68f9a8d0d63 | 2161:e65fe2e50fde |
---|---|
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-2023 Osimis S.A., Belgium | |
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
7 * | |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU Lesser General Public License | |
10 * as published by the Free Software Foundation, either version 3 of | |
11 * the License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * Lesser General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU Lesser General Public | |
19 * License along with this program. If not, see | |
20 * <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #include "Extent2D.h" | |
27 | |
28 #include <boost/noncopyable.hpp> | |
29 #include <list> | |
30 #include <string> | |
31 | |
32 | |
33 namespace OrthancStone | |
34 { | |
35 class DebugDrawing2D : public boost::noncopyable | |
36 { | |
37 private: | |
38 class Segment; | |
39 | |
40 Extent2D extent_; | |
41 std::list<Segment> segments_; | |
42 | |
43 public: | |
44 void AddSegment(double x1, | |
45 double y1, | |
46 double x2, | |
47 double y2, | |
48 const std::string& color, | |
49 bool arrow, | |
50 bool addToExtent); | |
51 | |
52 void SaveSvg(const std::string& path); | |
53 }; | |
54 } |