205 if (x1 < x2) {xl =
x1; xt =
x2;}
206 else {xl =
x2; xt =
x1;}
207 if (y1 < y2) {yl = y1; yt = y2;}
208 else {yl = y2; yt = y1;}
209 if (x < xl-2 || x> xt+2)
return 9999;
210 if (y < yl-2 || y> yt+2)
return 9999;
220 if (c <= 0)
return 9999;
224 if (d < 0)
return 9999;
236 if (!
gPad->IsBatch()) {
265 out<<
" "<<name<<
"->SetLineColor(ci);" << std::endl;
267 out<<
" "<<name<<
"->SetLineColor("<<
fLineColor<<
");"<<std::endl;
270 out<<
" "<<name<<
"->SetLineStyle("<<
fLineStyle<<
");"<<std::endl;
273 out<<
" "<<name<<
"->SetLineWidth("<<
fLineWidth<<
");"<<std::endl;
virtual void SetLineAttributes()
Invoke the DialogCanvas Line attributes.
TAttLine()
AttLine default constructor.
R__EXTERN TStyle * gStyle
static void SaveColor(std::ostream &out, Int_t ci)
Save a color with index > 228 as a C++ statement(s) on output stream out.
virtual void SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
Set a transparent line color.
virtual void Modify()
Change current line attributes if necessary.
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
static const double x2[5]
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void ResetAttLine(Option_t *option="")
Reset this line attributes to default values.
Style_t fLineStyle
Line style.
Color_t fLineColor
Line color.
Width_t fLineWidth
Line width.
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
virtual Color_t GetLineColor() const
Return the line color.
static void UpdateLineAttributes(Int_t col, Int_t sty, Int_t width)
Update line attributes via the pad editor.
static const double x1[5]
virtual ~TAttLine()
AttLine destructor.
Int_t DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
Compute distance from point px,py to a line.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b