BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMarker2D.h
Go to the documentation of this file.
1
2#ifndef BES_Marker2D
3#define BES_Marker2D
4
5#include <TMarker.h>
6
7class BesView;
8class TPad;
9class TString;
10class TPaveText;
11
12
13class BesMarker2D : public TMarker {
14
15 private:
16 TString fName; // name of line
17 TString fTitle; // title of line
18 Float_t fWCX; // marker x pos in world coordinaten
19 Float_t fWCY; // marker y pos in world coordinaten
20 Float_t fWCZ; // marker z pos in world coordinaten
21 Int_t fSizeMultiple; // marker size mulitple * TView->GetMarkerSize
22
23 public:
25 BesMarker2D(const char* name, const char* title, Float_t x, Float_t y, Float_t z);
26 BesMarker2D(const char* name, const char* title, Double_t x, Double_t y, Double_t z);
27 virtual ~BesMarker2D();
28
29 //virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
30 virtual void Draw(Option_t *option = "");
31 virtual void Paint(Option_t *option = "");
32
33 inline virtual void GetCenterPixel(Int_t &px, Int_t &py);
34 inline virtual void SetMarkerSizeMultiple(Int_t input) { fSizeMultiple = input; }
35 inline virtual Int_t GetMarkerSizeMultiple() { return fSizeMultiple; }
36
37 inline virtual const char *GetName() const {return fName.Data();}
38 inline virtual const char *GetTitle() const {return fTitle.Data();}
39
40 inline virtual Float_t GetWCX() { return fWCX; }
41 inline virtual Float_t GetWCY() { return fWCY; }
42 inline virtual Float_t GetWCZ() { return fWCZ; }
43
44 inline virtual void SetWCX(Float_t input) { fWCX = input; }
45 inline virtual void SetWCY(Float_t input) { fWCY = input; }
46 inline virtual void SetWCZ(Float_t input) { fWCZ = input; }
47
48 virtual void SetParameter(const char* name, const char* title, Float_t x, Float_t y, Float_t z);
49 virtual char *GetObjectInfo(Int_t px, Int_t py) const;
50
51 ClassDef(BesMarker2D,2) // Bes 2D marker
52};
53
54#endif
virtual void GetCenterPixel(Int_t &px, Int_t &py)
Definition: BesMarker2D.cxx:81
virtual Float_t GetWCX()
Definition: BesMarker2D.h:40
virtual void SetWCY(Float_t input)
Definition: BesMarker2D.h:45
virtual char * GetObjectInfo(Int_t px, Int_t py) const
virtual void SetMarkerSizeMultiple(Int_t input)
Definition: BesMarker2D.h:34
virtual void Paint(Option_t *option="")
virtual Int_t GetMarkerSizeMultiple()
Definition: BesMarker2D.h:35
virtual void SetWCZ(Float_t input)
Definition: BesMarker2D.h:46
virtual const char * GetTitle() const
Definition: BesMarker2D.h:38
virtual Float_t GetWCZ()
Definition: BesMarker2D.h:42
virtual void SetParameter(const char *name, const char *title, Float_t x, Float_t y, Float_t z)
virtual ~BesMarker2D()
virtual void SetWCX(Float_t input)
Definition: BesMarker2D.h:44
virtual Float_t GetWCY()
Definition: BesMarker2D.h:41
virtual const char * GetName() const
Definition: BesMarker2D.h:37
c1_1 Draw()