-
Notifications
You must be signed in to change notification settings - Fork 0
/
column1D.h
74 lines (59 loc) · 1.76 KB
/
column1D.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef COLUMN1D_H
#define COLUMN1D_H
#include <QWidget>
#include <QListWidgetItem>
#include "qcustomplot.h"
namespace Ui{
class column1D;
}
class column1D : public QWidget
{
Q_OBJECT
public:
explicit column1D(QWidget *parent = 0);
int getFilteredCount();
~column1D();
QVector<double> returnX();
double returnXMin();
double returnXMax();
QVector<double> returnY(int colY);
double returnYMin();
double returnYMax();
int getColumns();
QPen getLineStyle(int rowNumber);
QCPScatterStyle getScatterStyle(int rowNumber);
QString getLineName(int rowNumber);
signals:
void figureReplot();
private slots:
void on_load1DFile_PB_clicked();
int loadData1D(QString filedir);
void on_plot1DAddRelationFile_PB_released();
bool filter1DData(double *data);
void on_plot1DFileY_LW_itemClicked(QListWidgetItem* item);
void on_plot1DSetLine_PB_released();
void on_plot1DLines_LW_currentRowChanged(int rowNum);
void on_plot1DRemoveRelationFile_PB_released();
protected:
void paintEvent(QPaintEvent *);
private:
double getMin(double *list,int length);
double getMax(double *list,int length);
double getAvg(double *list,int length);
int filter();
bool loaded=false;
double **vtkData;
QVector<double*> dataFiltered;
QString printstatus;
// double xmin=0,xmax=0,ymin=0,ymax=0,zmin=0,zmax=0;
double xmin1D=1,xmax1D=0,ymin1D=1,ymax1D=0;
int columns,rows;
QVector<Qt::PenStyle> lineStyleList;
QVector<int> scatterStyle;
QVector<QPen> lineStyle;
QVector<QString> lineName;
QVector< QVector<double> > rgbWidth;
QVector<QCPScatterStyle::ScatterShape> scatterStyleList;
Ui::column1D *ui;
};
#endif // COLUMN1D_H