BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/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 ReadFile(const char *filename, Option_t *option="", Int_t nlines=50, Int_t fromline=0)
virtual ~BesHeader()
Definition: BesHeader.cxx:51
virtual void SetAllWith(const char *text, Option_t *option, Double_t value)
virtual TObject * DrawClone(Option_t *option="")