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

Method getValue

Engine/KnobTypes.cpp:1998–2014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1996}
1997
1998StatusEnum
1999KnobParametric::getValue(int dimension,
2000 double parametricPosition,
2001 double *returnValue) const
2002{
2003 ///Mt-safe as Curve is MT-safe
2004 if ( dimension >= (int)_curves.size() ) {
2005 return eStatusFailed;
2006 }
2007 try {
2008 *returnValue = getParametricCurve(dimension)->getValueAt(parametricPosition);
2009 } catch (...) {
2010 return eStatusFailed;
2011 }
2012
2013 return eStatusOK;
2014}
2015
2016StatusEnum
2017KnobParametric::getNControlPoints(int dimension,

Callers 2

choiceRestorationIdMethod · 0.45
getNthControlPointMethod · 0.45

Calls 2

getValueAtMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected