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

Method deleteAllControlPoints

Engine/KnobTypes.cpp:2167–2180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2165}
2166
2167StatusEnum
2168KnobParametric::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
2182void
2183KnobParametric::cloneExtraData(KnobI* other,

Callers 5

addOrRemoveKeyframeMethod · 0.45
createInstanceFunction · 0.45
createInstanceFunction · 0.45
createInstanceFunction · 0.45

Calls 4

getCurrentTimeFunction · 0.85
allFunction · 0.85
sizeMethod · 0.45
clearKeyFramesMethod · 0.45

Tested by

no test coverage detected