##// END OF EJS Templates
Handles QCustomPlot plottables for vectors (1)...
Alexandre Leroux -
r545:098cadc4596c
parent child
Show More
@@ -0,0 +1,10
1 #ifndef SCIQLOP_VISUALIZATIONDEFS_H
2 #define SCIQLOP_VISUALIZATIONDEFS_H
3
4 #include <map>
5
6 class QCPAbstractPlottable;
7
8 using PlottablesMap = std::map<int, QCPAbstractPlottable *>;
9
10 #endif // SCIQLOP_VISUALIZATIONDEFS_H
@@ -1,6 +1,8
1 #ifndef SCIQLOP_VISUALIZATIONGRAPHHELPER_H
1 #ifndef SCIQLOP_VISUALIZATIONGRAPHHELPER_H
2 #define SCIQLOP_VISUALIZATIONGRAPHHELPER_H
2 #define SCIQLOP_VISUALIZATIONGRAPHHELPER_H
3
3
4 #include "Visualization/VisualizationDefs.h"
5
4 #include <Data/SqpRange.h>
6 #include <Data/SqpRange.h>
5
7
6 #include <QLoggingCategory>
8 #include <QLoggingCategory>
@@ -28,13 +30,10 struct VisualizationGraphHelper {
28 * components.
30 * components.
29 * @return the list of the components created
31 * @return the list of the components created
30 */
32 */
31 static QVector<QCPAbstractPlottable *> create(std::shared_ptr<Variable> variable,
33 static PlottablesMap create(std::shared_ptr<Variable> variable, QCustomPlot &plot) noexcept;
32 QCustomPlot &plot) noexcept;
33 static QVector<QCPAbstractPlottable *> createV2(std::shared_ptr<Variable> variable,
34 QCustomPlot &plot) noexcept;
35
34
36 static void updateData(QVector<QCPAbstractPlottable *> plotableVect,
35 static void updateData(PlottablesMap &plottables, IDataSeries *dataSeries,
37 std::shared_ptr<IDataSeries> dataSeries, const SqpRange &dateTime);
36 const SqpRange &dateTime);
38 };
37 };
39
38
40 #endif // SCIQLOP_VISUALIZATIONGRAPHHELPER_H
39 #endif // SCIQLOP_VISUALIZATIONGRAPHHELPER_H
General Comments 0
You need to be logged in to leave comments. Login now