27#ifndef QWT_PLOT_SHAPE_ITEM_H
28#define QWT_PLOT_SHAPE_ITEM_H
30#include "qwt_global.h"
31#include "qwt_plot_item.h"
109 Q_DECLARE_FLAGS(PaintAttributes, PaintAttribute)
140 void setPaintAttribute(PaintAttribute,
bool on =
true);
142 bool testPaintAttribute(PaintAttribute)
const;
145 void setLegendMode(LegendMode);
147 LegendMode legendMode()
const;
150 void setRect(
const QRectF&);
152 void setPolygon(
const QPolygonF&);
155 void setShape(
const QPainterPath&);
157 QPainterPath shape()
const;
160 void setPen(
const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine);
162 void setPen(
const QPen&);
167 void setBrush(
const QBrush&);
169 QBrush brush()
const;
172 void setRenderTolerance(
double);
174 double renderTolerance()
const;
186 virtual int rtti()
const override;
可缩放图形的绘制设备
Definition qwt_graphic.h:128
绘图画布上项目的基类
Definition qwt_plot_item.h:119
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
绘制项目
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
Return a legend icon
Definition qwt_plot_item.cpp:621
virtual int rtti() const
Runtime type information
Definition qwt_plot_item.cpp:215
virtual QRectF boundingRect() const
Get the bounding rectangle
Definition qwt_plot_item.cpp:883
显示可由 QPainterPath 定义的任何图形形状的绘图项
Definition qwt_plot_shapeitem.h:69
LegendMode
图例模式
Definition qwt_plot_shapeitem.h:123
@ LegendShape
Display a scaled down version of the shape
Definition qwt_plot_shapeitem.h:125
PaintAttribute
绘制属性
Definition qwt_plot_shapeitem.h:87
刻度映射
Definition qwt_scale_map.h:52
表示文本的类
Definition qwt_text.h:93