ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TAttLine.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 28/11/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAttLine
13 #define ROOT_TAttLine
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TAttLine //
19 // //
20 // Line attributes. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_Rtypes
25 #include "Rtypes.h"
26 #endif
27 #ifndef ROOT_Riosfwd
28 #include "Riosfwd.h"
29 #endif
30 
31 
32 class TAttLine {
33 
34 protected:
35  Color_t fLineColor; //line color
36  Style_t fLineStyle; //line style
37  Width_t fLineWidth; //line width
38 
39 public:
40 
41  TAttLine();
42  TAttLine(Color_t lcolor,Style_t lstyle, Width_t lwidth);
43  virtual ~TAttLine();
44 
45  void Copy(TAttLine &attline) const;
47  virtual Color_t GetLineColor() const {return fLineColor;}
48  virtual Style_t GetLineStyle() const {return fLineStyle;}
49  virtual Width_t GetLineWidth() const {return fLineWidth;}
50  virtual void Modify();
51  virtual void ResetAttLine(Option_t *option="");
52  virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1);
53  virtual void SetLineAttributes(); // *MENU*
54  virtual void SetLineColor(Color_t lcolor) { fLineColor = lcolor;}
55  virtual void SetLineColorAlpha(Color_t lcolor, Float_t lalpha);
56  virtual void SetLineStyle(Style_t lstyle) { fLineStyle = lstyle;}
57  virtual void SetLineWidth(Width_t lwidth) { fLineWidth = lwidth;}
58 
59  ClassDef(TAttLine,2); //Line attributes
60 };
61 
63 
64 #endif
65 
virtual Style_t GetLineStyle() const
Definition: TAttLine.h:48
virtual void SetLineWidth(Width_t lwidth)
Definition: TAttLine.h:57
virtual void SetLineAttributes()
Invoke the DialogCanvas Line attributes.
Definition: TAttLine.cxx:277
short Style_t
Definition: RtypesCore.h:76
TAttLine()
AttLine default constructor.
Definition: TAttLine.cxx:125
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
Definition: TAttLine.cxx:159
virtual void SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
Set a transparent line color.
Definition: TAttLine.cxx:286
int Int_t
Definition: RtypesCore.h:41
virtual void Modify()
Change current line attributes if necessary.
Definition: TAttLine.cxx:229
Float_t py
Definition: hprod.C:33
ELineStyle
Definition: TAttLine.h:62
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.
Definition: TAttLine.cxx:257
ClassDef(TAttLine, 2)
virtual void ResetAttLine(Option_t *option="")
Reset this line attributes to default values.
Definition: TAttLine.cxx:247
char * out
Definition: TBase64.cxx:29
short Color_t
Definition: RtypesCore.h:79
virtual void SetLineColor(Color_t lcolor)
Definition: TAttLine.h:54
Style_t fLineStyle
Definition: TAttLine.h:36
Color_t fLineColor
Definition: TAttLine.h:35
Width_t fLineWidth
Definition: TAttLine.h:37
virtual Color_t GetLineColor() const
Definition: TAttLine.h:47
short Width_t
Definition: RtypesCore.h:78
virtual ~TAttLine()
AttLine destructor.
Definition: TAttLine.cxx:152
double Double_t
Definition: RtypesCore.h:55
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.
Definition: TAttLine.cxx:193
virtual void SetLineStyle(Style_t lstyle)
Definition: TAttLine.h:56
#define name(a, b)
Definition: linkTestLib0.cpp:5
Float_t px
Definition: hprod.C:33
virtual Width_t GetLineWidth() const
Definition: TAttLine.h:49
Line Attributes class.
Definition: TAttLine.h:32