| 2073 | } |
| 2074 | |
| 2075 | StatusEnum |
| 2076 | KnobParametric::setNthControlPointInterpolation(ValueChangedReasonEnum reason, |
| 2077 | int dimension, |
| 2078 | int nThCtl, |
| 2079 | KeyframeTypeEnum interpolation) |
| 2080 | { |
| 2081 | ///Mt-safe as Curve is MT-safe |
| 2082 | if ( dimension >= (int)_curves.size() ) { |
| 2083 | return eStatusFailed; |
| 2084 | } |
| 2085 | try { |
| 2086 | _curves[dimension]->setKeyFrameInterpolation(interpolation, nThCtl); |
| 2087 | } catch (...) { |
| 2088 | return eStatusFailed; |
| 2089 | } |
| 2090 | |
| 2091 | Q_EMIT curveChanged(dimension); |
| 2092 | evaluateValueChange(0, getCurrentTime(), ViewSpec::all(), reason); |
| 2093 | |
| 2094 | return eStatusOK; |
| 2095 | } |
| 2096 | |
| 2097 | StatusEnum |
| 2098 | KnobParametric::setNthControlPoint(ValueChangedReasonEnum reason, |
no test coverage detected