Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TAttLine.h

Go to the documentation of this file.
00001 // @(#)root/base:$Name:  $:$Id: TAttLine.h,v 1.4 2002/05/03 10:48:53 brun Exp $
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 
00017 //                                                                      //
00018 // TAttLine                                                             //
00019 //                                                                      //
00020 // Line attributes.                                                     //
00021 //                                                                      //
00023 
00024 #ifndef ROOT_Gtypes
00025 #include "Gtypes.h"
00026 #endif
00027 
00028 
00029 class TAttLine {
00030 
00031 protected:
00032         Color_t    fLineColor;           //line color
00033         Style_t    fLineStyle;           //line style
00034         Width_t    fLineWidth;           //line width
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(); // *MENU*
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)  //Line attributes
00054 };
00055 
00056 #endif
00057 

Generated on Thu Dec 18 14:52:16 2003 for ROOT by doxygen1.2.16