23 TArrow(), fxType(at_none), fxModel(nullptr), fxOther(nullptr), fdLineAmpl(0.), fxComp(nullptr), fiRangeNum(0),
24 fdRangeY(0.), fdShiftX(0.), fxItem(nullptr), fxPanel(nullptr)
29 TArrow(0.,0.,0.,0.,arrowsize,option),
fxType(
at_none),
fxModel(nullptr),
fxOther(nullptr),
fdLineAmpl(0.),
fxComp(nullptr),
fiRangeNum(0),
35 TArrow(x1,y1,x2,y2,arrowsize,option),
fxType(
at_none),
fxModel(nullptr),
fxOther(nullptr),
fdLineAmpl(0.),
fxComp(nullptr),
fiRangeNum(0),
76 Double_t x1 = GetX1(), x2 = GetX2(), y1 = GetY1(), y2 = GetY2();
88 SetX1(ppp-width); SetX2(ppp+width);
98 case 0: SetX1(left); SetX2(right);
break;
99 case 1: SetX1(left); SetX2(right);
break;
100 case 2: SetX1(left); SetX2(left+
fdShiftX);
break;
101 case 3: SetX1(right-
fdShiftX); SetX2(right);
break;
108 return (x1 != GetX1()) || (x2 != GetX2()) || (y1 != GetY1()) || (y2 != GetY2());
124 TArrow::ExecuteEvent(event,px,py);
126 if (event == kButton1Up)
136 fdLineAmpl = (GetY1() > GetY2()) ? GetY1() : GetY2();
145 Double_t pos =
fxOther->GetX2();
147 Double_t w0 = (GetX2() - GetX1()) / 2;
148 Double_t w1 = pos - GetX1();
149 Double_t w2 = GetX2() - pos;
151 if (TMath::Abs(w0 - width) > 1e-10) {
153 if (TMath::Abs(w1 - width) > 1e-10)
169 Double_t left, right;
172 left = GetX1() < GetX2() ? GetX1() : GetX2();
173 right = GetX1() > GetX2() ? GetX1() : GetX2();
186 Bool_t TGo4FitGuiArrow::Notify()
191 return TObject::Notify();
virtual void ArrowChanged(TGo4FitGuiArrow *arr)
void Delete(Option_t *option="") override
TGo4FitGuiArrow * fxOther
void SetRangeCondition(Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right)
virtual Bool_t SetPosition(Int_t naxis, Double_t pos)
void SetForRange(TGo4FitComponent *Comp, Int_t num, Double_t rangey, Double_t shiftx)
void SetForPosition(TGo4FitModel *model, TGo4FitGuiArrow *forwidth, Double_t iLineAmpl)
void GetRangeCondition(Int_t n, Int_t &typ, Int_t &naxis, Double_t &left, Double_t &right) const
TGo4FitComponent * fxComp
void SetForWidth(TGo4FitModel *model, TGo4FitGuiArrow *forposition)
virtual Bool_t GetPosition(Int_t naxis, Double_t &pos)
void SetItem(QFitItem *item, TGo4FitPanel *panel)
Bool_t IsAssignTo(TObject *obj)
virtual void DeleteModelWithPrimit(TGo4FitGuiArrow *arr)
virtual TGo4ViewPanel * ActivePanel()
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
virtual Bool_t SetWidth(Int_t naxis, Double_t width)
virtual Bool_t GetWidth(Int_t naxis, Double_t &width)
virtual ~TGo4FitGuiArrow()
virtual bool IsWebCanvas() const