-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraph.cpp
93 lines (91 loc) · 1.43 KB
/
graph.cpp
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#include "graph.h"
// get time stamp (this is as a string from file)
std::string Graph::getTime()
{
return this->time;
}
// set time (as string from file)
void Graph::setTime(std::string time)
{
this->time = time;
}
// set file name
void Graph::setFileName(QString name)
{
this->file_name = name;
}
// get file name
QString Graph::getFileName()
{
return this->file_name;
}
// set a single x axis
void Graph::setXAxisVectorPoint(double x)
{
this->x.push_back(x);
}
// set a single y axis
void Graph::setYAxisVectorPoint(double y)
{
this->y.push_back(y);
}
// get x vector
QVector<double> Graph::getXAxisVector()
{
return this->x;
}
// get y vector
QVector<double> Graph::getYAxisVector()
{
return this->y;
}
// set x min value
void Graph::setXMin(float min)
{
this->xmin = min;
}
// set x max value
void Graph::setXMax(float max)
{
this->xmax = max;
}
// set y min value
void Graph::setYMin(float min)
{
this->ymin = min;
}
// set y max value
void Graph::setYMax(float max)
{
this->ymax = max;
}
// get x min value
float Graph::getXMin()
{
return this->xmin;
}
// get x max value
float Graph::getXMax()
{
return this->xmax;
}
// get y min value
float Graph::getYMin()
{
return this->ymin;
}
// get y max value
float Graph::getYMax()
{
return this->ymax;
}
// get file path
QString Graph::getPath()
{
return this->path;
}
// set file path
void Graph::setPath(QString path)
{
this->path = path;
}