comparison Framework/Radiography/RadiographyLayerResizeTracker.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 a95090305dd4
comparison
equal deleted inserted replaced
456:b70fcc134ba4 457:3b4df9925db6
157 157
158 158
159 void RadiographyLayerResizeTracker::MouseMove(int displayX, 159 void RadiographyLayerResizeTracker::MouseMove(int displayX,
160 int displayY, 160 int displayY,
161 double sceneX, 161 double sceneX,
162 double sceneY) 162 double sceneY,
163 const std::vector<Touch>& displayTouches,
164 const std::vector<Touch>& sceneTouches)
163 { 165 {
164 static const double ROUND_SCALING = 0.1; 166 static const double ROUND_SCALING = 0.1;
165 167
166 if (accessor_.IsValid() && 168 if (accessor_.IsValid() &&
167 accessor_.GetLayer().GetGeometry().IsResizeable()) 169 accessor_.GetLayer().GetGeometry().IsResizeable())