SmoothCurveGraph.h 444 B

1234567891011121314151617181920212223
  1. #ifndef SMOOTHCURVEGRAPH_H
  2. #define SMOOTHCURVEGRAPH_H
  3. #include "qcustomplot.h"
  4. class SmoothCurveGraph : public QCPGraph
  5. {
  6. Q_OBJECT
  7. public:
  8. SmoothCurveGraph(QCPAxis *keyAxis, QCPAxis *valueAxis);
  9. void setSmooth(bool smooth);
  10. protected:
  11. bool m_smooth;
  12. // QCPGraph interface
  13. protected:
  14. virtual void drawLinePlot(QCPPainter *painter, const QVector<QPointF> &lines) const override;
  15. };
  16. #endif // SMOOTHCURVEGRAPH_H