v2.0.0
Loading...
Searching...
No Matches
inv_ecd_set.h
Go to the documentation of this file.
1//=============================================================================================================
36
37#ifndef INV_ECD_SET_H
38#define INV_ECD_SET_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../inv_global.h"
45#include "inv_ecd.h"
46
47//=============================================================================================================
48// QT INCLUDES
49//=============================================================================================================
50
51#include <QSharedPointer>
52#include <QList>
53#include <QString>
54
55//=============================================================================================================
56// EIGEN INCLUDES
57//=============================================================================================================
58
59//=============================================================================================================
60// FORWARD DECLARATIONS
61//=============================================================================================================
62
63//=============================================================================================================
64// DEFINE NAMESPACE INVLIB
65//=============================================================================================================
66
67namespace INVLIB {
68
69//=============================================================================================================
70// FIFFLIB FORWARD DECLARATIONS
71//=============================================================================================================
72
73//=============================================================================================================
79
81{
82
83public:
84 typedef QSharedPointer<InvEcdSet> SPtr;
85 typedef QSharedPointer<const InvEcdSet> ConstSPtr;
86
87 //=========================================================================================================
91 InvEcdSet();
92
93 //=========================================================================================================
99 InvEcdSet(const InvEcdSet &p_ECDSet);
100
101 //=========================================================================================================
105 ~InvEcdSet();
106
107 //=========================================================================================================
111 void addEcd(const InvEcd& p_ecd);
112
113 //=========================================================================================================
119 static InvEcdSet read_dipoles_dip(const QString& fileName);
120
121 //=========================================================================================================
127 bool save_dipoles_bdip(const QString& fileName);
128
129 //=========================================================================================================
135 bool save_dipoles_dip(const QString& fileName) const;
136
137 //=========================================================================================================
143 inline qint32 size() const;
144
145 //=========================================================================================================
153 const InvEcd& operator[] (int idx) const;
154
155 //=========================================================================================================
163 InvEcd& operator[] (int idx);
164
165 //=========================================================================================================
173 InvEcdSet& operator<< (const InvEcd& p_ecd);
174
175public:
176 QString dataname;
177
178private:
179 QList<InvEcd> m_qListDips;
180};
181
182//=============================================================================================================
183// INLINE DEFINITIONS
184//=============================================================================================================
185
186inline qint32 InvEcdSet::size() const
187{
188 return m_qListDips.size();
189}
190} // NAMESPACE INVLIB
191
192#ifndef metatype_ecdset
193#define metatype_ecdset
195#endif
196
197#endif // INV_ECD_SET_H
Q_DECLARE_METATYPE(INVLIB::InvEcdSet)
Electric Current Dipole (InvEcd) class declaration.
inverse library export/import macros.
#define INVSHARED_EXPORT
Definition inv_global.h:52
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Single equivalent current dipole with position, orientation, amplitude, and goodness-of-fit.
Definition inv_ecd.h:73
Holds a set of Electric Current Dipoles.
Definition inv_ecd_set.h:81
qint32 size() const
QSharedPointer< InvEcdSet > SPtr
Definition inv_ecd_set.h:84
void addEcd(const InvEcd &p_ecd)
bool save_dipoles_dip(const QString &fileName) const
bool save_dipoles_bdip(const QString &fileName)
static InvEcdSet read_dipoles_dip(const QString &fileName)
QSharedPointer< const InvEcdSet > ConstSPtr
Definition inv_ecd_set.h:85