BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/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
titledef title[20]
virtual void GetCenterPixel(Int_t &px, Int_t &py)
Definition: BesMarker2D.cxx:81
virtual char * GetObjectInfo(Int_t px, Int_t py) const
virtual void Paint(Option_t *option="")
virtual void SetParameter(const char *name, const char *title, Float_t x, Float_t y, Float_t z)
virtual ~BesMarker2D()
legend Draw()