|
|
| DAChartWidget (QWidget *parent=nullptr) |
| |
| virtual QList< int > | dataRttis () const override |
| | 获取所有数据相关的rtti,此函数会影响clearAllData函数
|
| |
| QwtPlotCurve * | addCurve (const QVector< double > &xData, const QVector< double > &yData, const QString &title=QString()) override |
| |
| QwtPlotCurve * | addCurve (const QVector< QPointF > &points, const QString &title=QString()) override |
| |
| QList< QwtPlotCurve * > | getCurves () const override |
| |
| void | removeCurve (QwtPlotCurve *curve) override |
| |
| QwtPlotCurve * | addScatter (const QVector< QPointF > &points, const QString &title=QString()) override |
| |
| QwtPlotBarChart * | addBarChart (const QVector< double > &values, const QString &title=QString()) override |
| |
| QwtPlotBarChart * | addBarChart (const QVector< QPointF > &points, const QString &title=QString()) override |
| |
| QwtPlotIntervalCurve * | addIntervalCurve (const QVector< double > &values, const QVector< double > &mins, const QVector< double > &maxs, const QString &title=QString()) override |
| |
| QwtPlotMarker * | addVerticalLine (double x, const QString &title=QString()) override |
| |
| QwtPlotMarker * | addHorizontalLine (double y, const QString &title=QString()) override |
| |
| QwtPlotMarker * | addCrossLine (double x, double y, const QString &title=QString()) override |
| |
| QwtPlotSpectrogram * | addSpectrogram (QwtGridRasterData *gridData, const QString &title=QString()) override |
| |
| void | removePlotItem (QwtPlotItem *item) override |
| |
| void | clearAllData () override |
| |
| QRectF | getDataBounds () const override |
| |
| bool | hasData () const override |
| |
| void | setChartTitle (const QString &title) override |
| |
| QString | getChartTitle () const override |
| |
| void | setBackgroundBrush (const QBrush &brush) override |
| |
| QBrush | getBackgroundBrush () const override |
| |
| void | setBorderColor (const QColor &color) override |
| |
| QColor | getBorderColor () const override |
| |
| void | setAxisLabel (int axisId, const QString &label) override |
| |
| QString | getAxisLabel (int axisId) const override |
| |
| void | setAxisColor (int axisId, const QColor &color) override |
| |
| QColor | getAxisColor (int axisId) const override |
| |
| void | enableGrid (bool enable=true) override |
| |
|
void | enableGridX (bool enable=true) |
| |
|
void | enableGridY (bool enable=true) |
| |
|
void | enableGridXMin (bool enable=true) |
| |
|
void | enableGridYMin (bool enable=true) |
| |
| bool | isGridEnabled () const override |
| |
|
bool | isGridXEnabled () const |
| |
|
bool | isGridYEnabled () const |
| |
|
bool | isGridXMinEnabled () const |
| |
|
bool | isGridYMinEnabled () const |
| |
| void | setGridStyle (const QColor &color, qreal width=1.0, Qt::PenStyle style=Qt::DotLine, bool isMajor=true) override |
| |
| void | setGridMajorStyle (const QColor &color, qreal width=1.0, Qt::PenStyle style=Qt::DotLine) override |
| |
| void | setGridMinorStyle (const QColor &color, qreal width=0.5, Qt::PenStyle style=Qt::DotLine) override |
| |
| void | enableLegend (bool enable=true) override |
| |
| bool | isLegendEnabled () const override |
| |
| void | setLegendPosition (Qt::Alignment alignment) override |
| |
| Qt::Alignment | getLegendPosition () const override |
| |
| void | setLegendBackground (const QBrush &brush) override |
| |
| QBrush | getLegendBackground () const override |
| |
| void | setLegendTextColor (const QColor &color) override |
| |
| QColor | getLegendTextColor () const override |
| |
| void | setupDateTimeAxis (int axisId, const QString &format="yyyy-MM-dd hh:mm:ss") override |
| |
| bool | isDateTimeAxis (int axisId) const override |
| |
| void | enableZoom (bool enable=true) override |
| |
| bool | isZoomEnabled () const override |
| |
| void | zoomToOriginal () override |
| |
| void | zoomIn () override |
| |
| void | zoomOut () override |
| |
| QwtPlotCanvasZoomer * | getZoomer () const override |
| |
| void | enablePan (bool enable=true) override |
| |
| bool | isPanEnabled () const override |
| |
| QwtPlotPanner * | getPanner () const override |
| |
| void | enableCrosshair (bool enable=true) override |
| |
| bool | isCrosshairEnabled () const override |
| |
| QwtPlotPicker * | getCrosshair () const override |
| |
|
bool | isDataPickingEnabled () const |
| |
| void | enableYValuePicking (bool enable=true) override |
| |
| bool | isYValuePickingEnabled () const override |
| |
| void | enableXYValuePicking (bool enable=true) override |
| |
| bool | isXYValuePickingEnabled () const override |
| |
| QwtPlotSeriesDataPicker * | getDataPicker () const override |
| |
| void | enableMouseWheelZoom (bool enable=true) override |
| |
| bool | isMouseWheelZoomEnabled () const override |
| |
| QwtPlotMagnifier * | getMagnifier () const override |
| |
| void | enableLegendPanel (bool enable=true) override |
| |
| bool | isLegendPanelEnabled () const override |
| |
| QwtLegend * | getLegendPanel () const override |
| |
| void | registerPannerFactory (const PannerFactory &factory) override |
| |
| void | registerPickerFactory (const PickerFactory &factory) override |
| |
| void | registerDataPickerFactory (const DataPickerFactory &factory) override |
| |
|
DAFigureWidget * | getFigure () const |
| |
|
void | notifyPropertiesChanged (ChartPropertyChangeFlags flag) |
| |
增强的Qwt图表控件,提供完整的数据绘图、样式设置和交互控制功能
通过三个接口分离不同方面的功能: