v2.0.0
Loading...
Searching...
No Matches
inv_ecd_set.h
Go to the documentation of this file.
1//=============================================================================================================
19
20#ifndef INV_ECD_SET_H
21#define INV_ECD_SET_H
22
23//=============================================================================================================
24// INCLUDES
25//=============================================================================================================
26
27#include "../inv_global.h"
28#include "inv_ecd.h"
29
30//=============================================================================================================
31// QT INCLUDES
32//=============================================================================================================
33
34#include <QSharedPointer>
35#include <QList>
36#include <QString>
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42//=============================================================================================================
43// FORWARD DECLARATIONS
44//=============================================================================================================
45
46//=============================================================================================================
47// DEFINE NAMESPACE INVLIB
48//=============================================================================================================
49
50namespace INVLIB {
51
52//=============================================================================================================
53// FIFFLIB FORWARD DECLARATIONS
54//=============================================================================================================
55
56//=============================================================================================================
62
64{
65
66public:
67 typedef QSharedPointer<InvEcdSet> SPtr;
68 typedef QSharedPointer<const InvEcdSet> ConstSPtr;
69
70 //=========================================================================================================
74 InvEcdSet();
75
76 //=========================================================================================================
82 InvEcdSet(const InvEcdSet &p_ECDSet);
83
84 //=========================================================================================================
88 ~InvEcdSet();
89
90 //=========================================================================================================
94 void addEcd(const InvEcd& p_ecd);
95
96 //=========================================================================================================
102 static InvEcdSet read_dipoles_dip(const QString& fileName);
103
104 //=========================================================================================================
110 bool save_dipoles_bdip(const QString& fileName);
111
112 //=========================================================================================================
118 bool save_dipoles_dip(const QString& fileName) const;
119
120 //=========================================================================================================
126 inline qint32 size() const;
127
128 //=========================================================================================================
136 const InvEcd& operator[] (int idx) const;
137
138 //=========================================================================================================
146 InvEcd& operator[] (int idx);
147
148 //=========================================================================================================
156 InvEcdSet& operator<< (const InvEcd& p_ecd);
157
158public:
159 QString dataname;
160
161private:
162 QList<InvEcd> m_qListDips;
163};
164
165//=============================================================================================================
166// INLINE DEFINITIONS
167//=============================================================================================================
168
169inline qint32 InvEcdSet::size() const
170{
171 return m_qListDips.size();
172}
173} // NAMESPACE INVLIB
174
175#ifndef metatype_ecdset
176#define metatype_ecdset
178#endif
179
180#endif // INV_ECD_SET_H
Single equivalent current dipole (ECD) with position, moment and per-fit goodness/χ² metrics.
Q_DECLARE_METATYPE(INVLIB::InvEcdSet)
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Single equivalent current dipole with position, orientation, amplitude, and goodness-of-fit.
Definition inv_ecd.h:56
Holds a set of Electric Current Dipoles.
Definition inv_ecd_set.h:64
qint32 size() const
QSharedPointer< InvEcdSet > SPtr
Definition inv_ecd_set.h:67
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:68