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//=============================================================================================================
67{
68 Q_OBJECT
69
70public:
71 typedef QSharedPointer<Plot> SPtr;
72 typedef QSharedPointer<const Plot> ConstSPtr;
73
74 //=========================================================================================================
80 explicit Plot(QWidget *parent = Q_NULLPTR);
81
82 //=========================================================================================================
89 explicit Plot(Eigen::VectorXd &p_dVec,
90 QWidget *parent = 0);
91
92 //=========================================================================================================
96 ~Plot();
97
98 //=========================================================================================================
102 void init();
103
104 //=========================================================================================================
110 void updateData(Eigen::VectorXd &p_dVec);
111
112protected:
113 //=========================================================================================================
119 void paintEvent(QPaintEvent* event);
120
121 QList<QVector<QPointF> > m_qListVecPointFPaths;
122
124 double m_dMinX;
125 double m_dMaxX;
126 double m_dMinY;
127 double m_dMaxY;
128};
129
130//=============================================================================================================
131// INLINE DEFINITIONS
132//=============================================================================================================
133} // NAMESPACE
134
135#endif // PLOT_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Abstract base widget providing title, axis labels and resize handling for the in-house 2-D plots.
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:127
QSharedPointer< const Plot > ConstSPtr
Definition plot.h:72
Plot(Eigen::VectorXd &p_dVec, QWidget *parent=0)
double m_dMaxX
Definition plot.h:125
double m_dMinX
Definition plot.h:124
void init()
Definition plot.cpp:64
QList< QVector< QPointF > > m_qListVecPointFPaths
Definition plot.h:121
Plot(QWidget *parent=nullptr)
Definition plot.cpp:39
QSharedPointer< Plot > SPtr
Definition plot.h:71
void updateData(Eigen::VectorXd &p_dVec)
Definition plot.cpp:79
void paintEvent(QPaintEvent *event)
Definition plot.cpp:109
double m_dMinY
Definition plot.h:126
bool m_bHoldOn
Definition plot.h:123