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

Method setNthControlPointInterpolation

Engine/KnobTypes.cpp:2075–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2073}
2074
2075StatusEnum
2076KnobParametric::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
2097StatusEnum
2098KnobParametric::setNthControlPoint(ValueChangedReasonEnum reason,

Calls 4

getCurrentTimeFunction · 0.85
allFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected