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

Method cameraPathInterpolated

octovis/src/ViewerWidget.cpp:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void ViewerWidget::cameraPathInterpolated() {
271 qglviewer::KeyFrameInterpolator *kfi = camera()->keyFrameInterpolator(m_current_camera_path);
272 if(kfi) {
273 int current_frame = m_current_camera_frame;
274 for(int i = m_current_camera_frame + 1; i < kfi->numberOfKeyFrames(); i++) {
275 if(kfi->keyFrameTime(current_frame) <= kfi->interpolationTime()) current_frame = i;
276 else break;
277 }
278 if(current_frame != m_current_camera_frame) {
279 m_current_camera_frame = current_frame;
280 emit cameraPathFrameChanged(m_current_camera_path, m_current_camera_frame);
281 }
282 }
283}
284
285void ViewerWidget::setSceneBoundingBox(const qglviewer::Vec& min, const qglviewer::Vec& max){
286 m_zMin = min[2];

Callers

nothing calls this directly

Calls 3

cameraFunction · 0.85
keyFrameInterpolatorMethod · 0.80
keyFrameTimeMethod · 0.80

Tested by

no test coverage detected