10 #ifndef QWT_PLOT_SHAPE_ITEM_H    11 #define QWT_PLOT_SHAPE_ITEM_H    13 #include "qwt_global.h"    14 #include "qwt_plot_item.h"    15 #include <qpainterpath.h>    78     void setRect( 
const QRectF & );
    79     void setPolygon( 
const QPolygonF & );
    81     void setShape( 
const QPainterPath & );
    82     QPainterPath shape() 
const;
    84     void setPen( 
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    85     void setPen( 
const QPen & );
    88     void setBrush( 
const QBrush & );
    91     void setRenderTolerance( 
double );
    92     double renderTolerance() 
const;
    96     virtual void draw( QPainter *p,
    98         const QRectF &rect ) 
const;
   102     virtual int rtti() 
const;
 Base class for items on the plot canvas. 
Definition: qwt_plot_item.h:64
A class representing a text. 
Definition: qwt_text.h:51
A scale map. 
Definition: qwt_scale_map.h:30
virtual QwtGraphic legendIcon(int index, const QSizeF &) const 
Definition: qwt_plot_item.cpp:371
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const  =0
Draw the item. 
virtual int rtti() const 
Definition: qwt_plot_item.cpp:120
virtual QRectF boundingRect() const 
Definition: qwt_plot_item.cpp:537
QFlags< PaintAttribute > PaintAttributes
Paint attributes. 
Definition: qwt_plot_shapeitem.h:55
A plot item, which displays any graphical shape, that can be defined by a QPainterPath. 
Definition: qwt_plot_shapeitem.h:31
LegendMode
Mode how to display the item on the legend. 
Definition: qwt_plot_shapeitem.h:58
PaintAttribute
Definition: qwt_plot_shapeitem.h:40
A paint device for scalable graphics. 
Definition: qwt_graphic.h:74
Display a scaled down version of the shape. 
Definition: qwt_plot_shapeitem.h:61