127 if (!
gStyle) {fLineColor=1; fLineWidth=1; fLineStyle=1;
return;}
202 if (x1 < x2) {xl =
x1; xt =
x2;}
203 else {xl =
x2; xt =
x1;}
204 if (y1 < y2) {yl = y1; yt = y2;}
205 else {yl = y2; yt = y1;}
206 if (x < xl-2 || x> xt+2)
return 9999;
207 if (y < yl-2 || y> yt+2)
return 9999;
217 if (c <= 0)
return 9999;
221 if (d < 0)
return 9999;
233 if (!
gPad->IsBatch()) {
262 out<<
" "<<name<<
"->SetLineColor(ci);" << std::endl;
264 out<<
" "<<name<<
"->SetLineColor("<<
fLineColor<<
");"<<std::endl;
267 out<<
" "<<name<<
"->SetLineStyle("<<
fLineStyle<<
");"<<std::endl;
270 out<<
" "<<name<<
"->SetLineWidth("<<
fLineWidth<<
");"<<std::endl;
virtual Style_t GetLineStyle() const
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.
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
virtual void SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
Set a transparent line color.
virtual void Modify()
Change current line attributes if necessary.
static const double x2[5]
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.
virtual Color_t GetLineColor() const
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
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.
virtual Width_t GetLineWidth() const