Mercurial > hg > orthanc-stone
comparison Framework/Widgets/PanZoomMouseTracker.cpp @ 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 |
---|---|
23 | 23 |
24 #include <Core/Logging.h> | 24 #include <Core/Logging.h> |
25 #include <Core/OrthancException.h> | 25 #include <Core/OrthancException.h> |
26 #include <math.h> | 26 #include <math.h> |
27 | 27 |
28 namespace OrthancStone | 28 namespace Deprecated |
29 { | 29 { |
30 Touch GetCenter(const std::vector<Touch>& touches) | 30 Touch GetCenter(const std::vector<Touch>& touches) |
31 { | 31 { |
32 return Touch((touches[0].x + touches[1].x) / 2.0f, (touches[0].y + touches[1].y) / 2.0f); | 32 return Touch((touches[0].x + touches[1].x) / 2.0f, (touches[0].y + touches[1].y) / 2.0f); |
33 } | 33 } |
73 } | 73 } |
74 | 74 |
75 } | 75 } |
76 | 76 |
77 | 77 |
78 void PanZoomMouseTracker::Render(CairoContext& context, | 78 void PanZoomMouseTracker::Render(OrthancStone::CairoContext& context, |
79 double zoom) | 79 double zoom) |
80 { | 80 { |
81 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | 81 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); |
82 } | 82 } |
83 | 83 |