|
| | QwtPlotHistogram (const QString &title=QString()) |
| | QString标题的构造函数
|
| |
| | QwtPlotHistogram (const QwtText &title) |
| | QwtText标题的构造函数
|
| |
| virtual | ~QwtPlotHistogram () |
| | 析构函数
|
| |
| virtual int | rtti () const override |
| | 获取运行时类型信息
|
| |
| void | setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | 构建并分配画笔
|
| |
| void | setPen (const QPen &) |
| | 分配画笔,根据 style() 的不同而使用
|
| |
| const QPen & | pen () const |
| | 获取根据 style() 不同使用的画笔
|
| |
| void | setBrush (const QBrush &) |
| | 分配画刷,根据 style() 的不同而使用
|
| |
| const QBrush & | brush () const |
| | 获取根据 style() 不同使用的画刷
|
| |
| void | setSamples (const QVector< QwtIntervalSample > &) |
| | 用样本数组初始化数据
|
| |
| void | setSamples (QwtSeriesData< QwtIntervalSample > *) |
| | 分配样本序列
|
| |
| void | setBaseline (double) |
| | 设置基线的值
|
| |
| double | baseline () const |
| | 获取基线的值
|
| |
| void | setStyle (HistogramStyle style) |
| | 设置直方图的绘制样式
|
| |
| HistogramStyle | style () const |
| | 获取直方图的绘制样式
|
| |
| void | setSymbol (const QwtColumnSymbol *) |
| | 分配符号
|
| |
| const QwtColumnSymbol * | symbol () const |
| | 获取当前符号
|
| |
| virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const override |
| | 绘制直方图样本的子集
|
| |
| virtual QRectF | boundingRect () const override |
| | 获取所有样本的边界矩形
|
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const override |
| | A plain rectangle without pen using the brush()
|
| |
| | QwtPlotSeriesItem (const QString &title=QString()) |
| | 构造函数
|
| |
| | QwtPlotSeriesItem (const QwtText &title) |
| | 构造函数
|
| |
| virtual | ~QwtPlotSeriesItem () |
| | 析构函数
|
| |
| void | setOrientation (Qt::Orientation) |
| | 设置绘图项的方向
|
| |
| Qt::Orientation | orientation () const |
| | 获取绘图项的方向
|
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const override |
| | 绘制完整系列
|
| |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) override |
| | 更新刻度划分
|
| |
| | QwtPlotItem () |
| | Default constructor
|
| |
| | QwtPlotItem (const QString &title) |
| | Constructor with title as QString
|
| |
| | QwtPlotItem (const QwtText &title) |
| | Constructor with title as QwtText
|
| |
| virtual | ~QwtPlotItem () |
| | Destructor
|
| |
| void | attach (QwtPlot *plot) |
| | Attach the item to a plot
|
| |
| void | detach () |
| | Detach the item from the plot
|
| |
| QwtPlot * | plot () const |
| | Get the plot the item is attached to
|
| |
| void | setTitle (const QString &title) |
| | Set the title using a QString
|
| |
| void | setTitle (const QwtText &title) |
| | Set the title using a QwtText
|
| |
| const QwtText & | title () const |
| | Get the title
|
| |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| | Set an item attribute
|
| |
| bool | testItemAttribute (ItemAttribute) const |
| | Test an item attribute
|
| |
| void | setItemInterest (ItemInterest, bool on=true) |
| | Set an item interest
|
| |
| bool | testItemInterest (ItemInterest) const |
| | Test an item interest
|
| |
| void | setRenderHint (RenderHint, bool on=true) |
| | Set a render hint
|
| |
| bool | testRenderHint (RenderHint) const |
| | Test a render hint
|
| |
| void | setRenderThreadCount (uint numThreads) |
| | Set the number of render threads
|
| |
| uint | renderThreadCount () const |
| | Get the number of render threads
|
| |
| void | setLegendIconSize (const QSize &) |
| | Set the legend icon size
|
| |
| QSize | legendIconSize () const |
| | Get the legend icon size
|
| |
| double | z () const |
| | Get the z-value
|
| |
| void | setZ (double z) |
| | Set the z-value
|
| |
| void | show () |
| | Show the item
|
| |
| void | hide () |
| | Hide the item
|
| |
| virtual void | setVisible (bool) |
| | Set the visibility
|
| |
| bool | isVisible () const |
| | Check if the item is visible
|
| |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| | Set both axes
|
| |
| void | setXAxis (QwtAxisId) |
| | Set the x-axis
|
| |
| QwtAxisId | xAxis () const |
| | Get the x-axis
|
| |
| void | setYAxis (QwtAxisId) |
| | Set the y-axis
|
| |
| QwtAxisId | yAxis () const |
| | Get the y-axis
|
| |
| virtual void | itemChanged () |
| | Notify the plot that the item has changed
|
| |
| virtual void | legendChanged () |
| | Notify the item that the legend has changed
|
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| | Get margin hints for the canvas
|
| |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| | Update the item with changes of the legend
|
| |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the scale rectangle
|
| |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the paint rectangle
|
| |
| virtual QList< QwtLegendData > | legendData () const |
| | Return legend data
|
| |
|
void | setData (QwtSeriesData< QwtIntervalSample > *series) |
| |
|
QwtSeriesData< QwtIntervalSample > * | data () |
| |
|
const QwtSeriesData< QwtIntervalSample > * | data () const |
| |
|
QwtIntervalSample | sample (size_t index) const |
| |
| virtual size_t | dataSize () const override |
| |
| virtual QRectF | dataRect () const override |
| |
| virtual void | setRectOfInterest (const QRectF &rect) override |
| | Set a the "rectangle of interest" for the stored series
|
| |
|
QwtSeriesData< QwtIntervalSample > * | swapData (QwtSeriesData< QwtIntervalSample > *series) |
| |
|
| virtual QwtColumnRect | columnRect (const QwtIntervalSample &, const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the area that is covered by a sample
|
| |
| virtual void | drawColumn (QPainter *, const QwtColumnRect &, const QwtIntervalSample &) const |
| | Draw a column for a sample in Columns style().
|
| |
| void | drawColumns (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| | Draw a histogram in Columns style()
|
| |
| void | drawOutline (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| | Draw a histogram in Outline style()
|
| |
| void | drawLines (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| | Draw a histogram in Lines style()
|
| |
| virtual void | dataChanged () override |
| | dataChanged() indicates, that the series has been changed.
|
| |
| QwtGraphic | defaultIcon (const QBrush &, const QSizeF &) const |
| | Create a default icon
|
| |
QwtPlotHistogram 表示一系列样本,其中每个区间都与一个值相关联 (
)