16#include "TVirtualPad.h"
59 Int_t rev = TGraph::InsertPoint();
68 Int_t rev = TGraph::RemovePoint();
84 static Bool_t ignoreNext = kFALSE;
89 if (event == kButton1Double) {
103 TCutG::ExecuteEvent(event, px, py);
120 Bool_t needsupdate = kFALSE;
125 Int_t oldmaxpoints = concut->GetN(), newmaxpoints = GetN();
126 if (oldmaxpoints != newmaxpoints) {
129 for (Int_t point = 0; point < oldmaxpoints; ++point) {
130 Double_t xn = 0, yn = 0, xo = 0, yo = 0;
131 concut->GetPoint(point, xo, yo);
132 GetPoint(point, xn, yn);
133 if (TMath::Abs(xo - xn) > epsilon) {
137 if (TMath::Abs(yo - yn) > epsilon) {
151#ifdef POLYCONDVIEW_UPDATE_WITHCLONE
171 Int_t pn = source->GetN();
175 for (Int_t i = 0; i < pn; ++i) {
176 source->GetPoint(i, xp, yp);
184 auto result =
new TCutG;
185 result->SetBit(kMustCleanup);
191 for (Int_t i = 0; i < pn; ++i) {
193 result->SetPoint(i, xp, yp);
195 result->SetLineColor(GetLineColor());
196 result->SetLineWidth(GetLineWidth());
197 result->SetLineStyle(GetLineStyle());
198 result->SetFillColor(GetFillColor());
199 result->SetFillStyle(GetFillStyle());
208 return TCutG::GetName();
Int_t InsertPoint() override
const char * GetName() const override
virtual void UpdateCondition()
Copy modified view values back to condition.
Bool_t fbExecutesMouseEvent
JAM this one will suppress condition repaint during execution of mouse events.
TCutG * CreateCut()
create plain cutg from this view.
void SetCut(TCutG *source)
Set this view to values of cut source.
void DeleteRegion()
Delete condition instead of view:
virtual ~TGo4PolyCondView()
Int_t RemovePoint() override
Bool_t IsCutChanged() const
Check if cut on pad is changed compared with condition.
TGo4PolyCond * fxPolyCondition
pointer to viewed condition for update after graphical action
void ResetLabel()
Will reset label position to defaults.
Bool_t fbExecutesMouseMenu
JAM this one will suppress condition repaint during mouse menu execution.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
void SetName(const char *nam) override
void Paint(Option_t *opt) override
void SaveLabelStyle()
This will save draw flags into static default setup.
static void CleanupSpecials()
Remove all references to any TCutGs from ROOT list of specials.