light measurement info More...
#include <fiff_info_base.h>
Public Types | |
| using | SPtr = QSharedPointer<FiffInfoBase> |
| using | ConstSPtr = QSharedPointer<const FiffInfoBase> |
| using | UPtr = std::unique_ptr<FiffInfoBase> |
| using | ConstUPtr = std::unique_ptr<const FiffInfoBase> |
Public Member Functions | |
| FiffInfoBase () | |
| FiffInfoBase (const FiffInfoBase &p_FiffInfoBase) | |
| virtual | ~FiffInfoBase () |
| void | clear () |
| QString | channel_type (qint32 idx) const |
| bool | isEmpty () const |
| FiffInfoBase | pick_info (const Eigen::RowVectorXi *sel=nullptr) const |
| Eigen::RowVectorXi | pick_types (const QString meg, bool eeg=false, bool stim=false, const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList) const |
| Eigen::RowVectorXi | pick_types (bool meg, bool eeg=false, bool stim=false, const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList) const |
| void | mne_read_meg_comp_eeg_ch_info (QList< FiffChInfo > &megp, int &nmegp, QList< FiffChInfo > &meg_compp, int &nmeg_compp, QList< FiffChInfo > &eegp, int &neegp, FiffCoordTrans &meg_head_t, FiffId &idp) const |
| QStringList | get_channel_types () |
Static Public Member Functions | |
| static Eigen::RowVectorXi | pick_channels (const QStringList &ch_names, const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList) |
| static bool | readBadChannelsFromFile (const QString &name, QStringList &listOut) |
Public Attributes | |
| QString | filename |
| QStringList | bads |
| FiffId | meas_id |
| fiff_int_t | nchan |
| QList< FiffChInfo > | chs |
| QStringList | ch_names |
| FiffCoordTrans | dev_head_t |
| FiffCoordTrans | ctf_head_t |
Friends | |
| bool | operator== (const FiffInfoBase &a, const FiffInfoBase &b) |

| using FIFFLIB::FiffInfoBase::ConstSPtr = QSharedPointer<const FiffInfoBase> |
Const shared pointer type for FiffInfoBase.
Definition at line 80 of file fiff_info_base.h.
| using FIFFLIB::FiffInfoBase::ConstUPtr = std::unique_ptr<const FiffInfoBase> |
Const unique pointer type for FiffInfoBase.
Definition at line 82 of file fiff_info_base.h.
| using FIFFLIB::FiffInfoBase::SPtr = QSharedPointer<FiffInfoBase> |
Shared pointer type for FiffInfoBase.
Definition at line 79 of file fiff_info_base.h.
| using FIFFLIB::FiffInfoBase::UPtr = std::unique_ptr<FiffInfoBase> |
Unique pointer type for FiffInfoBase.
Definition at line 81 of file fiff_info_base.h.
| FiffInfoBase::FiffInfoBase | ( | ) |
Constructors the light fiff measurement file information.
Definition at line 60 of file fiff_info_base.cpp.
| FiffInfoBase::FiffInfoBase | ( | const FiffInfoBase & | p_FiffInfoBase | ) |
Copy constructor.
| [in] | p_FiffInfoBase | light FIFF measurement information which should be copied. |
Definition at line 68 of file fiff_info_base.cpp.
|
virtual |
Destroys the light fiff measurement file information.
Definition at line 82 of file fiff_info_base.cpp.
| QString FiffInfoBase::channel_type | ( | qint32 | idx | ) | const |
Get channel type.
| [in] | idx | Index of channel. |
Definition at line 88 of file fiff_info_base.cpp.
| void FiffInfoBase::clear | ( | ) |
Initializes light FIFF measurement information.
Definition at line 122 of file fiff_info_base.cpp.
| QStringList FiffInfoBase::get_channel_types | ( | ) |
Parses the channel info information and returns a string list of channel types.
Definition at line 278 of file fiff_info_base.cpp.
|
inline |
True if FIFF measurement file information is empty.
Definition at line 262 of file fiff_info_base.h.
| void FiffInfoBase::mne_read_meg_comp_eeg_ch_info | ( | QList< FiffChInfo > & | megp, |
| int & | nmegp, | ||
| QList< FiffChInfo > & | meg_compp, | ||
| int & | nmeg_compp, | ||
| QList< FiffChInfo > & | eegp, | ||
| int & | neegp, | ||
| FiffCoordTrans & | meg_head_t, | ||
| FiffId & | idp ) const |
Read MEG, compensation, and EEG channel information from this measurement info.
Classifies channels by kind (FIFFV_MEG_CH, FIFFV_REF_MEG_CH, FIFFV_EEG_CH) and returns the device-to-head transform and measurement ID.
| [out] | megp | List of MEG channel info descriptors. |
| [out] | nmegp | Number of MEG channels found. |
| [out] | meg_compp | List of MEG compensation (reference) channel info descriptors. |
| [out] | nmeg_compp | Number of compensation channels found. |
| [out] | eegp | List of EEG channel info descriptors. |
| [out] | neegp | Number of EEG channels found. |
| [out] | meg_head_t | Device-to-head coordinate transformation. |
| [out] | idp | Measurement ID. |
Definition at line 251 of file fiff_info_base.cpp.
|
static |
fiff_pick_channels
Make a selector to pick desired channels from data
| [in] | ch_names | - The channel name list to consult. |
| [in] | include | - Channels to include (if empty, include all available). |
| [in] | exclude | - Channels to exclude (if empty, do not exclude any). |
Definition at line 202 of file fiff_info_base.cpp.
| FiffInfoBase FiffInfoBase::pick_info | ( | const Eigen::RowVectorXi * | sel = nullptr | ) | const |
fiff_pick_info
Pick desired channels from measurement info
| [in] | sel | List of channels to select. |
Definition at line 228 of file fiff_info_base.cpp.
| RowVectorXi FiffInfoBase::pick_types | ( | bool | meg, |
| bool | eeg = false, | ||
| bool | stim = false, | ||
| const QStringList & | include = defaultQStringList, | ||
| const QStringList & | exclude = defaultQStringList ) const |
fiff_pick_types
Create a selector to pick desired channel types from data Use overloaded pick_types method to specify meg (grad, mag, ref_meg)type
| [in] | meg | Include MEG channels. |
| [in] | eeg | Include EEG channels. |
| [in] | stim | Include stimulus channels. |
| [in] | include | Additional channels to include (if empty, do not add any). |
| [in] | exclude | Channels to exclude (if empty, do not exclude any). |
Definition at line 192 of file fiff_info_base.cpp.
| RowVectorXi FiffInfoBase::pick_types | ( | const QString | meg, |
| bool | eeg = false, | ||
| bool | stim = false, | ||
| const QStringList & | include = defaultQStringList, | ||
| const QStringList & | exclude = defaultQStringList ) const |
fiff_pick_types (highy diversity in meg picking)
Create a selector to pick desired channel types from data
| [in] | meg | It can be "all", to select all or it can be "mag" or "grad" to select only gradiometers or magnetometers. |
| [in] | eeg | Include EEG channels. |
| [in] | stim | Include stimulus channels. |
| [in] | include | Additional channels to include (if empty, do not add any). |
| [in] | exclude | Channels to exclude (if empty, do not exclude any). |
Definition at line 136 of file fiff_info_base.cpp.
|
static |
Read bad channel names from a plain text file (one name per line, '#' comments skipped).
| [in] | name | Path to the bad channel file (empty string is a no-op). |
| [out] | listOut | The bad channel names read from the file. |
Definition at line 352 of file fiff_info_base.cpp.
|
friend |
Overloaded == operator to compare an object to this instance.
| [in] | object | The object which should be compared to. |
Definition at line 269 of file fiff_info_base.h.
| QStringList FIFFLIB::FiffInfoBase::bads |
List of bad channels.
Definition at line 249 of file fiff_info_base.h.
| QStringList FIFFLIB::FiffInfoBase::ch_names |
List of all channel names.
Definition at line 253 of file fiff_info_base.h.
| QList<FiffChInfo> FIFFLIB::FiffInfoBase::chs |
List of all channel info descriptors.
Definition at line 252 of file fiff_info_base.h.
| FiffCoordTrans FIFFLIB::FiffInfoBase::ctf_head_t |
CTF to head coordinate transformation.
Definition at line 255 of file fiff_info_base.h.
| FiffCoordTrans FIFFLIB::FiffInfoBase::dev_head_t |
Device to head coordinate transformation.
Definition at line 254 of file fiff_info_base.h.
| QString FIFFLIB::FiffInfoBase::filename |
Filename when the info is read of a fiff file.
Definition at line 248 of file fiff_info_base.h.
| FiffId FIFFLIB::FiffInfoBase::meas_id |
Measurement ID.
Definition at line 250 of file fiff_info_base.h.
| fiff_int_t FIFFLIB::FiffInfoBase::nchan |
Number of channels.
Definition at line 251 of file fiff_info_base.h.