void TToneCurveParam::setValue(double frame, const QList<TPointD> &value, bool undoing) { if (value.size() == 0) return; int paramCount = getCurrentParamSet()->getParamCount(); assert(paramCount == value.size()); int i = 0; for (i = 0; i < paramCount; i++) { TPointParamP param = getCurrentParamSet()->getParam(i); TPointD point = value.at(i); param->setValue(frame, point); } }
void FxGadget::setValue(const TPointParamP ¶m, const TPointD &pos) { param->setValue(m_controller->getCurrentFrame(), pos); }