Per-channel FIFF descriptor: identifiers, kind, calibration, coil type, channel-frame coil position and SI unit. More...
#include <fiff_ch_info.h>
Public Types | |
| using | SPtr = QSharedPointer<FiffChInfo> |
| using | ConstSPtr = QSharedPointer<const FiffChInfo> |
| using | UPtr = std::unique_ptr<FiffChInfo> |
| using | ConstUPtr = std::unique_ptr<const FiffChInfo> |
Public Member Functions | |
| FiffChInfo () | |
| FiffChInfo (const FiffChInfo &p_FiffChInfo) | |
| FiffChInfo & | operator= (const FiffChInfo &other)=default |
| ~FiffChInfo () | |
| bool | isValidEeg () const |
Static Public Member Functions | |
| static qint32 | storageSize () |
| static bool | checkEegLocations (const QList< FiffChInfo > &chs, int nch) |
Public Attributes | |
| fiff_int_t | scanNo |
| fiff_int_t | logNo |
| fiff_int_t | kind |
| fiff_float_t | range |
| fiff_float_t | cal |
| FiffChPos | chpos |
| fiff_int_t | unit |
| fiff_int_t | unit_mul |
| QString | ch_name |
| Eigen::Matrix< float, 4, 4, Eigen::DontAlign > | coil_trans |
| Eigen::Matrix< float, 3, 2, Eigen::DontAlign > | eeg_loc |
| fiff_int_t | coord_frame |
Friends | |
| bool | operator== (const FiffChInfo &a, const FiffChInfo &b) |
Per-channel FIFF descriptor: identifiers, kind, calibration, coil type, channel-frame coil position and SI unit.
Holds the exact field set of the on-disk fiffChInfoRec: scanno, logno, kind, range, cal, coil_type, the embedded FiffChPos coil location, unit and unit_mul. The ch_name string lives next to the record because the FIFF stream stores it as a separate FIFF_CH_NAME tag in modern files.
Definition at line 77 of file fiff_ch_info.h.
| using FIFFLIB::FiffChInfo::ConstSPtr = QSharedPointer<const FiffChInfo> |
Const shared pointer type for FiffChInfo.
Definition at line 81 of file fiff_ch_info.h.
| using FIFFLIB::FiffChInfo::ConstUPtr = std::unique_ptr<const FiffChInfo> |
Const unique pointer type for FiffChInfo.
Definition at line 83 of file fiff_ch_info.h.
| using FIFFLIB::FiffChInfo::SPtr = QSharedPointer<FiffChInfo> |
Shared pointer type for FiffChInfo.
Definition at line 80 of file fiff_ch_info.h.
| using FIFFLIB::FiffChInfo::UPtr = std::unique_ptr<FiffChInfo> |
Unique pointer type for FiffChInfo.
Definition at line 82 of file fiff_ch_info.h.
| FiffChInfo::FiffChInfo | ( | ) |
Constructs the channel info descriptor.
Definition at line 38 of file fiff_ch_info.cpp.
| FiffChInfo::FiffChInfo | ( | const FiffChInfo & | p_FiffChInfo | ) |
Copy constructor.
| [in] | p_FiffChInfo | Channel Info descriptor which should be copied. |
Definition at line 57 of file fiff_ch_info.cpp.
| FiffChInfo::~FiffChInfo | ( | ) |
Destroys the channel info descriptor.
Definition at line 75 of file fiff_ch_info.cpp.
|
static |
Check that all EEG channels in the list have reasonable (non-origin) locations. Formerly mne_check_chinfo (MNE C).
| [in] | chs | The list of channel info structures to check. |
| [in] | nch | The number of channels to check. |
Definition at line 81 of file fiff_ch_info.cpp.
| bool FiffChInfo::isValidEeg | ( | ) | const |
Check whether this channel has a valid EEG electrode position.
A channel is a valid EEG channel if its kind is FIFFV_EEG_CH, its electrode position is not at the origin, and its coil type is not FIFFV_COIL_NONE.
Definition at line 97 of file fiff_ch_info.cpp.
|
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.
| [in] | other | Object to assign from. |
|
inlinestatic |
Size of the old struct (fiffChInfoRec) 20*int + 16 = 20*4 + 16 = 96
Definition at line 180 of file fiff_ch_info.h.
|
friend |
Overloaded == operator to compare an object to this instance.
| [in] | a | The object which should be compared to. |
| [in] | b | Right-hand channel info. |
Definition at line 189 of file fiff_ch_info.h.
| fiff_float_t FIFFLIB::FiffChInfo::cal |
Calibration from volts to units used.
Definition at line 164 of file fiff_ch_info.h.
| QString FIFFLIB::FiffChInfo::ch_name |
Descriptive name for the channel.
Definition at line 168 of file fiff_ch_info.h.
| FiffChPos FIFFLIB::FiffChInfo::chpos |
Channel location.
Definition at line 165 of file fiff_ch_info.h.
| Eigen::Matrix<float, 4, 4, Eigen::DontAlign> FIFFLIB::FiffChInfo::coil_trans |
Coil coordinate system transformation.
Definition at line 171 of file fiff_ch_info.h.
| fiff_int_t FIFFLIB::FiffChInfo::coord_frame |
Coordinate Frame.
Definition at line 173 of file fiff_ch_info.h.
| Eigen::Matrix<float, 3, 2, Eigen::DontAlign> FIFFLIB::FiffChInfo::eeg_loc |
Channel location.
Definition at line 172 of file fiff_ch_info.h.
| fiff_int_t FIFFLIB::FiffChInfo::kind |
Kind of channel.
Definition at line 162 of file fiff_ch_info.h.
| fiff_int_t FIFFLIB::FiffChInfo::logNo |
Logical channel #.
Definition at line 161 of file fiff_ch_info.h.
| fiff_float_t FIFFLIB::FiffChInfo::range |
Voltmeter range (-1 = auto ranging).
Definition at line 163 of file fiff_ch_info.h.
| fiff_int_t FIFFLIB::FiffChInfo::scanNo |
Scanning order number.
Definition at line 160 of file fiff_ch_info.h.
| fiff_int_t FIFFLIB::FiffChInfo::unit |
Unit of measurement.
Definition at line 166 of file fiff_ch_info.h.
| fiff_int_t FIFFLIB::FiffChInfo::unit_mul |
Unit multiplier exponent.
Definition at line 167 of file fiff_ch_info.h.