| 3814 | } |
| 3815 | |
| 3816 | AnimationLevelEnum |
| 3817 | KnobHelper::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 | |
| 3837 | void |
| 3838 | KnobHelper::deleteAnimationConditional(double time, |
no test coverage detected