35 return dynamic_cast<TCutG*
> (
GetObject());
44 NumPointsSpin->setValue(cut->GetN());
53 XYTable->setRowCount(cut->GetN());
55 for (
int n=0;n<cut->GetN();n++) {
57 cut->GetPoint(n, x,y);
58 XYTable->setItem(n, 0,
new QTableWidgetItem(QString::number(x)));
59 XYTable->setItem(n, 1,
new QTableWidgetItem(QString::number(y)));
60 XYTable->setVerticalHeaderItem(n,
new QTableWidgetItem(QString::number(n)));
69 int old = cut->GetN();
71 if (old>1) cut->GetPoint(old-2, x, y);
73 for(
int n= (old-1>=0 ? old-1 : 0); n<npoint-1; n++)
74 cut->SetPoint(n, x, y+(n-old+2)*10);
76 cut->GetPoint(0, x, y);
77 cut->SetPoint(npoint-1, x, y);
98 double zn = XYTable->item(nrow, ncol)->text().toDouble(&ok);
100 if (ncol==0) cut->GetX()[nrow] = zn;
101 else cut->GetY()[nrow] = zn;
102 if ((nrow==0) || (nrow==cut->GetN()-1)) {
103 int nrow1 = (nrow==0) ? cut->GetN()-1 : 0;
105 XYTable->setItem(nrow1, ncol,
new QTableWidgetItem(XYTable->item(nrow, ncol)->text()));
106 if (ncol==0) cut->GetX()[nrow1] = zn;
107 else cut->GetY()[nrow1] = zn;
void SetRangeCutExcluding(Int_t n, Bool_t exclude=kTRUE)
QFitItem * Parent() const
Bool_t IsRangeCutExcluding(Int_t n)