25 QColor
c( Qt::darkGray );
88 setPen( QPen( color, width, style ) );
225 const QRectF &canvasRect )
const 231 pen.setCapStyle( Qt::FlatCap );
246 QRectF r( canvasRect.left(), y1, canvasRect.width(), y2 - y1 );
249 if ( (
d_data->
brush.style() != Qt::NoBrush ) && ( y1 != y2 ) )
273 QRectF r( x1, canvasRect.top(), x2 - x1, canvasRect.height() );
276 if ( (
d_data->
brush.style() != Qt::NoBrush ) && ( x1 != x2 ) )
static void fillRect(QPainter *, const QRectF &, const QBrush &)
Wrapper for QPainter::fillRect()
static void drawLine(QPainter *, qreal x1, qreal y1, qreal x2, qreal y2)
Wrapper for QPainter::drawLine()
A class representing an interval.
Qt::Orientation orientation() const
QwtPlotZoneItem()
Constructor.
The item is represented on the legend.
void setBrush(const QBrush &)
Assign a brush.
void setPen(const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)
void setOrientation(Qt::Orientation)
Set the orientation of the zone.
A class representing a text.
void setZ(double z)
Set the z value.
virtual ~QwtPlotZoneItem()
Destructor.
virtual void draw(QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &canvasRect) const QWT_OVERRIDE
virtual void itemChanged()
const QBrush & brush() const
void setInterval(double min, double max)
virtual int rtti() const QWT_OVERRIDE
QwtInterval interval() const
virtual QRectF boundingRect() const QWT_OVERRIDE
Base class for items on the plot canvas.
void setItemAttribute(ItemAttribute, bool on=true)
double transform(double s) const
Qt::Orientation orientation
static bool roundingAlignment()
virtual QRectF boundingRect() const