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

Method getKeyFrameWithTime

Engine/Curve.cpp:766–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766bool
767Curve::getKeyFrameWithTime(double time,
768 KeyFrame* k) const
769{
770 assert(k);
771 QMutexLocker l(&_imp->_lock);
772 KeyFrameSet::const_iterator it = find(time);
773
774 if ( it == _imp->keyFrames.end() ) {
775 return false;
776 }
777
778 *k = *it;
779
780 return true;
781}
782
783/// compute interpolation parameters from keyframes and an iterator
784/// to the next keyframe (the first with time > t)

Callers 10

getPositionAtTimeMethod · 0.80
hasKeyFrameAtTimeMethod · 0.80
setValueMethod · 0.80
setValueAtTimeMethod · 0.80
dequeueValuesSetMethod · 0.80
mouseDoubleClickEventMethod · 0.80
KnobUndoCommand.hFile · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected