| 2027 | } |
| 2028 | |
| 2029 | StatusEnum |
| 2030 | KnobParametric::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 | |
| 2050 | StatusEnum |
| 2051 | KnobParametric::getNthControlPoint(int dimension, |
no test coverage detected