暂无描述

xyplotwindow.h 477B

1234567891011121314151617181920212223242526272829
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "qcustomplot.h"
  5. namespace Ui {
  6. class XYPlotWindow;
  7. }
  8. class XYPlotWindow : public QMainWindow
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit XYPlotWindow(QWidget *parent = 0);
  13. //void setupgraph();
  14. ~XYPlotWindow();
  15. void AddPointToGraph(double x, double y);
  16. void Plot();
  17. private:
  18. Ui::XYPlotWindow *ui;
  19. QVector<double> XX, YY;
  20. QVector<double> XXN, YYN;
  21. };
  22. #endif // MAINWINDOW_H