3 #ifndef __Plot_Data_H__
4 #define __Plot_Data_H__
5 #pragma region Includes
10 namespace DataVisualizerGUI {
18 static const QColor DefaultColor;
73 #pragma region Accessors
198 #pragma region Members
210 #endif // !__Plot_Data_H__
double GetXOffset() const
Returns the assigned offset used to shift/translate all data points along the x-axis.
Definition: PlotData.cpp:55
void AddPoint(double x, double y)
Adds a single new point on both the x and y components.
Definition: PlotData.cpp:38
double GetXUpper() const
Returns the highest value of all points along the x-axis.
Definition: PlotData.cpp:106
void SetYOffset(double val)
Assigns an offset for the y axis by which all points along the y-axis will be shifted/translated by...
Definition: PlotData.cpp:91
PlotData & operator=(const PlotData &source)
Overloads the assignment operator to allow for assigning/overwriting the values of one plot data with...
Definition: PlotData.cpp:23
double GetXLower() const
Returns the lowest value of all points along the x-axis.
Definition: PlotData.cpp:102
void SetXYOffset(double x, double y)
Assigns offsets for the x and y axis by which all points along those axises will be shifted/translate...
Definition: PlotData.cpp:63
void AddY(double y)
Adds a single new point on the y component.
Definition: PlotData.cpp:49
void SetSelected(bool selected)
Assigns a flag/boolean indicated whether the plot has been selected by the user using the mouse...
Definition: PlotData.cpp:138
QString Name
The name of the plot/curve.
Definition: PlotData.h:22
void SetXLower(double val)
Assigns the lower bound of the x-axis.
Definition: PlotData.cpp:118
void SetXOffset(double val)
Assigns an offset for the x axis by which all points along the x-axis will be shifted/translated by...
Definition: PlotData.cpp:80
bool GetSelected() const
Returns a flag/boolean indicating whether the plot has been selected by the user using the mouse...
Definition: PlotData.cpp:134
double GetYOffset() const
Returns the assigned offset used to shift/translate all data points along the y-axis.
Definition: PlotData.cpp:59
double GetYLower() const
Returns the lowest value of all points along the y-axis.
Definition: PlotData.cpp:110
double xOffset_
Value by which all values on the x-axis will be shifted by.
Definition: PlotData.h:199
double GetYUpper() const
Returns the highest value of all points along the y-axis.
Definition: PlotData.cpp:114
double xLower_
The lower bound of the viewport along the x-axis.
Definition: PlotData.h:201
double yOffset_
Value by which all values on the y-axis will be shifted by.
Definition: PlotData.h:200
double yLower_
The lower bound of the viewport along the y-axis.
Definition: PlotData.h:203
Structure for storing data for individual curves.
Definition: PlotData.h:15
void AddX(double x)
Adds a single new point on the x component.
Definition: PlotData.cpp:43
double yUpper_
The upper bound of the viewport along the y-axis.
Definition: PlotData.h:204
bool Selected_
A flag indicating if the user has selected the plot with the mouse.
Definition: PlotData.h:205
QVector< double > X
X-axis data points.
Definition: PlotData.h:23
double xUpper_
The upper bound of the viewport along the x-axis.
Definition: PlotData.h:202
QVector< double > Y
Y-axis data points.
Definition: PlotData.h:24
void SetYLower(double val)
Assigns the lower bound of the y-axis.
Definition: PlotData.cpp:126
void SetXUpper(double val)
Assigns the upper bound of the x-axis.
Definition: PlotData.cpp:122
QColor Color
The expected color of the plot.
Definition: PlotData.h:25
PlotData()
Constructor.
Definition: PlotData.cpp:10
void SetYUpper(double val)
Assigns the upper bound of the y-axis.
Definition: PlotData.cpp:130