16 #include "TVirtualPad.h" 24 TCutG(), fbExecutesMouseEvent(kFALSE),fbExecutesMouseMenu(kFALSE), fxPolyCondition(nullptr)
58 Int_t rev = TGraph::InsertPoint();
67 Int_t rev = TGraph::RemovePoint();
83 static Bool_t ignoreNext = kFALSE;
88 if (event == kButton1Double) {
102 TCutG::ExecuteEvent(event, px, py);
119 Bool_t needsupdate = kFALSE;
124 Int_t oldmaxpoints = concut->GetN(), newmaxpoints = GetN();
125 if (oldmaxpoints != newmaxpoints) {
128 for (Int_t point = 0; point < oldmaxpoints; ++point) {
129 Double_t xn = 0, yn = 0, xo = 0, yo = 0;
130 concut->GetPoint(point, xo, yo);
131 GetPoint(point, xn, yn);
132 if (TMath::Abs(xo - xn) > epsilon) {
136 if (TMath::Abs(yo - yn) > epsilon) {
150 #ifdef POLYCONDVIEW_UPDATE_WITHCLONE 170 Int_t pn = source->GetN();
174 for (Int_t i = 0; i < pn; ++i) {
175 source->GetPoint(i, xp, yp);
183 TCutG *result =
new TCutG;
184 result->SetBit(kMustCleanup);
190 for (Int_t i = 0; i < pn; ++i) {
192 result->SetPoint(i, xp, yp);
194 result->SetLineColor(GetLineColor());
195 result->SetLineWidth(GetLineWidth());
196 result->SetLineStyle(GetLineStyle());
197 result->SetFillColor(GetFillColor());
198 result->SetFillStyle(GetFillStyle());
207 return TCutG::GetName();
Bool_t fbExecutesMouseMenu
TCutG * GetCut(Bool_t changeowner) override
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
virtual void UpdateCondition()
void SetValues(Double_t *x, Double_t *y, Int_t len) override
void Paint(Option_t *opt) override
Int_t RemovePoint() override
static void CleanupSpecials()
Int_t InsertPoint() override
TGo4PolyCond * fxPolyCondition
Bool_t IsOwnedByEditor() const
Double_t GetUpdateEpsilon() const
void SetCut(TCutG *source)
void ResetLabel(Option_t *opt="reset")
const char * GetName() const override
void SetName(const char *nam) override
virtual void SetChanged(Bool_t on=kTRUE)
Bool_t fbExecutesMouseEvent
virtual ~TGo4PolyCondView()
Bool_t IsCutChanged() const