| 2165 | } |
| 2166 | |
| 2167 | StatusEnum |
| 2168 | KnobParametric::deleteAllControlPoints(ValueChangedReasonEnum reason, |
| 2169 | int dimension) |
| 2170 | { |
| 2171 | ///Mt-safe as Curve is MT-safe |
| 2172 | if ( dimension >= (int)_curves.size() ) { |
| 2173 | return eStatusFailed; |
| 2174 | } |
| 2175 | _curves[dimension]->clearKeyFrames(); |
| 2176 | Q_EMIT curveChanged(dimension); |
| 2177 | evaluateValueChange(0, getCurrentTime(), ViewSpec::all(), reason); |
| 2178 | |
| 2179 | return eStatusOK; |
| 2180 | } |
| 2181 | |
| 2182 | void |
| 2183 | KnobParametric::cloneExtraData(KnobI* other, |
no test coverage detected