MNE-CPP  beta 1.0
frequencyspectrum.cpp
Go to the documentation of this file.
1 //=============================================================================================================
37 //*************************************************************************************************************
38 //=============================================================================================================
39 // INCLUDES
40 //=============================================================================================================
41 
42 #include "frequencyspectrum.h"
43 
44 
45 //*************************************************************************************************************
46 //=============================================================================================================
47 // QT INCLUDES
48 //=============================================================================================================
49 
50 #include <QDebug>
51 
52 
53 //*************************************************************************************************************
54 //=============================================================================================================
55 // USED NAMESPACES
56 //=============================================================================================================
57 
58 using namespace XMEASLIB;
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // DEFINE MEMBER METHODS
64 //=============================================================================================================
65 
67 : NewMeasurement(QMetaType::type("FrequencySpectrum::SPtr"), parent)
68 , m_bIsInit(false)
69 , m_bContainsValues(false)
70 {
71 }
72 
73 
74 //*************************************************************************************************************
75 
77 {
78 
79 }
80 
81 
82 //*************************************************************************************************************
83 
85 {
86  m_pFiffInfo = p_pFiffInfo;
87 
88  m_bIsInit = true;
89 }
90 
91 //*************************************************************************************************************
92 
93 void FrequencySpectrum::initScaleType(qint8 ScaleType)
94 {
95  m_xScaleType = ScaleType;
96 
97 }
98 
99 
100 //*************************************************************************************************************
101 
103 {
104  return m_matValue;
105 }
106 
107 
108 //*************************************************************************************************************
109 
111 {
112  //Store
113  m_matValue = v;
114  emit notify();
115 
116  if(!m_bContainsValues)
117  m_bContainsValues = true;
118 }
119 
virtual MatrixXd getValue() const
QSharedPointer< FiffInfo > SPtr
Definition: fiff_info.h:99
void initScaleType(qint8 ScaleType)
FrequencySpectrum(QObject *parent=0)
virtual void setValue(MatrixXd &v)
void initFromFiffInfo(FiffInfo::SPtr &p_pFiffInfo)
Contains the declaration of the FrequencySpectrum class.