18 #include "TVirtualPad.h"
28 fbIsConStreamed(kTRUE)
36 fbIsConStreamed(kFALSE)
56 Double_t xoff=0.015*(gPad->GetUxmax()-gPad->GetUxmin());
57 Double_t yoff=0.015*(gPad->GetUymax()-gPad->GetUymin());
68 SetLineColor(
fxMarker->GetMarkerColor());
139 Double_t xlabmid=0.5*(xlabup+xlablo);
140 Double_t ylabmid=0.5*(ylabup+ylablo);
141 xlablo=gPad->PadtoX(xlablo);
142 ylablo=gPad->PadtoY(ylablo);
143 xlabup=gPad->PadtoX(xlabup);
144 ylabup=gPad->PadtoY(ylabup);
145 xlabmid=gPad->PadtoX(xlabmid);
146 ylabmid=gPad->PadtoY(ylabmid);
148 if(TMath::Abs(xlablo-xmark0) < TMath::Abs(xlabup-xmark0))
150 if(TMath::Abs(xlablo-xmark0) < TMath::Abs(xlabmid-xmark0))
157 if(TMath::Abs(xlabup-xmark0) < TMath::Abs(xlabmid-xmark0))
163 if(TMath::Abs(ylablo-ymark0) < TMath::Abs(ylabup-ymark0))
165 if(TMath::Abs(ylablo-ymark0) < TMath::Abs(ylabmid-ymark0))
172 if(TMath::Abs(ylabup-ymark0) < TMath::Abs(ylabmid-ymark0))
180 Double_t xmark_pad=0;
181 Double_t ymark_pad=0;
182 Double_t xlab_pad=gPad->XtoPad(xlab);
183 Double_t ylab_pad=gPad->YtoPad(ylab);
184 Double_t xmark0_pad=gPad->XtoPad(xmark0);
185 Double_t ymark0_pad=gPad->YtoPad(ymark0);
203 if(xlab_pad>xmark0_pad)
204 xmark_pad=xlab_pad-f*(xlab_pad-xmark0_pad);
206 xmark_pad=xlab_pad+f*(xmark0_pad-xlab_pad);
207 if(ylab_pad>ymark0_pad)
208 ymark_pad=ylab_pad-f*(ylab_pad-ymark0_pad);
210 ymark_pad=ylab_pad+f*(ymark0_pad-ylab_pad);
212 xmark=gPad->PadtoX(xmark_pad);
213 ymark=gPad->PadtoY(ymark_pad);
222 if (gPad->GetListOfPrimitives()->FindObject(
fxConnector)==0)
241 if(option.Contains(
"reset")) {
virtual const char * GetName() const
void UnPaintConnector(Option_t *opt="")
TGo4LabelConnector * fxConnector
virtual void UnPaintLabel(Option_t *opt="")
virtual void PaintLabel(Option_t *opt="")
TH1 * GetHistogram() const
virtual void DisplayToFront(Option_t *opt="")
virtual void PaintLabel(Option_t *opt="")
void SetCaption(const char *txt)
virtual ~TGo4MarkerPainter()
const char * GetNumFormat()
static char * fxLastDeleted
void SetOwner(TObject *ob)
virtual void UnPaintLabel(Option_t *opt="")
void AddToLabel(const char *txt)
virtual void DisplayToFront(Option_t *opt="")
void PaintConnector(Option_t *opt="")
virtual void RePaintLabel(Option_t *opt="")