ROOT logo
// @(#)root/base:$Id: TAttLine.h 27860 2009-03-18 08:36:17Z brun $
// Author: Rene Brun   28/11/94

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TAttLine
#define ROOT_TAttLine


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TAttLine                                                             //
//                                                                      //
// Line attributes.                                                     //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#ifndef ROOT_Riosfwd
#include "Riosfwd.h"
#endif


class TAttLine {

protected:
   Color_t    fLineColor;           //line color
   Style_t    fLineStyle;           //line style
   Width_t    fLineWidth;           //line width
   
public:

   TAttLine();
   TAttLine(Color_t lcolor,Style_t lstyle, Width_t lwidth);
   virtual ~TAttLine();

   void             Copy(TAttLine &attline) const;
   Int_t            DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2 );
   virtual Color_t  GetLineColor() const {return fLineColor;}
   virtual Style_t  GetLineStyle() const {return fLineStyle;}
   virtual Width_t  GetLineWidth() const {return fLineWidth;}
   virtual void     Modify();
   virtual void     ResetAttLine(Option_t *option="");
   virtual void     SaveLineAttributes(ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1);
   virtual void     SetLineAttributes(); // *MENU*
   virtual void     SetLineColor(Color_t lcolor) { fLineColor = lcolor;}
   virtual void     SetLineStyle(Style_t lstyle) { fLineStyle = lstyle;}
   virtual void     SetLineWidth(Width_t lwidth) { fLineWidth = lwidth;}

   ClassDef(TAttLine,1);  //Line attributes
};

   enum ELineStyle { kSolid = 1, kDashed, kDotted, kDashDotted };

#endif

 TAttLine.h:1
 TAttLine.h:2
 TAttLine.h:3
 TAttLine.h:4
 TAttLine.h:5
 TAttLine.h:6
 TAttLine.h:7
 TAttLine.h:8
 TAttLine.h:9
 TAttLine.h:10
 TAttLine.h:11
 TAttLine.h:12
 TAttLine.h:13
 TAttLine.h:14
 TAttLine.h:15
 TAttLine.h:16
 TAttLine.h:17
 TAttLine.h:18
 TAttLine.h:19
 TAttLine.h:20
 TAttLine.h:21
 TAttLine.h:22
 TAttLine.h:23
 TAttLine.h:24
 TAttLine.h:25
 TAttLine.h:26
 TAttLine.h:27
 TAttLine.h:28
 TAttLine.h:29
 TAttLine.h:30
 TAttLine.h:31
 TAttLine.h:32
 TAttLine.h:33
 TAttLine.h:34
 TAttLine.h:35
 TAttLine.h:36
 TAttLine.h:37
 TAttLine.h:38
 TAttLine.h:39
 TAttLine.h:40
 TAttLine.h:41
 TAttLine.h:42
 TAttLine.h:43
 TAttLine.h:44
 TAttLine.h:45
 TAttLine.h:46
 TAttLine.h:47
 TAttLine.h:48
 TAttLine.h:49
 TAttLine.h:50
 TAttLine.h:51
 TAttLine.h:52
 TAttLine.h:53
 TAttLine.h:54
 TAttLine.h:55
 TAttLine.h:56
 TAttLine.h:57
 TAttLine.h:58
 TAttLine.h:59
 TAttLine.h:60
 TAttLine.h:61
 TAttLine.h:62
 TAttLine.h:63
 TAttLine.h:64