BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesHeader.h
Go to the documentation of this file.
1//
2// BesHeader.h
3//
4
5
6#ifndef BESHEADER
7#define BESHEADER
8
9#include <TPaveText.h>
10#include <TQObject.h>
11
12class BesHeader : public TPaveText, public TQObject {
13//class BesHeader : public TPave, public TQObject {
14
15 private:
16
17 Bool_t fMdcOn; // show Mdc information on ?
18 Bool_t fTofOn; // show Tof information on ?
19 Bool_t fEmcOn; // show Emc information on ?
20
21 public:
22
24 BesHeader(Double_t x1,Double_t y1,Double_t x2,Double_t y2,Option_t *option);
25
26 virtual ~BesHeader();
27
28 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
29
30 inline void SetMdcOn(Bool_t mdcOn) { fMdcOn = mdcOn; TransferMdcOn(fMdcOn);} // *TOGGLE*
31 inline Bool_t GetMdcOn() { return fMdcOn; }
32 inline void TransferMdcOn(Bool_t input) { Emit("TransferMdcOn(Bool_t)",input); } // *SIGNAL*
33
34 inline void SetTofOn(Bool_t tofOn) { fTofOn = tofOn; TransferTofOn(fTofOn);} // *TOGGLE*
35 inline Bool_t GetTofOn() { return fTofOn; }
36 inline void TransferTofOn(Bool_t input) { Emit("TransferTofOn(Bool_t)",input); } // *SIGNAL*
37
38 inline void SetEmcOn(Bool_t emcOn) { fEmcOn = emcOn; TransferEmcOn(fEmcOn);} // *TOGGLE*
39 inline Bool_t GetEmcOn() { return fEmcOn; }
40 inline void TransferEmcOn(Bool_t input) { Emit("TransferEmcOn(Bool_t)",input); } // *SIGNAL*
41
42 inline virtual void Clear(Option_t *option=""){TPaveText ::Clear(option);}
43
44 inline virtual void DeleteText(){TPaveText::DeleteText();}
45 inline virtual void EditText(){TPaveText::EditText();}
46 inline virtual void InsertLine(){TPaveText::InsertLine();}
47 inline virtual void InsertText(const char *label){TPaveText::InsertText(label);}
48 inline virtual void ReadFile(const char *filename, Option_t *option="", Int_t nlines=50, Int_t fromline=0){TPaveText::ReadFile(filename, option, nlines, fromline);}
49 inline virtual void SetAllWith(const char *text, Option_t *option, Double_t value){TPaveText::SetAllWith(text, option, value);}
50 inline virtual void SetLabel(const char *label){TPaveText::SetLabel(label);}
51 inline virtual void SetMargin(Float_t margin=0.05){TPaveText::SetMargin(margin);}
52
53 inline virtual void SetBorderSize(Int_t bordersize=4){TPave::SetBorderSize(bordersize);}
54 inline virtual void SetCornerRadius(Double_t rad = 0.2){TPave::SetCornerRadius(rad);}
55 inline virtual void SetName(const char *name=""){TPave::SetName(name);}
56
57 inline virtual void Delete(Option_t *option="") {TObject::Delete(option);}
58 inline virtual void DrawClass() {TObject::DrawClass() ;}
59 inline virtual TObject *DrawClone(Option_t *option="") {return TObject::DrawClone(option) ;}
60 inline virtual void Dump() {TObject::Dump() ;}
61 inline virtual void Inspect() {TObject :: Inspect() ;}
62 inline virtual void SetDrawOption(Option_t *option="") {TObject::SetDrawOption(option);}
63 inline virtual void SetLineAttributes() {TAttLine::SetLineAttributes();}
64 inline virtual void SetFillAttributes() {TAttFill::SetFillAttributes();}
65 inline virtual void SetTextAttributes() {TAttText::SetTextAttributes();}
66 inline virtual void SetTextAngle(Float_t tangle=0) {TAttText::SetTextAngle(tangle) ;}
67
68 ClassDef(BesHeader,0) // BesVis Header
69};
70
71#endif
72
73
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Definition: BesHeader.cxx:42
virtual void SetBorderSize(Int_t bordersize=4)
Definition: BesHeader.h:53
virtual void Inspect()
Definition: BesHeader.h:61
virtual void SetDrawOption(Option_t *option="")
Definition: BesHeader.h:62
virtual void DeleteText()
Definition: BesHeader.h:44
virtual void DrawClass()
Definition: BesHeader.h:58
virtual void SetCornerRadius(Double_t rad=0.2)
Definition: BesHeader.h:54
virtual void ReadFile(const char *filename, Option_t *option="", Int_t nlines=50, Int_t fromline=0)
Definition: BesHeader.h:48
virtual void Delete(Option_t *option="")
Definition: BesHeader.h:57
void SetTofOn(Bool_t tofOn)
Definition: BesHeader.h:34
void TransferMdcOn(Bool_t input)
Definition: BesHeader.h:32
virtual void InsertLine()
Definition: BesHeader.h:46
virtual void SetFillAttributes()
Definition: BesHeader.h:64
virtual void Dump()
Definition: BesHeader.h:60
Bool_t GetTofOn()
Definition: BesHeader.h:35
virtual void SetTextAngle(Float_t tangle=0)
Definition: BesHeader.h:66
void TransferTofOn(Bool_t input)
Definition: BesHeader.h:36
virtual void EditText()
Definition: BesHeader.h:45
virtual ~BesHeader()
Definition: BesHeader.cxx:51
virtual void SetAllWith(const char *text, Option_t *option, Double_t value)
Definition: BesHeader.h:49
void SetMdcOn(Bool_t mdcOn)
Definition: BesHeader.h:30
virtual void SetLineAttributes()
Definition: BesHeader.h:63
virtual void SetMargin(Float_t margin=0.05)
Definition: BesHeader.h:51
Bool_t GetMdcOn()
Definition: BesHeader.h:31
virtual TObject * DrawClone(Option_t *option="")
Definition: BesHeader.h:59
virtual void SetLabel(const char *label)
Definition: BesHeader.h:50
void SetEmcOn(Bool_t emcOn)
Definition: BesHeader.h:38
virtual void SetName(const char *name="")
Definition: BesHeader.h:55
virtual void InsertText(const char *label)
Definition: BesHeader.h:47
virtual void Clear(Option_t *option="")
Definition: BesHeader.h:42
void TransferEmcOn(Bool_t input)
Definition: BesHeader.h:40
Bool_t GetEmcOn()
Definition: BesHeader.h:39
virtual void SetTextAttributes()
Definition: BesHeader.h:65
const float rad
Definition: vector3.h:134