-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplotwnd.h
55 lines (46 loc) · 1.63 KB
/
plotwnd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef PLOTWND_H
#define PLOTWND_H
/************************************************************************/
/* show 2d x-y plot
/* FileName : D:\liye_360syn\syn_develop\tjems2\tjems2\plotwnd.h
/* Description :
/* Author : Liye Zhang, during study and work in China, USA and Singapore
/* Email : [email protected]
/* Date : 2015/01/14
/* Copyright : all right reserved
/*
/*------------------------------------------------------------------------------
/* Copyright Details:
/*
/* This program is developed as part of the results of Liye Zhang's PhD dissertation
/* from Zhong-Ren Peng's research group, Tongji University, China.
/* All the source code and related documents can only be copied or modified with the
/* permission of Liye Zhang and Prof. Zhong-Ren Peng's group.
/*
/* It is mainly developed during 2011-2015 in Univeristy of Florida, USA and Tongji
/* University, and University of Singapore.
/*
/************************************************************************/
#include "ui_plotwnd.h"
#include "qcustomplot.h"
class PlotWnd : public QDockWidget, public Ui::PlotWnd
{
Q_OBJECT
public:
PlotWnd(QWidget *parent);
~PlotWnd();
// push x, y data to vector for showing
void pushData( double x, double y);
// show the last [width] element
void plot();
void setWidth( int width);
// change the y range
void setYRange(int start, int end);
private:
QVector<double> mXAll;
QVector<double> mYAll;
QVector<double> mXPlot; // only contain the resent mWidth value
QVector<double> mYPlot;
int mWidth;
};
#endif // PLOTWND_H