| 268 | } |
| 269 | |
| 270 | void 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 | |
| 285 | void ViewerWidget::setSceneBoundingBox(const qglviewer::Vec& min, const qglviewer::Vec& max){ |
| 286 | m_zMin = min[2]; |
nothing calls this directly
no test coverage detected