Mercurial > hg > orthanc-stone
comparison Framework/Layers/LineMeasureTracker.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 | 3b4df9925db6 |
children |
comparison
equal
deleted
inserted
replaced
714:d2c0e347ddc2 | 726:4f2416d519b4 |
---|---|
24 #include "../Widgets/IWorldSceneMouseTracker.h" | 24 #include "../Widgets/IWorldSceneMouseTracker.h" |
25 | 25 |
26 #include "../Viewport/IStatusBar.h" | 26 #include "../Viewport/IStatusBar.h" |
27 #include "../Toolbox/CoordinateSystem3D.h" | 27 #include "../Toolbox/CoordinateSystem3D.h" |
28 | 28 |
29 namespace OrthancStone | 29 namespace Deprecated |
30 { | 30 { |
31 class LineMeasureTracker : public IWorldSceneMouseTracker | 31 class LineMeasureTracker : public IWorldSceneMouseTracker |
32 { | 32 { |
33 private: | 33 private: |
34 IStatusBar* statusBar_; | 34 IStatusBar* statusBar_; |
35 CoordinateSystem3D slice_; | 35 OrthancStone::CoordinateSystem3D slice_; |
36 double x1_; | 36 double x1_; |
37 double y1_; | 37 double y1_; |
38 double x2_; | 38 double x2_; |
39 double y2_; | 39 double y2_; |
40 uint8_t color_[3]; | 40 uint8_t color_[3]; |
41 unsigned int fontSize_; | 41 unsigned int fontSize_; |
42 const Orthanc::Font& font_; | 42 const Orthanc::Font& font_; |
43 | 43 |
44 public: | 44 public: |
45 LineMeasureTracker(IStatusBar* statusBar, | 45 LineMeasureTracker(IStatusBar* statusBar, |
46 const CoordinateSystem3D& slice, | 46 const OrthancStone::CoordinateSystem3D& slice, |
47 double x, | 47 double x, |
48 double y, | 48 double y, |
49 uint8_t red, | 49 uint8_t red, |
50 uint8_t green, | 50 uint8_t green, |
51 uint8_t blue, | 51 uint8_t blue, |
54 virtual bool HasRender() const | 54 virtual bool HasRender() const |
55 { | 55 { |
56 return true; | 56 return true; |
57 } | 57 } |
58 | 58 |
59 virtual void Render(CairoContext& context, | 59 virtual void Render(OrthancStone::CairoContext& context, |
60 double zoom); | 60 double zoom); |
61 | 61 |
62 double GetLength() const; // In millimeters | 62 double GetLength() const; // In millimeters |
63 | 63 |
64 std::string FormatLength() const; | 64 std::string FormatLength() const; |