comparison Framework/Widgets/PanMouseTracker.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
22 #include "PanMouseTracker.h" 22 #include "PanMouseTracker.h"
23 23
24 #include <Core/Logging.h> 24 #include <Core/Logging.h>
25 #include <Core/OrthancException.h> 25 #include <Core/OrthancException.h>
26 26
27 namespace OrthancStone 27 namespace Deprecated
28 { 28 {
29 PanMouseTracker::PanMouseTracker(WorldSceneWidget& that, 29 PanMouseTracker::PanMouseTracker(WorldSceneWidget& that,
30 int x, 30 int x,
31 int y) : 31 int y) :
32 that_(that) 32 that_(that)
34 that.GetView().GetPan(originalPanX_, originalPanY_); 34 that.GetView().GetPan(originalPanX_, originalPanY_);
35 that.GetView().MapPixelCenterToScene(downX_, downY_, x, y); 35 that.GetView().MapPixelCenterToScene(downX_, downY_, x, y);
36 } 36 }
37 37
38 38
39 void PanMouseTracker::Render(CairoContext& context, 39 void PanMouseTracker::Render(OrthancStone::CairoContext& context,
40 double zoom) 40 double zoom)
41 { 41 {
42 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); 42 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
43 } 43 }
44 44