Container of FwdCoil instances acting both as the in-memory image of the coil_def.dat template database and as a per-channel sensor array in a chosen coordinate frame (device / head / MRI).
More...
#include <fwd_coil_set.h>
Public Types | |
| typedef QSharedPointer< FwdCoilSet > | SPtr |
| typedef QSharedPointer< const FwdCoilSet > | ConstSPtr |
| typedef std::unique_ptr< FwdCoilSet > | UPtr |
Public Member Functions | |
| FwdCoilSet () | |
| ~FwdCoilSet () | |
| FwdCoil::UPtr | create_meg_coil (const FIFFLIB::FiffChInfo &ch, int acc, const FIFFLIB::FiffCoordTrans &t=FIFFLIB::FiffCoordTrans()) |
| FwdCoilSet::UPtr | create_meg_coils (const QList< FIFFLIB::FiffChInfo > &chs, int nch, int acc, const FIFFLIB::FiffCoordTrans &t=FIFFLIB::FiffCoordTrans()) |
| FwdCoilSet::UPtr | dup_coil_set (const FIFFLIB::FiffCoordTrans &t=FIFFLIB::FiffCoordTrans()) const |
| bool | is_planar_coil_type (int type) const |
| bool | is_axial_coil_type (int type) const |
| bool | is_magnetometer_coil_type (int type) const |
| bool | is_eeg_electrode_type (int type) const |
| int | ncoil () const |
Static Public Member Functions | |
| static FwdCoilSet::UPtr | create_eeg_els (const QList< FIFFLIB::FiffChInfo > &chs, int nch, const FIFFLIB::FiffCoordTrans &t=FIFFLIB::FiffCoordTrans()) |
| static FwdCoilSet::UPtr | read_coil_defs (const QString &name) |
Public Attributes | |
| std::vector< FwdCoil::UPtr > | coils |
| int | coord_frame |
| std::unique_ptr< FwdBemSolution > | user_data |
Container of FwdCoil instances acting both as the in-memory image of the coil_def.dat template database and as a per-channel sensor array in a chosen coordinate frame (device / head / MRI).
Implements FwdCoilSet (replaces fwdCoilSet / fwdCoilSetRec from MNE-C fwd_types.h).
Definition at line 69 of file fwd_coil_set.h.
| typedef QSharedPointer<const FwdCoilSet> FWDLIB::FwdCoilSet::ConstSPtr |
Const shared pointer type for FwdCoilSet.
Definition at line 73 of file fwd_coil_set.h.
| typedef QSharedPointer<FwdCoilSet> FWDLIB::FwdCoilSet::SPtr |
Shared pointer type for FwdCoilSet.
Definition at line 72 of file fwd_coil_set.h.
| typedef std::unique_ptr<FwdCoilSet> FWDLIB::FwdCoilSet::UPtr |
Unique pointer type for FwdCoilSet.
Definition at line 74 of file fwd_coil_set.h.
| FwdCoilSet::FwdCoilSet | ( | ) |
Constructs the Forward Coil Set description
Definition at line 115 of file fwd_coil_set.cpp.
| FwdCoilSet::~FwdCoilSet | ( | ) |
Destroys the Forward Coil Set description
Definition at line 122 of file fwd_coil_set.cpp.
|
static |
Create a EEG coil set definition using a channel information Change the coordinate frame if so desired
| [in] | ch | Channel information to use. |
| [in] | nch | Number of channels. |
| [in] | t | Transform the points using this. |
Definition at line 209 of file fwd_coil_set.cpp.
| FwdCoil::UPtr FwdCoilSet::create_meg_coil | ( | const FIFFLIB::FiffChInfo & | ch, |
| int | acc, | ||
| const FIFFLIB::FiffCoordTrans & | t = FIFFLIB::FiffCoordTrans() ) |
Create a MEG coil definition using a database of templates Change the coordinate frame if so desired
| [in] | ch | Channel information to use. |
| [in] | acc | Required accuracy. |
| [in] | t | Transform the points using this. |
Definition at line 128 of file fwd_coil_set.cpp.
| FwdCoilSet::UPtr FwdCoilSet::create_meg_coils | ( | const QList< FIFFLIB::FiffChInfo > & | chs, |
| int | nch, | ||
| int | acc, | ||
| const FIFFLIB::FiffCoordTrans & | t = FIFFLIB::FiffCoordTrans() ) |
Create a MEG coil set definition using a database of templates Change the coordinate frame if so desired
| [in] | ch | Channel information to use. |
| [in] | nch | Number of channels. |
| [in] | acc | Required accuracy. |
| [in] | t | Transform the points using this. |
Definition at line 189 of file fwd_coil_set.cpp.
| FwdCoilSet::UPtr FwdCoilSet::dup_coil_set | ( | const FIFFLIB::FiffCoordTrans & | t = FIFFLIB::FiffCoordTrans() | ) | const |
Make a coil set duplicate
| [in] | t | Transformation which should be applied to the duplicate. |
Definition at line 313 of file fwd_coil_set.cpp.
| bool FwdCoilSet::is_axial_coil_type | ( | int | type | ) | const |
Checks if a set of templates contains an axial coil of a specified type.
| [in] | type | This is the coil type we are interested in. |
Definition at line 367 of file fwd_coil_set.cpp.
| bool FwdCoilSet::is_eeg_electrode_type | ( | int | type | ) | const |
Checks if a set of templates contains an EEG electrode of a specified type.
| [in] | type | This is the coil type we are interested in. |
Definition at line 393 of file fwd_coil_set.cpp.
| bool FwdCoilSet::is_magnetometer_coil_type | ( | int | type | ) | const |
Checks if a set of templates contains a magnetometer of a specified type.
| [in] | type | This is the coil type we are interested in. |
Definition at line 381 of file fwd_coil_set.cpp.
| bool FwdCoilSet::is_planar_coil_type | ( | int | type | ) | const |
Checks if a set of templates contains a planar coil of a specified type.
| [in] | type | This is the coil type we are interested in. |
Definition at line 355 of file fwd_coil_set.cpp.
|
inline |
Number of coils (convenience accessor).
Definition at line 216 of file fwd_coil_set.h.
|
static |
Read a coil definitions from file
| [in] | name | File name to read from. |
Definition at line 228 of file fwd_coil_set.cpp.
| std::vector<FwdCoil::UPtr> FWDLIB::FwdCoilSet::coils |
The coil or electrode positions.
Definition at line 211 of file fwd_coil_set.h.
| int FWDLIB::FwdCoilSet::coord_frame |
Common coordinate frame.
Definition at line 212 of file fwd_coil_set.h.
| std::unique_ptr<FwdBemSolution> FWDLIB::FwdCoilSet::user_data |
Coil-specific BEM solution.
Definition at line 213 of file fwd_coil_set.h.