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

Method getNthControlPoint

Engine/KnobTypes.cpp:2029–2048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2027}
2028
2029StatusEnum
2030KnobParametric::getNthControlPoint(int dimension,
2031 int nthCtl,
2032 double *key,
2033 double *value) const
2034{
2035 ///Mt-safe as Curve is MT-safe
2036 if ( dimension >= (int)_curves.size() ) {
2037 return eStatusFailed;
2038 }
2039 KeyFrame kf;
2040 bool ret = getParametricCurve(dimension)->getKeyFrameWithIndex(nthCtl, &kf);
2041 if (!ret) {
2042 return eStatusFailed;
2043 }
2044 *key = kf.getTime();
2045 *value = kf.getValue();
2046
2047 return eStatusOK;
2048}
2049
2050StatusEnum
2051KnobParametric::getNthControlPoint(int dimension,

Calls 6

getKeyFrameWithIndexMethod · 0.80
getTimeMethod · 0.80
getLeftDerivativeMethod · 0.80
getRightDerivativeMethod · 0.80
sizeMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected