GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4PolyCondView.h
Go to the documentation of this file.
1 // $Id: TGo4PolyCondView.h 2836 2020-05-15 14:49:44Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4POLYCONDVIEW_H
15 #define TGO4POLYCONDVIEW_H
16 
17 #include "TCutG.h"
18 #include "TGo4PolyCond.h"
19 
20 class TGo4PolyCondView : public TCutG {
21 
22 public:
23 
24  TGo4PolyCondView(TCutG* source);
26  virtual ~TGo4PolyCondView();
27 
28  virtual void Paint(Option_t* opt);
29  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
30 
32  Bool_t IsCutChanged();
34  virtual void UpdateCondition();
35 
36  void SetCondition(TGo4PolyCond *condition) { fxPolyCondition = condition; }
37 
39 
41  void SetCut(TCutG* source);
42 
44  TCutG* CreateCut();
45 
46  virtual const char* GetName() const;
47  void SetName(const char* nam); // *MENU*
49  void DeleteRegion(); // *MENU*
50 
51  void SetLabelDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetLabelDraw(on); } // *TOGGLE* *GETTER=IsLabelDraw
52  void SetLimitsDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetLimitsDraw(on); } // *TOGGLE* *GETTER=IsLimitsDraw
53  void SetIntDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetIntDraw(on); } // *TOGGLE* *GETTER=IsIntDraw
54  void SetXMeanDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetXMeanDraw(on); } // *TOGGLE* *GETTER=IsXMeanDraw
55  void SetXRMSDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetXRMSDraw(on); } // *TOGGLE* *GETTER=IsXRMSDraw
56  void SetYMeanDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetYMeanDraw(on); } // *TOGGLE* *GETTER=IsYMeanDraw
57  void SetYRMSDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetYRMSDraw(on); } // *TOGGLE* *GETTER=IsYRMSDraw
58  void SetXMaxDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetXMaxDraw(on); } // *TOGGLE* *GETTER=IsXMaxDraw
59  void SetYMaxDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetYMaxDraw(on); } // *TOGGLE* *GETTER=IsYMaxDraw
60  void SetCMaxDraw(Bool_t on) { if(fxPolyCondition) fxPolyCondition->SetCMaxDraw(on); } // *TOGGLE* *GETTER=IsCMaxDraw
61 
62  Bool_t IsLabelDraw() { return fxPolyCondition ? fxPolyCondition->IsLabelDraw() : kFALSE; }
63  Bool_t IsLimitsDraw() { return fxPolyCondition ? fxPolyCondition->IsLimitsDraw() : kFALSE; }
64  Bool_t IsIntDraw() { return fxPolyCondition ? fxPolyCondition->IsIntDraw() : kFALSE; }
65  Bool_t IsXMeanDraw() { return fxPolyCondition ? fxPolyCondition->IsXMeanDraw() : kFALSE; }
66  Bool_t IsXRMSDraw() { return fxPolyCondition ? fxPolyCondition->IsXRMSDraw() : kFALSE; }
67  Bool_t IsYMeanDraw() { return fxPolyCondition ? fxPolyCondition->IsYMeanDraw() : kFALSE; }
68  Bool_t IsYRMSDraw() { return fxPolyCondition ? fxPolyCondition->IsYRMSDraw() : kFALSE; }
69  Bool_t IsXMaxDraw() { return fxPolyCondition ? fxPolyCondition->IsXMaxDraw() : kFALSE; }
70  Bool_t IsYMaxDraw() { return fxPolyCondition ? fxPolyCondition->IsYMaxDraw() : kFALSE; }
71  Bool_t IsCMaxDraw() { return fxPolyCondition ? fxPolyCondition->IsCMaxDraw() : kFALSE; }
72 
73 
74 
75 
77  void SaveLabelStyle();// *MENU*
79  void ResetLabel();// *MENU*
80 
81  using TCutG::RemovePoint;
82  virtual Int_t InsertPoint(); // *MENU*
83  virtual Int_t RemovePoint(); // *MENU*
84 
87 
88 private:
89 
92 
95 
98 
99  ClassDef(TGo4PolyCondView,7)
100 };
101 
102 #endif //TGO4POLYCONDVIEW_H
virtual Bool_t IsXRMSDraw()
virtual Int_t RemovePoint()
virtual Bool_t IsLimitsDraw()
virtual void SetIntDraw(Bool_t on)
virtual Bool_t IsCMaxDraw()
void SetYMeanDraw(Bool_t on)
virtual void SetYMaxDraw(Bool_t on)
virtual Bool_t IsIntDraw()
void SetCondition(TGo4PolyCond *condition)
virtual void UpdateCondition()
virtual void SetCMaxDraw(Bool_t on)
void SetLabelDraw(Bool_t on)
virtual void SetYRMSDraw(Bool_t on)
virtual Bool_t IsLabelDraw()
void SetYRMSDraw(Bool_t on)
virtual void SetXMeanDraw(Bool_t on)
virtual void Paint(Option_t *opt)
virtual const char * GetName() const
TGo4PolyCond * fxPolyCondition
virtual Bool_t IsYMaxDraw()
Bool_t IsAtExecuteMouseEvent()
virtual void SetXMaxDraw(Bool_t on)
virtual Int_t InsertPoint()
void SetCMaxDraw(Bool_t on)
void SetXMeanDraw(Bool_t on)
TGo4PolyCond * GetCondition()
void SetXRMSDraw(Bool_t on)
virtual Bool_t IsXMeanDraw()
Bool_t IsAtExecuteMouseMenu()
virtual Bool_t IsXMaxDraw()
void SetCut(TCutG *source)
virtual void SetXRMSDraw(Bool_t on)
virtual void SetLimitsDraw(Bool_t on)
virtual Bool_t IsYMeanDraw()
virtual Bool_t IsYRMSDraw()
void SetLimitsDraw(Bool_t on)
void SetName(const char *nam)
void SetXMaxDraw(Bool_t on)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual void SetYMeanDraw(Bool_t on)
void SetYMaxDraw(Bool_t on)
virtual void SetLabelDraw(Bool_t on)
void SetIntDraw(Bool_t on)
virtual ~TGo4PolyCondView()