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

Method getAnimationLevel

Engine/Knob.cpp:3816–3835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3814}
3815
3816AnimationLevelEnum
3817KnobHelper::getAnimationLevel(int dimension) const
3818{
3819 ///if the knob is slaved to another knob, returns the other knob value
3820 std::pair<int, KnobIPtr> master = getMaster(dimension);
3821
3822 if (master.second) {
3823 //Make sure it is refreshed
3824 master.second->checkAnimationLevel(ViewSpec(0), master.first);
3825
3826 return master.second->getAnimationLevel(master.first);
3827 }
3828
3829 QMutexLocker l(&_imp->animationLevelMutex);
3830 if ( dimension > (int)_imp->animationLevel.size() ) {
3831 throw std::invalid_argument("Knob::getAnimationLevel(): Dimension out of range");
3832 }
3833
3834 return _imp->animationLevel[dimension];
3835}
3836
3837void
3838KnobHelper::deleteAnimationConditional(double time,

Callers 9

onItemClickedMethod · 0.80
paintMethod · 0.80
onExprChangedMethod · 0.80
paintMethod · 0.80
createAnimationMenuMethod · 0.80

Calls 3

ViewSpecFunction · 0.85
checkAnimationLevelMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected