16#include "TVirtualPad.h" 
   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   auto 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(); 
 
 
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.
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
TGo4PolyCond * fxPolyCondition
pointer to viewed condition for update after graphical action
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.