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>
72 void setPaintAttribute( PaintAttribute,
bool on =
true );
73 bool testPaintAttribute( PaintAttribute )
const;
75 void setLegendMode( LegendMode );
76 LegendMode legendMode()
const;
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;