MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
graph.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef GRAPH_H
38#define GRAPH_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../disp_global.h"
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QWidget>
51#include <QPen>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57#include <Eigen/Core>
58
59//=============================================================================================================
60// FORWARD DECLARATIONS
61//=============================================================================================================
62
63//=============================================================================================================
64// DEFINE NAMESPACE DISPLIB
65//=============================================================================================================
66
67namespace DISPLIB
68{
69
70//=============================================================================================================
71// DISPLIB FORWARD DECLARATIONS
72//=============================================================================================================
73
74//=============================================================================================================
80class DISPSHARED_EXPORT Graph : public QWidget
81{
82 Q_OBJECT
83
84public:
85 typedef QSharedPointer<Graph> SPtr;
86 typedef QSharedPointer<const Graph> ConstSPtr;
88 //=========================================================================================================
94 explicit Graph(QWidget *parent = 0);
95
96 //=========================================================================================================
100 void init();
101
102 //=========================================================================================================
108 void setTitle(const QString &p_sTitle);
109
110 //=========================================================================================================
116 void setXLabel(const QString &p_sXLabel);
117
118 //=========================================================================================================
124 void setYLabel(const QString &p_sYLabel);
125
126protected:
127// void paintEvent(QPaintEvent*);
128 //=========================================================================================================
134 void resizeEvent(QResizeEvent* event);
135
136 //=========================================================================================================
143 void drawLabels(qint32 p_iContentWidth,
144 qint32 p_iContentHeight);
145
148 QString m_sTitle;
155 QString m_sXLabel;
156 QString m_sYLabel;
159};
160
161//=============================================================================================================
162// INLINE DEFINITIONS
163//=============================================================================================================
164} // NAMESPACE
165
166#endif // GRAPH_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
Base class for graphs.
Definition graph.h:81
QFont m_qFontTitle
Definition graph.h:149
QPen m_qPenAxes
Definition graph.h:158
QString m_sXLabel
Definition graph.h:155
QSize m_qSizeWidget
Definition graph.h:146
QFont m_qFontAxes
Definition graph.h:157
QSharedPointer< const Graph > ConstSPtr
Definition graph.h:86
QString m_sTitle
Definition graph.h:148
QString m_sYLabel
Definition graph.h:156
QPen m_qPenTitle
Definition graph.h:150
qint32 m_iBorderLeftRight
Definition graph.h:153
qint32 m_iBorderTopBottom
Definition graph.h:152
QSharedPointer< Graph > SPtr
Definition graph.h:85