00001 // @(#)root/qt:$Name: $:$Id: TQtPen.h 30386 2009-09-23 19:06:28Z brun $ 00002 // Author: Valeri Fine 21/01/2002 00003 /**************************************************************************** 00004 ** 00005 ** Copyright (C) 2002 by Valeri Fine. All rights reserved. 00006 ** 00007 ** This file may be distributed under the terms of the Q Public License 00008 ** as defined by Trolltech AS of Norway and appearing in the file 00009 ** LICENSE.QPL included in the packaging of this file. 00010 *****************************************************************************/ 00011 #ifndef ROOT_TQtPen 00012 #define ROOT_TQtPen 00013 00014 #include "Riostream.h" 00015 #include "TAttLine.h" 00016 00017 #ifndef __CINT__ 00018 # include <QtGui/QPen> 00019 #else 00020 class QPen; 00021 #endif 00022 // 00023 // TQtPen creates the QPen object to map to ROOT TAttLine attributes 00024 // 00025 class TQtPen : public QPen, public TAttLine 00026 { 00027 00028 public: 00029 TQtPen(); 00030 TQtPen(const TQtPen &src):QPen(src),TAttLine(src) {} 00031 TQtPen(const TAttLine &line); 00032 TQtPen &operator=(const TAttLine &line); 00033 virtual ~TQtPen(){;} 00034 void SetLineAttributes() { TAttLine::SetLineAttributes(); } 00035 void SetLineAttributes(const TAttLine &lineAttributes); 00036 void SetLineColor(Color_t cindex); 00037 void SetLineType(int n, int*dash); 00038 void SetLineStyle(Style_t linestyle); 00039 void SetLineWidth(Width_t width); 00040 }; 00041 00042 #endif