GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
19class TGo4WinCond;
20
21class TGo4WinCondView : public TBox {
22
23public:
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
57
58private:
59
61 Bool_t fbExecutesMouseEvent{kFALSE};
62
65
66 ClassDefOverride(TGo4WinCondView,7)
67};
68
69#endif //TGO4WINCONDVIEW_H
void SetXRMSDraw(Bool_t on)
const char * GetName() const override
void SetLabelDraw(Bool_t on)
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
void SetCMaxDraw(Bool_t on)
void SetIntDraw(Bool_t on)
void SetXMeanDraw(Bool_t on)
void ResetLabel()
Will reset label position to defaults.
void SetYMeanDraw(Bool_t on)
void SetName(const char *nam)
void SetNumFormat(const char *fmt="%.4E")
void SaveLabelStyle()
This will save draw flags into static default setup.
TGo4WinCondView(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void Paint(Option_t *opt="") override
TGo4WinCond * GetCondition() const
void SetToLimits(Double_t x1, Double_t x2, Double_t y1=0, Double_t y2=0)
Delete condition instead of view:
virtual ~TGo4WinCondView()
Bool_t IsAtExecuteMouseEvent() const
TGo4WinCond * fxWinCondition
pointer to viewed condition for update after graphical action
void SetCondition(TGo4WinCond *condition)
void SetYRMSDraw(Bool_t on)
Bool_t fbExecutesMouseEvent
JAM this one will suppress condition repaint during execution of mouse events.
void SetLimitsDraw(Bool_t on)
void SetYMaxDraw(Bool_t on)
void SetXMaxDraw(Bool_t on)
Window condition.
Definition TGo4WinCond.h:26