25 setObjectName(
"Go4CreateNewCondition");
27 setAcceptDrops(
false);
28 CondName->setText(
"new_cond");
29 ClassnameCombo->setCurrentIndex(0);
30 ArraySizeSpin->setValue(1);
35 QByteArray ba = CondName->text().toLatin1();
37 if (ba.length()==0)
return 0;
39 const char* cname = ba.constData();
40 int arrsize = ArraySizeSpin->value();
41 int ctype = ClassnameCombo->currentIndex();
45 if (arrsize>1 && ctype!=3) {
49 for (
int n=0;n<arrsize;n++) {
51 Double_t xx[5] = {0, 100, 100, 0, 0};
52 Double_t yy[5] = {0, 0, 100, 100, 0};
53 for(
int indx=0;indx<5;indx++) {
62 for (
int n=0;n<arrsize;n++) {
64 if (wcond==0)
continue;
89 Double_t xx[5] = {0, 100, 100, 0, 0};
90 Double_t yy[5] = {0, 0, 100, 100, 0};
TGo4Condition * MakeCondition()
void SetEllipse(Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, Int_t npoints=0)
virtual void SetValues(Double_t *x, Double_t *y, Int_t len)
virtual void SetValues(Double_t low1, Double_t up1)
TGo4Condition * At(Int_t i)
TGo4CreateNewCondition(QWidget *parent=0)