Mercurial > hg > orthanc-stone
comparison Framework/Layers/LineMeasureTracker.cpp @ 332:50e5ec1bdd46 am-2
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Oct 2018 19:38:39 +0200 |
parents | 2038d76bf13f |
children | face7b7008de |
comparison
equal
deleted
inserted
replaced
331:7ccf919faff0 | 332:50e5ec1bdd46 |
---|---|
84 char buf[64]; | 84 char buf[64]; |
85 sprintf(buf, "%0.01f cm", GetLength() / 10.0); | 85 sprintf(buf, "%0.01f cm", GetLength() / 10.0); |
86 return buf; | 86 return buf; |
87 } | 87 } |
88 | 88 |
89 void LineMeasureTracker::MouseMove(double x, | 89 void LineMeasureTracker::MouseMove(int displayX, |
90 int displayY, | |
91 double x, | |
90 double y) | 92 double y) |
91 { | 93 { |
92 x2_ = x; | 94 x2_ = x; |
93 y2_ = y; | 95 y2_ = y; |
94 | 96 |