v2.0.0
Loading...
Searching...
No Matches
INVLIB::InvEcdSet Class Reference

Holds a set of Electric Current Dipoles. More...

#include <inv_ecd_set.h>

Public Types

typedef QSharedPointer< InvEcdSet > SPtr
typedef QSharedPointer< const InvEcdSet > ConstSPtr

Public Member Functions

 InvEcdSet ()
 InvEcdSet (const InvEcdSet &p_ECDSet)
InvEcdSet & operator= (const InvEcdSet &other)=default
 ~InvEcdSet ()
void addEcd (const InvEcd &p_ecd)
bool save_dipoles_bdip (const QString &fileName)
bool save_dipoles_dip (const QString &fileName) const
qint32 size () const
const InvEcd & operator[] (int idx) const
InvEcd & operator[] (int idx)
InvEcdSet & operator<< (const InvEcd &p_ecd)

Static Public Member Functions

static InvEcdSet read_dipoles_dip (const QString &fileName)

Public Attributes

QString dataname

Detailed Description

Holds a set of Electric Current Dipoles.

Implements Electric Current Dipole Set (Replaces *ecdSet,ecdSetRec struct of MNE-C fit_types.h).

Definition at line 66 of file inv_ecd_set.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const InvEcdSet> INVLIB::InvEcdSet::ConstSPtr

Const shared pointer type for InvEcdSet.

Definition at line 70 of file inv_ecd_set.h.

◆ SPtr

typedef QSharedPointer<InvEcdSet> INVLIB::InvEcdSet::SPtr

Shared pointer type for InvEcdSet.

Definition at line 69 of file inv_ecd_set.h.

Constructor & Destructor Documentation

◆ InvEcdSet() [1/2]

InvEcdSet::InvEcdSet ( )

Constructs a Electric Current Dipole Set object.

Definition at line 88 of file inv_ecd_set.cpp.

◆ InvEcdSet() [2/2]

InvEcdSet::InvEcdSet ( const InvEcdSet & p_ECDSet)

Copy constructor.

Parameters
[in]p_ECDSetElectric Current Dipole Set which should be copied.

Definition at line 94 of file inv_ecd_set.cpp.

◆ ~InvEcdSet()

InvEcdSet::~InvEcdSet ( )

Destroys the Electric Current Dipole description

Definition at line 102 of file inv_ecd_set.cpp.

Member Function Documentation

◆ addEcd()

void InvEcdSet::addEcd ( const InvEcd & p_ecd)

Appends an Electric Current Dipole to the set

Parameters
[in]p_ecdDipole to append (copied).

Definition at line 108 of file inv_ecd_set.cpp.

◆ operator<<()

InvEcdSet & InvEcdSet::operator<< ( const InvEcd & p_ecd)

Subscript operator << to add a new InvEcd

Parameters
[in]p_ecdInvEcd to be added.
Returns
InvEcdSet.

Definition at line 271 of file inv_ecd_set.cpp.

◆ operator=()

InvEcdSet & INVLIB::InvEcdSet::operator= ( const InvEcdSet & other)
default

Copy assignment. Every member has value semantics, so the compiler-generated member-wise assignment is correct. It is declared explicitly because declaring a copy constructor and/or a destructor deprecates the implicitly generated one.

Parameters
[in]otherObject to assign from.
Returns
reference to this object.

◆ operator[]() [1/2]

InvEcd & InvEcdSet::operator[] ( int idx)

Subscript operator [] to access InvEcd by index

Parameters
[in]idxthe InvEcd index.
Returns
InvEcd related to the parameter index.

Definition at line 260 of file inv_ecd_set.cpp.

◆ operator[]() [2/2]

const InvEcd & InvEcdSet::operator[] ( int idx) const

Subscript operator [] to access InvEcd by index

Parameters
[in]idxthe InvEcd index.
Returns
InvEcd related to the parameter index.

Definition at line 249 of file inv_ecd_set.cpp.

◆ read_dipoles_dip()

InvEcdSet InvEcdSet::read_dipoles_dip ( const QString & fileName)
static

Read dipoles from the dip format compatible with mrilab

Parameters
[in]fileNameFile name to read from.
Returns
The dipole set read from the file; empty if the file could not be read.

Definition at line 115 of file inv_ecd_set.cpp.

◆ save_dipoles_bdip()

bool InvEcdSet::save_dipoles_bdip ( const QString & fileName)

Save dipoles in the bdip format employed by xfit

Parameters
[in]fileNameFile name to save to.
Returns
True on success or if there is nothing to save, false if the file could not be written.

Definition at line 154 of file inv_ecd_set.cpp.

◆ save_dipoles_dip()

bool InvEcdSet::save_dipoles_dip ( const QString & fileName) const

Save dipoles in the dip format suitable for mrilab

Parameters
[in]fileNameFile name to save to.
Returns
True on success or if there is nothing to save, false if the file could not be written.

Definition at line 206 of file inv_ecd_set.cpp.

◆ size()

qint32 INVLIB::InvEcdSet::size ( ) const
inline

Returns the number of stored ECDs

Returns
number of stored ECDs.

Definition at line 192 of file inv_ecd_set.h.

Member Data Documentation

◆ dataname

QString INVLIB::InvEcdSet::dataname

The associated data file.

Definition at line 182 of file inv_ecd_set.h.


The documentation for this class was generated from the following files: