#include <BesPaveText.h>
|
| BesPaveText () |
|
| BesPaveText (Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="br") |
|
| BesPaveText (const BesPaveText &pavetext) |
|
virtual void | SetText (std::vector< TString > infoCon) |
|
virtual void | SetPos (Int_t px, Int_t py) |
|
| BesPaveText () |
|
| BesPaveText (Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="br") |
|
| BesPaveText (const BesPaveText &pavetext) |
|
virtual void | SetText (std::vector< TString > infoCon) |
|
virtual void | SetPos (Int_t px, Int_t py) |
|
◆ BesPaveText() [1/6]
BesPaveText::BesPaveText |
( |
| ) |
|
◆ BesPaveText() [2/6]
BesPaveText::BesPaveText |
( |
Double_t |
x1, |
|
|
Double_t |
y1, |
|
|
Double_t |
x2, |
|
|
Double_t |
y2, |
|
|
Option_t * |
option = "br" |
|
) |
| |
Definition at line 18 of file BesPaveText.cxx.
19 :TPaveText(x1,y1,x2,y2,option)
20{
21 SetFillColor(1001);
22 SetBorderSize(1);
23 SetCornerRadius(0.2);
24
26}
◆ BesPaveText() [3/6]
BesPaveText::BesPaveText |
( |
const BesPaveText & |
pavetext | ) |
|
◆ BesPaveText() [4/6]
BesPaveText::BesPaveText |
( |
| ) |
|
◆ BesPaveText() [5/6]
BesPaveText::BesPaveText |
( |
Double_t |
x1, |
|
|
Double_t |
y1, |
|
|
Double_t |
x2, |
|
|
Double_t |
y2, |
|
|
Option_t * |
option = "br" |
|
) |
| |
◆ BesPaveText() [6/6]
BesPaveText::BesPaveText |
( |
const BesPaveText & |
pavetext | ) |
|
◆ SetPos() [1/2]
void BesPaveText::SetPos |
( |
Int_t |
px, |
|
|
Int_t |
py |
|
) |
| |
|
virtual |
Definition at line 86 of file BesPaveText.cxx.
87{
88 if (!gPad) {
89 cout << "BesPaveText::SetPos, gPad does not exist" << endl;
90 return;
91 }
92
93 Double_t
x = gPad->AbsPixeltoX(px+10);
94 Double_t
y = gPad->AbsPixeltoY(py-10);
95 Double_t x1, y1, x2, y2, xNDC, yNDC;
96 gPad->GetRange(x1, y1, x2, y2);
97 xNDC = (
x-x1)/(x2-x1);
98 yNDC = (
y-y1)/(y2-y1);
99
100
101 x1 = xNDC;
102 y1 = yNDC;
105
106 Double_t
delta = 0.02;
107 if (x2 > 1.0 && y2 > 1.0) {
112 }
113 else if (x2 > 1.0) {
116 }
117 if (y2 > 1.0) {
120 }
121
122 SetX1NDC(x1);
123 SetY1NDC(y1);
124 SetX2NDC(x2);
125 SetY2NDC(y2);
126 ConvertNDCtoPad();
127}
Referenced by BesGeoTrack::ExecuteEvent(), Emc2DCrystal::ExecuteEvent(), Mdc2DWire::ExecuteEvent(), Muc2DStrip::ExecuteEvent(), and Tof2DScin::ExecuteEvent().
◆ SetPos() [2/2]
virtual void BesPaveText::SetPos |
( |
Int_t |
px, |
|
|
Int_t |
py |
|
) |
| |
|
virtual |
◆ SetText() [1/2]
virtual void BesPaveText::SetText |
( |
std::vector< TString > |
infoCon | ) |
|
|
virtual |
◆ SetText() [2/2]
virtual void BesPaveText::SetText |
( |
std::vector< TString > |
infoCon | ) |
|
|
virtual |
◆ fdxNDC
Double_t BesPaveText::fdxNDC |
|
protected |
◆ fdyNDC
Double_t BesPaveText::fdyNDC |
|
protected |
◆ fTextSize
Double_t BesPaveText::fTextSize |
|
protected |
The documentation for this class was generated from the following files: