| 612 | } |
| 613 | |
| 614 | bool |
| 615 | Curve::getKeyFrameWithIndex(int index, |
| 616 | KeyFrame* k) const |
| 617 | { |
| 618 | assert(k); |
| 619 | QMutexLocker l(&_imp->_lock); |
| 620 | if ( (index < 0) || ( (int)_imp->keyFrames.size() <= index ) ) { |
| 621 | return false; |
| 622 | } |
| 623 | *k = *atIndex(index); |
| 624 | |
| 625 | return true; |
| 626 | } |
| 627 | |
| 628 | bool |
| 629 | Curve::getNearestKeyFrameWithTime(double time, |
no test coverage detected