MNE-CPP  beta 1.0
rtplot.h
Go to the documentation of this file.
1 //=============================================================================================================
35 #ifndef RTPLOT_H
36 #define RTPLOT_H
37 
38 //*************************************************************************************************************
39 //=============================================================================================================
40 // INCLUDES
41 //=============================================================================================================
42 
43 #include "disp_global.h"
44 #include "graph.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 
52 #include <QWidget>
53 #include <QString>
54 #include <QList>
55 #include <QVector>
56 #include <QPointF>
57 #include <QSharedPointer>
58 
59 
60 //*************************************************************************************************************
61 //=============================================================================================================
62 // Eigen INCLUDES
63 //=============================================================================================================
64 
65 #include <Eigen/Core>
66 
67 
68 //*************************************************************************************************************
69 //=============================================================================================================
70 // DEFINE NAMESPACE DISP3DLIB
71 //=============================================================================================================
72 
73 namespace DISPLIB
74 {
75 
76 //*************************************************************************************************************
77 //=============================================================================================================
78 // USED NAMESPACES
79 //=============================================================================================================
80 
81 using namespace Eigen;
82 
83 
84 //*************************************************************************************************************
85 //=============================================================================================================
86 // FORWARD DECLARATIONS
87 //=============================================================================================================
88 
89 
90 
91 //=============================================================================================================
98 {
99  Q_OBJECT
100 public:
101  typedef QSharedPointer<RtPlot> SPtr;
102  typedef QSharedPointer<const RtPlot> ConstSPtr;
104  //=========================================================================================================
110  explicit RtPlot(QWidget *parent = 0);
111 
112  //=========================================================================================================
119  explicit RtPlot(VectorXd &p_dVec, QWidget *parent = 0);
120 
121  //=========================================================================================================
125  ~RtPlot();
126 
127  //=========================================================================================================
131  void init();
132 
133  //=========================================================================================================
139  void updateData(VectorXd &p_dVec);
140 
141 protected:
142  void paintEvent(QPaintEvent*);
143 
144  bool m_bHoldOn;
146  QList<QVector<QPointF> > m_qListVecPointFPaths;
147 
148  double m_dMinX;
149  double m_dMaxX;
150  double m_dMinY;
151  double m_dMaxY;
152 };
153 
154 //*************************************************************************************************************
155 //=============================================================================================================
156 // INLINE DEFINITIONS
157 //=============================================================================================================
158 
159 } // NAMESPACE
160 
161 #endif // RTPLOT_H
QSharedPointer< RtPlot > SPtr
Definition: rtplot.h:101
#define DISPSHARED_EXPORT
Definition: disp_global.h:57
double m_dMaxX
Definition: rtplot.h:149
double m_dMinY
Definition: rtplot.h:150
bool m_bHoldOn
Definition: rtplot.h:144
double m_dMaxY
Definition: rtplot.h:151
Graph class declaration.
Base class for graphs.
Definition: graph.h:95
disp library export/import macros.
Real-time plot.
Definition: rtplot.h:97
QSharedPointer< const RtPlot > ConstSPtr
Definition: rtplot.h:102
double m_dMinX
Definition: rtplot.h:148