v2.0.0
Loading...
Searching...
No Matches
plot.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef PLOT_H
24#define PLOT_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "graph.h"
32
33//=============================================================================================================
34// QT INCLUDES
35//=============================================================================================================
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41#include <Eigen/Core>
42
43//=============================================================================================================
44// FORWARD DECLARATIONS
45//=============================================================================================================
46
47//=============================================================================================================
48// DEFINE NAMESPACE DISPLIB
49//=============================================================================================================
50
51namespace DISPLIB
52{
53
54//=============================================================================================================
55// DISPLIB FORWARD DECLARATIONS
56//=============================================================================================================
57
58//=============================================================================================================
69{
70 Q_OBJECT
71
72public:
73 typedef QSharedPointer<Plot> SPtr;
74 typedef QSharedPointer<const Plot> ConstSPtr;
75
76 //=========================================================================================================
82 explicit Plot(QWidget* parent = Q_NULLPTR);
83
84 //=========================================================================================================
91 explicit Plot(Eigen::VectorXd& p_dVec,
92 QWidget* parent = 0);
93
94 //=========================================================================================================
98 ~Plot();
99
100 //=========================================================================================================
104 void init();
105
106 //=========================================================================================================
112 void updateData(Eigen::VectorXd& p_dVec);
113
114protected:
115 //=========================================================================================================
121 void paintEvent(QPaintEvent* event);
122
123 QList<QVector<QPointF>> m_qListVecPointFPaths;
124
126 double m_dMinX;
127 double m_dMaxX;
128 double m_dMinY;
129 double m_dMaxY;
130};
131
132//=============================================================================================================
133// INLINE DEFINITIONS
134//=============================================================================================================
135} // NAMESPACE
136
137#endif // PLOT_H
Abstract base widget providing title, axis labels and resize handling for the in-house 2-D plots.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
2-D display widgets and visualisation helpers (charts, topography, colour maps).
Graph(QWidget *parent=0)
Definition graph.cpp:43
double m_dMaxY
Definition plot.h:129
QSharedPointer< const Plot > ConstSPtr
Definition plot.h:74
Plot(Eigen::VectorXd &p_dVec, QWidget *parent=0)
double m_dMaxX
Definition plot.h:127
double m_dMinX
Definition plot.h:126
void init()
Definition plot.cpp:64
QList< QVector< QPointF > > m_qListVecPointFPaths
Definition plot.h:123
Plot(QWidget *parent=nullptr)
Definition plot.cpp:39
QSharedPointer< Plot > SPtr
Definition plot.h:73
void updateData(Eigen::VectorXd &p_dVec)
Definition plot.cpp:79
void paintEvent(QPaintEvent *event)
Definition plot.cpp:107
double m_dMinY
Definition plot.h:128
bool m_bHoldOn
Definition plot.h:125