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