| 1990 | } |
| 1991 | |
| 1992 | void CartesianPlot::addIntegrationCurve() { |
| 1993 | auto* curve = new XYIntegrationCurve(i18n("Integration")); |
| 1994 | const XYCurve* curCurve = currentCurve(); |
| 1995 | if (curCurve) { |
| 1996 | beginMacro(i18n("%1: integrate '%2'", name(), curCurve->name())); |
| 1997 | curve->setName(i18n("Integral of '%1'", curCurve->name())); |
| 1998 | curve->setDataSourceType(XYAnalysisCurve::DataSourceType::Curve); |
| 1999 | curve->setDataSourceCurve(curCurve); |
| 2000 | this->addChild(curve); |
| 2001 | curve->recalculate(); |
| 2002 | Q_EMIT curve->integrationDataChanged(curve->integrationData()); |
| 2003 | } else { |
| 2004 | beginMacro(i18n("%1: add integration curve", name())); |
| 2005 | this->addChild(curve); |
| 2006 | } |
| 2007 | |
| 2008 | endMacro(); |
| 2009 | } |
| 2010 | |
| 2011 | void CartesianPlot::addInterpolationCurve() { |
| 2012 | auto* curve = new XYInterpolationCurve(i18n("Interpolation")); |
nothing calls this directly
no test coverage detected