GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4WinCondView.h
Go to the documentation of this file.
1 // $Id$
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 TGO4WINCONDVIEW_H
15 #define TGO4WINCONDVIEW_H
16 
17 #include "TBox.h"
18 
19 class TGo4WinCond;
20 
21 class TGo4WinCondView : public TBox {
22 
23 public:
24 
25  TGo4WinCondView(Double_t x1,Double_t y1,Double_t x2,Double_t y2);
27 
28  virtual ~TGo4WinCondView();
29 
30  void Paint(Option_t *opt = "") override;
31  void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
32 
33  void SetCondition(TGo4WinCond *condition) { fxWinCondition = condition; }
35  const char *GetName() const override;
36  void SetName(const char *nam); // *MENU*
38  //void DeleteRegion(); // *MENU*
39  void SetToLimits(Double_t x1, Double_t x2,Double_t y1 = 0, Double_t y2 = 0); // *MENU*
40  void SetLabelDraw(Bool_t on); // *MENU*
41  void SetLimitsDraw(Bool_t on); // *MENU*
42  void SetIntDraw(Bool_t on); // *MENU*
43  void SetXMeanDraw(Bool_t on); // *MENU*
44  void SetXRMSDraw(Bool_t on); // *MENU*
45  void SetYMeanDraw(Bool_t on); // *MENU*
46  void SetYRMSDraw(Bool_t on); // *MENU*
47  void SetXMaxDraw(Bool_t on); // *MENU*
48  void SetYMaxDraw(Bool_t on); // *MENU*
49  void SetCMaxDraw(Bool_t on); // *MENU*
50  void SetNumFormat(const char *fmt = "%.4E"); // *MENU*
52  void SaveLabelStyle();// *MENU*
54  void ResetLabel();// *MENU*
55 
56  Bool_t IsAtExecuteMouseEvent() const { return fbExecutesMouseEvent; }
57 
58 private:
59 
61  Bool_t fbExecutesMouseEvent{kFALSE};
62 
65 
66  ClassDefOverride(TGo4WinCondView,7)
67 };
68 
69 #endif //TGO4WINCONDVIEW_H
void SetYRMSDraw(Bool_t on)
TGo4WinCond * fxWinCondition
void SetToLimits(Double_t x1, Double_t x2, Double_t y1=0, Double_t y2=0)
void SetName(const char *nam)
void Paint(Option_t *opt="") override
void SetCMaxDraw(Bool_t on)
Bool_t IsAtExecuteMouseEvent() const
void SetYMaxDraw(Bool_t on)
void SetCondition(TGo4WinCond *condition)
TGo4WinCond * GetCondition() const
void SetXRMSDraw(Bool_t on)
void SetLabelDraw(Bool_t on)
virtual ~TGo4WinCondView()
void SetXMaxDraw(Bool_t on)
Bool_t fbExecutesMouseEvent
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
void SetIntDraw(Bool_t on)
void SetLimitsDraw(Bool_t on)
void SetYMeanDraw(Bool_t on)
const char * GetName() const override
void SetXMeanDraw(Bool_t on)
void SetNumFormat(const char *fmt="%.4E")