MNE-CPP  beta 1.0
sensorlayout.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef SENSORLAYOUT_H
37 #define SENSORLAYOUT_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // QT INCLUDES
42 //=============================================================================================================
43 
44 #include <QList>
45 #include <QStringList>
46 #include <QPointF>
47 #include <QSizeF>
48 #include <QtXml/QDomElement>
49 
50 
51 //*************************************************************************************************************
52 //=============================================================================================================
53 // DEFINE NAMESPACE XDISPLIB
54 //=============================================================================================================
55 
56 namespace XDISPLIB
57 {
58 
59 
60 //=============================================================================================================
67 {
68 public:
69  //=========================================================================================================
73  SensorLayout();
74 
75  //=========================================================================================================
83  static SensorLayout parseSensorLayout(const QDomElement &sensorLayoutElement);
84 
85  //=========================================================================================================
91  inline const QString& getName() const;
92 
93  //=========================================================================================================
99  inline QStringList fullChNames() const;
100 
101  //=========================================================================================================
107  inline QStringList shortChNames() const;
108 
109  //=========================================================================================================
115  inline qint32 numChannels() const;
116 
117  //=========================================================================================================
123  inline QList<QPointF> loc() const;
124 
125  //=========================================================================================================
131  inline QList<QSizeF> dim() const;
132 
133 private:
134  QString m_sName;
136  QStringList m_qListFullChannelNames;
137  QStringList m_qListShortChannelNames;
138  QList<QPointF> m_qListLocations;
139  QList<QSizeF> m_qListDimensions;
141 };
142 
143 
144 //*************************************************************************************************************
145 //=============================================================================================================
146 // INLINE DEFINITIONS
147 //=============================================================================================================
148 
149 inline const QString& SensorLayout::getName() const
150 {
151  return m_sName;
152 }
153 
154 
155 //*************************************************************************************************************
156 
157 inline QStringList SensorLayout::fullChNames() const
158 {
159  return m_qListFullChannelNames;
160 }
161 
162 
163 //*************************************************************************************************************
164 
165 inline QStringList SensorLayout::shortChNames() const
166 {
167  return m_qListShortChannelNames;
168 }
169 
170 
171 //*************************************************************************************************************
172 
173 inline qint32 SensorLayout::numChannels() const
174 {
175  return m_qListFullChannelNames.size();
176 }
177 
178 
179 //*************************************************************************************************************
180 
181 inline QList<QPointF> SensorLayout::loc() const
182 {
183  return m_qListLocations;
184 }
185 
186 } // NAMESPACE
187 
188 #endif // SENSORLAYOUT_H
QStringList shortChNames() const
Definition: sensorlayout.h:165
QList< QSizeF > dim() const
QStringList fullChNames() const
Definition: sensorlayout.h:157
const QString & getName() const
Definition: sensorlayout.h:149
qint32 numChannels() const
Definition: sensorlayout.h:173
The SensorLayout class represents a channel layout.
Definition: sensorlayout.h:66
static SensorLayout parseSensorLayout(const QDomElement &sensorLayoutElement)
QList< QPointF > loc() const
Definition: sensorlayout.h:181