MNE-CPP  beta 1.0
frequencyspectrum.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef FREQUENCYSPECTRUM_H
38 #define FREQUENCYSPECTRUM_H
39 
40 
41 //*************************************************************************************************************
42 //=============================================================================================================
43 // INCLUDES
44 //=============================================================================================================
45 
46 #include "xmeas_global.h"
47 #include "newmeasurement.h"
49 
50 #include <fiff/fiff_info.h>
51 
52 
53 //*************************************************************************************************************
54 //=============================================================================================================
55 // Qt INCLUDES
56 //=============================================================================================================
57 
58 #include <QSharedPointer>
59 #include <QVector>
60 #include <QList>
61 #include <QColor>
62 
63 
64 //*************************************************************************************************************
65 //=============================================================================================================
66 // DEFINE NAMESPACE XMEASLIB
67 //=============================================================================================================
68 
69 namespace XMEASLIB
70 {
71 
72 
73 //*************************************************************************************************************
74 //=============================================================================================================
75 // USED NAMESPACES
76 //=============================================================================================================
77 
78 using namespace FIFFLIB;
79 
80 
81 //=========================================================================================================
88 {
89  Q_OBJECT
90 public:
91  typedef QSharedPointer<FrequencySpectrum> SPtr;
92  typedef QSharedPointer<const FrequencySpectrum> ConstSPtr;
94  //=========================================================================================================
98  explicit FrequencySpectrum(QObject *parent = 0);
99 
100  //=========================================================================================================
104  virtual ~FrequencySpectrum();
105 
106  //=========================================================================================================
112  void initFromFiffInfo(FiffInfo::SPtr &p_pFiffInfo);
113 
114  //=========================================================================================================
120  void initScaleType(qint8 ScaleType);
121 
122  //=========================================================================================================
128  inline bool isInit() const;
129 
130  //=========================================================================================================
136  inline FiffInfo::SPtr& getFiffInfo();
137 
138  //=========================================================================================================
144  inline qint8 getScaleType();
145 
146  //=========================================================================================================
152  virtual void setValue(MatrixXd& v);
153 
154  //=========================================================================================================
161  virtual MatrixXd getValue() const;
162 
163  //=========================================================================================================
169  inline bool containsValues() const;
170 
171 private:
172  FiffInfo::SPtr m_pFiffInfo;
174  MatrixXd m_matValue;
176  bool m_bIsInit;
177  bool m_bContainsValues;
179  /* Begin : Added by Limin, 10/19/14 for passing scaletype parameter from noisee stimate to spectrum model*/
180  qint8 m_xScaleType;
181  /* End */
182 };
183 
184 
185 //*************************************************************************************************************
186 //=============================================================================================================
187 // INLINE DEFINITIONS
188 //=============================================================================================================
189 
190 
191 inline bool FrequencySpectrum::isInit() const
192 {
193  return m_bIsInit;
194 }
195 
196 
197 //*************************************************************************************************************
198 
200 {
201  return m_pFiffInfo;
202 }
203 
204 //*************************************************************************************************************
205 
207 {
208  return m_xScaleType;
209 }
210 
211 //*************************************************************************************************************
212 
214 {
215  return m_bContainsValues;
216 }
217 
218 } // NAMESPACE
219 
220 Q_DECLARE_METATYPE(XMEASLIB::FrequencySpectrum::SPtr)
221 
222 #endif // FREQUENCYSPECTRUM_H
Contains the declaration of the NewMeasurement class.
#define XMEASSHARED_EXPORT
Definition: xmeas_global.h:54
QSharedPointer< FiffInfo > SPtr
Definition: fiff_info.h:99
Contains the declaration of the RealTimeSampleArrayChInfo class.
FiffInfo class declaration.
FiffInfo::SPtr & getFiffInfo()
Definition: fiff.h:98
QSharedPointer< FrequencySpectrum > SPtr
Contains the xMeas library export/import macros.
The RealTimeMultiSampleArrayNew class is the base class of every RealTimeMultiSampleArrayNew Measurem...
QSharedPointer< const FrequencySpectrum > ConstSPtr