Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayerRotateTracker.cpp @ 457:3b4df9925db6 am-touch-events
added support for 'touch' in mouse trackers. This is still a bit hacky and we need to refactor it to make it clean. Thanks to that, Pan and zoom are available together with 2 touches
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 24 Jan 2019 16:42:27 +0100 |
parents | a750f11892ec |
children | 4f2416d519b4 |
comparison
equal
deleted
inserted
replaced
456:b70fcc134ba4 | 457:3b4df9925db6 |
---|---|
130 | 130 |
131 | 131 |
132 void RadiographyLayerRotateTracker::MouseMove(int displayX, | 132 void RadiographyLayerRotateTracker::MouseMove(int displayX, |
133 int displayY, | 133 int displayY, |
134 double sceneX, | 134 double sceneX, |
135 double sceneY) | 135 double sceneY, |
136 const std::vector<Touch>& displayTouches, | |
137 const std::vector<Touch>& sceneTouches) | |
136 { | 138 { |
137 static const double ROUND_ANGLE = 15.0 / 180.0 * boost::math::constants::pi<double>(); | 139 static const double ROUND_ANGLE = 15.0 / 180.0 * boost::math::constants::pi<double>(); |
138 | 140 |
139 double angle; | 141 double angle; |
140 | 142 |