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

Method getKeyFrameWithIndex

Engine/Curve.cpp:611–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611bool
612Curve::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
625bool
626Curve::getNearestKeyFrameWithTime(double time,

Callers 5

getKeyframeTimeMethod · 0.80
getNthControlPointMethod · 0.80
getKeyFrameTimeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected