Qwt User's Guide
|
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** 00002 * Qwt Widget Library 00003 * Copyright (C) 1997 Josef Wilgen 00004 * Copyright (C) 2002 Uwe Rathmann 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the Qwt License, Version 1.0 00008 *****************************************************************************/ 00009 00010 #ifndef QWT_PLOT_ZONE_ITEM_H 00011 #define QWT_PLOT_ZONE_ITEM_H 00012 00013 #include "qwt_global.h" 00014 #include "qwt_plot_item.h" 00015 #include "qwt_interval.h" 00016 00017 class QPen; 00018 class QBrush; 00019 00031 class QWT_EXPORT QwtPlotZoneItem: 00032 public QwtPlotItem 00033 { 00034 public: 00035 explicit QwtPlotZoneItem(); 00036 virtual ~QwtPlotZoneItem(); 00037 00038 virtual int rtti() const; 00039 00040 void setOrientation( Qt::Orientation ); 00041 Qt::Orientation orientation(); 00042 00043 void setInterval( double min, double max ); 00044 void setInterval( const QwtInterval & ); 00045 QwtInterval interval() const; 00046 00047 void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 00048 void setPen( const QPen & ); 00049 const QPen &pen() const; 00050 00051 void setBrush( const QBrush & ); 00052 const QBrush &brush() const; 00053 00054 virtual void draw( QPainter *, 00055 const QwtScaleMap &, const QwtScaleMap &, 00056 const QRectF &) const; 00057 00058 virtual QRectF boundingRect() const; 00059 00060 private: 00061 class PrivateData; 00062 PrivateData *d_data; 00063 }; 00064 00065 #endif