MCPcopy Create free account
hub / github.com/OctoMap/octomap / stopCameraPath

Method stopCameraPath

octovis/src/ViewerWidget.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void ViewerWidget::stopCameraPath(int id) {
253 if(camera()->keyFrameInterpolator(id) && camera()->keyFrameInterpolator(id)->interpolationIsStarted()) {
254 disconnect(camera()->keyFrameInterpolator(id), SIGNAL(interpolated()), this, SLOT(update()));
255 disconnect(camera()->keyFrameInterpolator(id), SIGNAL(interpolated()), this, SLOT(cameraPathInterpolated()));
256 disconnect(camera()->keyFrameInterpolator(id), SIGNAL(endReached()), this, SLOT(cameraPathFinished()));
257 camera()->keyFrameInterpolator(id)->stopInterpolation();
258 }
259}
260
261void ViewerWidget::cameraPathFinished() {
262 if(camera()->keyFrameInterpolator(m_current_camera_path)) {

Callers

nothing calls this directly

Calls 3

cameraFunction · 0.85
keyFrameInterpolatorMethod · 0.80
stopInterpolationMethod · 0.80

Tested by

no test coverage detected