|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Utility class for querying QwtPlotItem types and filtering plot items 更多...
#include <qwt_plot_item_info.h>
静态 Public 成员函数 | |
| static bool | isSeriesItem (const QwtPlotItem *item) |
| Check whether the item is a QwtPlotSeriesItem subclass | |
| static bool | isXYSeriesItem (const QwtPlotItem *item) |
| Check whether the item stores QPointF data | |
| static bool | isIntervalSeriesItem (const QwtPlotItem *item) |
| Check whether the item stores QwtIntervalSample data | |
| static bool | isDecoratorItem (const QwtPlotItem *item) |
| Check whether the item is a decorator (non-data item) | |
| static bool | isDataItem (const QwtPlotItem *item) |
| Check whether the item holds any data series | |
| static QwtPlotItemList | seriesItems (const QwtPlot *plot) |
| Get all QwtPlotSeriesItem instances from a plot | |
| static QwtPlotItemList | xySeriesItems (const QwtPlot *plot) |
| Get all QPointF-based series items from a plot | |
| static QwtPlotItemList | filterByRtti (const QwtPlot *plot, int rtti) |
| Filter items by a single rtti value | |
| static QwtPlotItemList | filterByRtti (const QwtPlot *plot, const QSet< int > &rttiSet) |
| Filter items by a set of rtti values | |
| static QwtPlotItemList | visibleItems (const QwtPlot *plot) |
| Get all currently visible items from a plot | |
| static int | dataSize (const QwtPlotItem *item) |
| Get the number of data samples in a plot item | |
| static QRectF | dataRect (const QwtPlotItem *item) |
| Get the bounding rectangle of the item's data | |
| static QString | rttiName (int rtti) |
| Get a human-readable name for an rtti value | |
Utility class for querying QwtPlotItem types and filtering plot items
QwtPlotItemInfo provides static methods to determine the runtime type of plot items, filter items by category, and retrieve basic information such as data size and bounding rectangle. This class does not modify any plot or item state.
|
static |
Get the bounding rectangle of the item's data
| item | Plot item to query |
|
static |
Get the number of data samples in a plot item
| item | Plot item to query |
|
static |
Filter items by a set of rtti values
| plot | Plot to query |
| rttiSet | Set of rtti values to match |
|
static |
Filter items by a single rtti value
| plot | Plot to query |
| rtti | Runtime type value to match |
|
static |
Check whether the item holds any data series
| item | Plot item to check |
|
static |
Check whether the item is a decorator (non-data item)
| item | Plot item to check |
|
static |
Check whether the item stores QwtIntervalSample data
| item | Plot item to check |
|
static |
Check whether the item is a QwtPlotSeriesItem subclass
| item | Plot item to check, may be nullptr |
|
static |
Check whether the item stores QPointF data
| item | Plot item to check |
|
static |
Get a human-readable name for an rtti value
| rtti | Runtime type value |
|
static |
|
static |
Get all currently visible items from a plot
| plot | Plot to query |
|
static |
Get all QPointF-based series items from a plot
| plot | Plot to query |