v2.0.0
Loading...
Searching...
No Matches
mne_types.h
Go to the documentation of this file.
1//=============================================================================================================
20
21#ifndef _mne_types_h
22#define _mne_types_h
23
24//=============================================================================================================
25// INCLUDES
26//=============================================================================================================
27
28#include <fiff/fiff_types.h>
29#include <fiff/fiff_stream.h>
31
32#include "mne_sss_data.h"
33#include "mne_named_matrix.h"
35#include "mne_named_vector.h"
36#include "mne_deriv_set.h"
37#include "mne_proj_item.h"
38#include "mne_proj_op.h"
39#include "mne_cov_matrix.h"
40#include "mne_ctf_comp_data.h"
42#include "mne_layout_port.h"
43#include "mne_layout.h"
44#include "mne_ch_selection.h"
45#include "mne_event.h"
46#include "mne_event_list.h"
47#include "mne_filter_def.h"
48
49#include <QStringList>
50
51//=============================================================================================================
52// DEFINE NAMESPACE MNELIB
53//=============================================================================================================
54
55namespace MNELIB
56{
57
58//=============================================================================================================
59// TYPEDEFS
60//=============================================================================================================
61
69typedef void (*mneUserFreeFunc)(void*);
70
71//=============================================================================================================
72// SOURCE-SPACE TYPE CONSTANTS
73//=============================================================================================================
74
80inline constexpr auto MNE_SOURCE_SPACE_UNKNOWN = -1;
81inline constexpr auto MNE_SOURCE_SPACE_SURFACE = 1;
82inline constexpr auto MNE_SOURCE_SPACE_VOLUME = 2;
83inline constexpr auto MNE_SOURCE_SPACE_DISCRETE = 3;
85
86//=============================================================================================================
87// CHANNEL-SELECTION KIND CONSTANTS
88//=============================================================================================================
89
95inline constexpr auto MNE_CH_SELECTION_UNKNOWN = 0;
96inline constexpr auto MNE_CH_SELECTION_FILE = 1;
97inline constexpr auto MNE_CH_SELECTION_USER = 2;
99
100//=============================================================================================================
101// CTF / 4D COMPENSATION CONSTANTS
102//=============================================================================================================
103
109inline constexpr auto MNE_CTFV_NOGRAD = 0;
110inline constexpr auto MNE_CTFV_GRAD1 = 1;
111inline constexpr auto MNE_CTFV_GRAD2 = 2;
112inline constexpr auto MNE_CTFV_GRAD3 = 3;
114
119inline constexpr auto MNE_CTFV_COMP_UNKNOWN = -1;
120inline constexpr auto MNE_CTFV_COMP_NONE = 0;
121inline constexpr auto MNE_CTFV_COMP_G1BR = 0x47314252;
122inline constexpr auto MNE_CTFV_COMP_G2BR = 0x47324252;
123inline constexpr auto MNE_CTFV_COMP_G3BR = 0x47334252;
124inline constexpr auto MNE_CTFV_COMP_G2OI = 0x47324f49;
125inline constexpr auto MNE_CTFV_COMP_G3OI = 0x47334f49;
127
132inline constexpr auto MNE_4DV_COMP1 = 101;
134
135//=============================================================================================================
136// TRIGGER AND ENVIRONMENT DEFAULTS
137//=============================================================================================================
138
140#define MNE_DEFAULT_TRIGGER_CH "STI 014"
141
143#define MNE_ENV_TRIGGER_CH "MNE_TRIGGER_CH_NAME"
144
146#define MNE_ENV_ROOT "MNE_ROOT"
147
148} // namespace MNELIB
149
150#endif // _mne_types_h
FIFF binary tag-stream layer: wraps a QIODevice to read and write FIFF tags, directories,...
FIFF sparse matrix: column / row-compressed sparse storage backed by Eigen::SparseMatrix.
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
Sparse variant of MNELIB::MNENamedMatrix, i.e. a sparse matrix with row and column name lists.
One viewport of an MNELIB::MNELayout, i.e. a box in layout coordinates and the channels drawn in it.
Set of CTF compensation matrices plus the currently active grade.
Row/column-labelled dense matrix used wherever FIFF stores per-channel data.
2-D plotter layout read from an MNE-C .lout file: viewports, channel matching and zoom.
Named subset of channels (e.g. "Left-temporal") loaded from an MNE .sel file.
Set of channel derivations (montages): MNE-C derivation files, text definitions and matching to recor...
Single recorded event (sample, previous and new trigger code, comment).
Event list with comments: MNE-C text and FIFF event files, sorting, merging and selection.
Single SSP projection vector with kind/active flag and channel labels.
Composite SSP projection operator P = I - U U^T assembled from a list of MNELIB::MNEProjItem.
Single CTF reference-sensor compensation matrix labelled by kind.
Lightweight filter specification (kind, cutoff frequencies, length).
Signal Space Separation (Maxwell filter) basis metadata stored alongside MEG raw data.
Legacy MNE-C noise covariance container preserved for cross-toolchain compatibility.
Named one-dimensional counterpart of MNELIB::MNENamedMatrix.
Core MNE data structures (source spaces, source estimates, hemispheres).
constexpr auto MNE_SOURCE_SPACE_DISCRETE
Definition mne_types.h:83
void(* mneUserFreeFunc)(void *)
Generic destructor callback for user-attached data.
Definition mne_types.h:69
constexpr auto MNE_CTFV_COMP_G2BR
Definition mne_types.h:122
constexpr auto MNE_CH_SELECTION_UNKNOWN
Definition mne_types.h:95
constexpr auto MNE_CTFV_NOGRAD
Definition mne_types.h:109
constexpr auto MNE_CH_SELECTION_USER
Definition mne_types.h:97
constexpr auto MNE_CTFV_COMP_G2OI
Definition mne_types.h:124
constexpr auto MNE_CTFV_GRAD2
Definition mne_types.h:111
constexpr auto MNE_CTFV_COMP_NONE
Definition mne_types.h:120
constexpr auto MNE_SOURCE_SPACE_VOLUME
Definition mne_types.h:82
constexpr auto MNE_CTFV_COMP_G3OI
Definition mne_types.h:125
constexpr auto MNE_SOURCE_SPACE_UNKNOWN
Definition mne_types.h:80
constexpr auto MNE_CH_SELECTION_FILE
Definition mne_types.h:96
constexpr auto MNE_4DV_COMP1
Definition mne_types.h:132
constexpr auto MNE_CTFV_COMP_G1BR
Definition mne_types.h:121
constexpr auto MNE_CTFV_GRAD3
Definition mne_types.h:112
constexpr auto MNE_CTFV_COMP_G3BR
Definition mne_types.h:123
constexpr auto MNE_CTFV_COMP_UNKNOWN
Definition mne_types.h:119
constexpr auto MNE_CTFV_GRAD1
Definition mne_types.h:110
constexpr auto MNE_SOURCE_SPACE_SURFACE
Definition mne_types.h:81