// Adaptateurs et Drawers divers pour Outils PEIDA++ // R. Ansari 06-08/98 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA #include "sopnamsp.h" #include "pipodrw.h" #include "generalfit.h" //================================================================ // PIGFFDrawer //================================================================ PIGFFDrawer::PIGFFDrawer(GeneralFunction* f) : mFunc(f), mNParms(f->NPar()), mParms(new double[mNParms]) { ASSERT(f->NVar() == 1); } PIGFFDrawer::~PIGFFDrawer() { delete[] mParms; } void PIGFFDrawer::SetParms(double const* p) { for (int i=0; iGetGrSpace(x1, x2, y1, y2); double xMax = x2; double xMin = x1; double yMax = y2; double yMin = y1; double xStep = (xMax - xMin)/100; double xOld = xMin; double yOld = 0; // double yOld = f->Value(&xMin, mParms); for (double x = xMin+xStep; xValue(&x, mParms); if (y>yMin && yOld>yMin && yDrawLine(xOld, yOld, x, y); xOld = x; yOld = y; } }