00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TAttLine
00013 #define ROOT_TAttLine
00014
00015
00017
00018
00019
00020
00021
00023
00024 #ifndef ROOT_Gtypes
00025 #include "Gtypes.h"
00026 #endif
00027
00028
00029 class TAttLine {
00030
00031 protected:
00032 Color_t fLineColor;
00033 Style_t fLineStyle;
00034 Width_t fLineWidth;
00035
00036 public:
00037 TAttLine();
00038 TAttLine(Color_t lcolor,Style_t lstyle, Width_t lwidth);
00039 virtual ~TAttLine();
00040 void Copy(TAttLine &attline) const;
00041 Int_t DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2 );
00042 Color_t GetLineColor() const {return fLineColor;}
00043 Style_t GetLineStyle() const {return fLineStyle;}
00044 Width_t GetLineWidth() const {return fLineWidth;}
00045 virtual void Modify();
00046 virtual void ResetAttLine(Option_t *option="");
00047 virtual void SaveLineAttributes(ofstream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1);
00048 virtual void SetLineAttributes();
00049 virtual void SetLineColor(Color_t lcolor) { fLineColor = lcolor;}
00050 virtual void SetLineStyle(Style_t lstyle) { fLineStyle = lstyle;}
00051 virtual void SetLineWidth(Width_t lwidth) { fLineWidth = lwidth;}
00052
00053 ClassDef(TAttLine,1)
00054 };
00055
00056 #endif
00057