Auto status change to "Under Review"
@@ -0,0 +1,15 | |||
|
1 | #ifndef SCIQLOP_SQPDATETIME_H | |
|
2 | #define SCIQLOP_SQPDATETIME_H | |
|
3 | ||
|
4 | /** | |
|
5 | * @brief The SqpDateTime struct holds the information of time parameters | |
|
6 | * @sa SqpDateTime | |
|
7 | */ | |
|
8 | struct SqpDateTime { | |
|
9 | /// Start time | |
|
10 | double m_TStart; | |
|
11 | /// End time | |
|
12 | double m_TEnd; | |
|
13 | }; | |
|
14 | ||
|
15 | #endif // SCIQLOP_SQPDATETIME_H |
@@ -1,16 +1,15 | |||
|
1 | 1 | #ifndef SCIQLOP_DATAPROVIDERPARAMETERS_H |
|
2 | 2 | #define SCIQLOP_DATAPROVIDERPARAMETERS_H |
|
3 | 3 | |
|
4 | #include "SqpDateTime.h" | |
|
5 | ||
|
4 | 6 | /** |
|
5 | 7 | * @brief The DataProviderParameters struct holds the information needed to retrieve data from a |
|
6 | 8 | * data provider |
|
7 | 9 | * @sa IDataProvider |
|
8 | 10 | */ |
|
9 | 11 | struct DataProviderParameters { |
|
10 | /// Start time | |
|
11 | double m_TStart; | |
|
12 | /// End time | |
|
13 | double m_TEnd; | |
|
12 | SqpDateTime m_Time; | |
|
14 | 13 | }; |
|
15 | 14 | |
|
16 | 15 | #endif // SCIQLOP_DATAPROVIDERPARAMETERS_H |
@@ -8,9 +8,11 | |||
|
8 | 8 | std::unique_ptr<IDataSeries> |
|
9 | 9 | CosinusProvider::retrieveData(const DataProviderParameters ¶meters) const |
|
10 | 10 | { |
|
11 | auto dateTime = parameters.m_Time; | |
|
12 | ||
|
11 | 13 | // Gets the timerange from the parameters |
|
12 |
auto start = |
|
|
13 |
auto end = |
|
|
14 | auto start = dateTime.m_TStart; | |
|
15 | auto end = dateTime.m_TEnd; | |
|
14 | 16 | |
|
15 | 17 | // We assure that timerange is valid |
|
16 | 18 | if (end < start) { |
General Comments 4
Pull request updated. Auto status change to "Under Review"
Changed commits: * 1 added * 0 removed Changed files: * M gui/include/Visualization/VisualizationGraphWidget.h * M gui/src/Visualization/VisualizationGraphWidget.cpp
Status change > Approved
You need to be logged in to leave comments.
Login now