I didn't get it quite right when converting the input event handling
cancel();
mode = ELEVATE;
+
+ elev_origin = pointer.y;
}
bool Manipulator::start_extend()
}
}
-void Manipulator::axis_motion(unsigned axis, float value, float change)
+void Manipulator::axis_motion(unsigned axis, float value, float)
{
if(axis==0)
pointer.x = value;
}
else if(mode==ELEVATE && axis==1)
{
- float dz = -change;
+ float dz = pointer.y-elev_origin;
signal_status.emit(format("Elevation: %+.0fmm (%.0fmm)", dz*1000, (center.z+dz)*1000));
R2C2::Vector move_origin;
float angle;
float rot_origin;
+ float elev_origin;
std::set<R2C2::Track *> neighbors;
std::vector<R2C2::Track *> extend_tracks;