Mercurial > hg > orthanc-stone
comparison Framework/Widgets/ZoomMouseTracker.cpp @ 728:8190213e2279 am-dev
Merged default into am-dev
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 21 May 2019 13:25:58 +0200 |
parents | 4f2416d519b4 |
children |
comparison
equal
deleted
inserted
replaced
690:f185cfcb72a0 | 728:8190213e2279 |
---|---|
22 #include "ZoomMouseTracker.h" | 22 #include "ZoomMouseTracker.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 ZoomMouseTracker::ZoomMouseTracker(WorldSceneWidget& that, | 29 ZoomMouseTracker::ZoomMouseTracker(WorldSceneWidget& that, |
30 int x, | 30 int x, |
31 int y) : | 31 int y) : |
32 that_(that), | 32 that_(that), |
49 normalization_ = 1.0 / static_cast<double>(height - 1); | 49 normalization_ = 1.0 / static_cast<double>(height - 1); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 void ZoomMouseTracker::Render(CairoContext& context, | 54 void ZoomMouseTracker::Render(OrthancStone::CairoContext& context, |
55 double zoom) | 55 double zoom) |
56 { | 56 { |
57 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | 57 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); |
58 } | 58 } |
59 | 59 |