v2.0.0
Loading...
Searching...
No Matches
FIFFLIB::FiffInfoBase Class Reference

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< FiffChInfochs
QStringList ch_names
FiffCoordTrans dev_head_t
FiffCoordTrans ctf_head_t

Friends

bool operator== (const FiffInfoBase &a, const FiffInfoBase &b)

Detailed Description

light measurement info

Light measurement info

Definition at line 75 of file fiff_info_base.h.

Inheritance diagram for FIFFLIB::FiffInfoBase:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

using FIFFLIB::FiffInfoBase::ConstSPtr = QSharedPointer<const FiffInfoBase>

Const shared pointer type for FiffInfoBase.

Definition at line 80 of file fiff_info_base.h.

◆ ConstUPtr

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.

◆ SPtr

using FIFFLIB::FiffInfoBase::SPtr = QSharedPointer<FiffInfoBase>

Shared pointer type for FiffInfoBase.

Definition at line 79 of file fiff_info_base.h.

◆ UPtr

using FIFFLIB::FiffInfoBase::UPtr = std::unique_ptr<FiffInfoBase>

Unique pointer type for FiffInfoBase.

Definition at line 81 of file fiff_info_base.h.

Constructor & Destructor Documentation

◆ FiffInfoBase() [1/2]

FiffInfoBase::FiffInfoBase ( )

Constructors the light fiff measurement file information.

Definition at line 60 of file fiff_info_base.cpp.

◆ FiffInfoBase() [2/2]

FiffInfoBase::FiffInfoBase ( const FiffInfoBase & p_FiffInfoBase)

Copy constructor.

Parameters
[in]p_FiffInfoBaselight FIFF measurement information which should be copied.

Definition at line 68 of file fiff_info_base.cpp.

◆ ~FiffInfoBase()

FiffInfoBase::~FiffInfoBase ( )
virtual

Destroys the light fiff measurement file information.

Definition at line 82 of file fiff_info_base.cpp.

Member Function Documentation

◆ channel_type()

QString FiffInfoBase::channel_type ( qint32 idx) const

Get channel type.

Parameters
[in]idxIndex of channel.
Returns
Type of channel ('grad', 'mag', 'eeg', 'stim', 'eog', 'emg', 'ecg').

Definition at line 88 of file fiff_info_base.cpp.

◆ clear()

void FiffInfoBase::clear ( )

Initializes light FIFF measurement information.

Definition at line 122 of file fiff_info_base.cpp.

◆ get_channel_types()

QStringList FiffInfoBase::get_channel_types ( )

Parses the channel info information and returns a string list of channel types.

Returns
The channel types present in this fiff info (grad,mag,eeg,ecg,emg,misc,stim).

Definition at line 278 of file fiff_info_base.cpp.

◆ isEmpty()

bool FIFFLIB::FiffInfoBase::isEmpty ( ) const
inline

True if FIFF measurement file information is empty.

Returns
true if FIFF measurement file information is empty.

Definition at line 262 of file fiff_info_base.h.

◆ mne_read_meg_comp_eeg_ch_info()

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.

Parameters
[out]megpList of MEG channel info descriptors.
[out]nmegpNumber of MEG channels found.
[out]meg_comppList of MEG compensation (reference) channel info descriptors.
[out]nmeg_comppNumber of compensation channels found.
[out]eegpList of EEG channel info descriptors.
[out]neegpNumber of EEG channels found.
[out]meg_head_tDevice-to-head coordinate transformation.
[out]idpMeasurement ID.

Definition at line 251 of file fiff_info_base.cpp.

◆ pick_channels()

RowVectorXi FiffInfoBase::pick_channels ( const QStringList & ch_names,
const QStringList & include = defaultQStringList,
const QStringList & exclude = defaultQStringList )
static

fiff_pick_channels

Make a selector to pick desired channels from data

Parameters
[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).
Returns
the selector matrix (row Vector).

Definition at line 202 of file fiff_info_base.cpp.

◆ pick_info()

FiffInfoBase FiffInfoBase::pick_info ( const Eigen::RowVectorXi * sel = nullptr) const

fiff_pick_info

Pick desired channels from measurement info

Parameters
[in]selList of channels to select.
Returns
Info modified according to sel.

Definition at line 228 of file fiff_info_base.cpp.

◆ pick_types() [1/2]

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

Parameters
[in]megInclude MEG channels.
[in]eegInclude EEG channels.
[in]stimInclude stimulus channels.
[in]includeAdditional channels to include (if empty, do not add any).
[in]excludeChannels to exclude (if empty, do not exclude any).
Returns
the selector matrix (row vector).

Definition at line 192 of file fiff_info_base.cpp.

◆ pick_types() [2/2]

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

Parameters
[in]megIt can be "all", to select all or it can be "mag" or "grad" to select only gradiometers or magnetometers.
[in]eegInclude EEG channels.
[in]stimInclude stimulus channels.
[in]includeAdditional channels to include (if empty, do not add any).
[in]excludeChannels to exclude (if empty, do not exclude any).
Returns
the selector matrix (row vector).

Definition at line 136 of file fiff_info_base.cpp.

◆ readBadChannelsFromFile()

bool FiffInfoBase::readBadChannelsFromFile ( const QString & name,
QStringList & listOut )
static

Read bad channel names from a plain text file (one name per line, '#' comments skipped).

Parameters
[in]namePath to the bad channel file (empty string is a no-op).
[out]listOutThe bad channel names read from the file.
Returns
true on success, false on error.

Definition at line 352 of file fiff_info_base.cpp.

◆ operator==

bool operator== ( const FiffInfoBase & a,
const FiffInfoBase & b )
friend

Overloaded == operator to compare an object to this instance.

Parameters
[in]objectThe object which should be compared to.
Returns
true if equal, false otherwise.

Definition at line 269 of file fiff_info_base.h.

Member Data Documentation

◆ bads

QStringList FIFFLIB::FiffInfoBase::bads

List of bad channels.

Definition at line 249 of file fiff_info_base.h.

◆ ch_names

QStringList FIFFLIB::FiffInfoBase::ch_names

List of all channel names.

Definition at line 253 of file fiff_info_base.h.

◆ chs

QList<FiffChInfo> FIFFLIB::FiffInfoBase::chs

List of all channel info descriptors.

Definition at line 252 of file fiff_info_base.h.

◆ ctf_head_t

FiffCoordTrans FIFFLIB::FiffInfoBase::ctf_head_t

CTF to head coordinate transformation.

Definition at line 255 of file fiff_info_base.h.

◆ dev_head_t

FiffCoordTrans FIFFLIB::FiffInfoBase::dev_head_t

Device to head coordinate transformation.

Definition at line 254 of file fiff_info_base.h.

◆ filename

QString FIFFLIB::FiffInfoBase::filename

Filename when the info is read of a fiff file.

Definition at line 248 of file fiff_info_base.h.

◆ meas_id

FiffId FIFFLIB::FiffInfoBase::meas_id

Measurement ID.

Definition at line 250 of file fiff_info_base.h.

◆ nchan

fiff_int_t FIFFLIB::FiffInfoBase::nchan

Number of channels.

Definition at line 251 of file fiff_info_base.h.


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