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

Method getKeyFrameWithTime

Engine/Curve.cpp:769–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769bool
770Curve::getKeyFrameWithTime(double time,
771 KeyFrame* k) const
772{
773 assert(k);
774 QMutexLocker l(&_imp->_lock);
775 KeyFrameSet::const_iterator it = find(time);
776
777 if ( it == _imp->keyFrames.end() ) {
778 return false;
779 }
780
781 *k = *it;
782
783 return true;
784}
785
786/// compute interpolation parameters from keyframes and an iterator
787/// 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