TAttLine.h

Go to the documentation of this file.
00001 // @(#)root/base:$Id: TAttLine.h 27860 2009-03-18 08:36:17Z brun $
00002 // Author: Rene Brun   28/11/94
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TAttLine
00013 #define ROOT_TAttLine
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TAttLine                                                             //
00019 //                                                                      //
00020 // Line attributes.                                                     //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_Rtypes
00025 #include "Rtypes.h"
00026 #endif
00027 #ifndef ROOT_Riosfwd
00028 #include "Riosfwd.h"
00029 #endif
00030 
00031 
00032 class TAttLine {
00033 
00034 protected:
00035    Color_t    fLineColor;           //line color
00036    Style_t    fLineStyle;           //line style
00037    Width_t    fLineWidth;           //line width
00038    
00039 public:
00040 
00041    TAttLine();
00042    TAttLine(Color_t lcolor,Style_t lstyle, Width_t lwidth);
00043    virtual ~TAttLine();
00044 
00045    void             Copy(TAttLine &attline) const;
00046    Int_t            DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2 );
00047    virtual Color_t  GetLineColor() const {return fLineColor;}
00048    virtual Style_t  GetLineStyle() const {return fLineStyle;}
00049    virtual Width_t  GetLineWidth() const {return fLineWidth;}
00050    virtual void     Modify();
00051    virtual void     ResetAttLine(Option_t *option="");
00052    virtual void     SaveLineAttributes(ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1);
00053    virtual void     SetLineAttributes(); // *MENU*
00054    virtual void     SetLineColor(Color_t lcolor) { fLineColor = lcolor;}
00055    virtual void     SetLineStyle(Style_t lstyle) { fLineStyle = lstyle;}
00056    virtual void     SetLineWidth(Width_t lwidth) { fLineWidth = lwidth;}
00057 
00058    ClassDef(TAttLine,1);  //Line attributes
00059 };
00060 
00061    enum ELineStyle { kSolid = 1, kDashed, kDotted, kDashDotted };
00062 
00063 #endif
00064 

Generated on Tue Jul 5 14:10:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1