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

Method deleteCameraPath

octovis/src/ViewerWidget.cpp:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void ViewerWidget::deleteCameraPath(int id) {
167 if(camera()->keyFrameInterpolator(id)) {
168 disconnect(camera()->keyFrameInterpolator(id), SIGNAL(interpolated()), this, SLOT(update()));
169 disconnect(camera()->keyFrameInterpolator(id), SIGNAL(interpolated()), this, SLOT(cameraPathInterpolated()));
170 disconnect(camera()->keyFrameInterpolator(id), SIGNAL(endReached()), this, SLOT(cameraPathFinished()));
171 camera()->deletePath(id);
172 }
173}
174
175void ViewerWidget::appendToCameraPath(int id, const octomath::Pose6D& pose) {
176 qglviewer::Vec position(pose.trans().x(), pose.trans().y(), pose.trans().z());

Callers

nothing calls this directly

Calls 3

cameraFunction · 0.85
keyFrameInterpolatorMethod · 0.80
deletePathMethod · 0.45

Tested by

no test coverage detected