MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getKeyFrameWithIndex

Method getKeyFrameWithIndex

Engine/Curve.cpp:614–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614bool
615Curve::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
628bool
629Curve::getNearestKeyFrameWithTime(double time,

Callers 6

getKeyframeTimeMethod · 0.80
appendPointMethod · 0.80
getNthControlPointMethod · 0.80
getKeyFrameTimeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected