v2.0.0
Loading...
Searching...
No Matches
mne_surface_or_volume.h File Reference

Discriminated geometry container that can represent either a triangulated surface or a discrete/volume source space. More...

#include "mne_global.h"
#include <mne/mne_types.h>
#include "mne_vol_geom.h"
#include "mne_mgh_tag_group.h"
#include "mne_triangle.h"
#include "mne_nearest.h"
#include "mne_patch_info.h"
#include <fiff/fiff_sparse_matrix.h>
#include <fiff/fiff_coord_trans.h>
#include <Eigen/Core>
#include <QSharedPointer>
#include <memory>
#include <optional>
#include <vector>
#include <QStringList>
#include <QDebug>
Include dependency graph for mne_surface_or_volume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MNELIB::MNESurfaceOrVolume
 Defines a source space or a surface. More...

Namespaces

namespace  FIFFLIB
 FIFF file I/O, in-memory data structures and high-level readers/writers.
namespace  MNELIB
 Core MNE data structures (source spaces, source estimates, hemispheres).

Macros

#define FIFFV_MNE_COORD_SURFACE_RAS   FIFFV_COORD_MRI /* The surface RAS coordinates */

Variables

constexpr auto FIFF_MNE_SOURCE_SPACE_NNEIGHBORS = 3594
constexpr auto FIFF_MNE_SOURCE_SPACE_NEIGHBORS = 3595
constexpr auto TRIANGLE_FILE_MAGIC_NUMBER = (0xfffffe)
constexpr auto NEW_QUAD_FILE_MAGIC_NUMBER = (0xfffffd)
constexpr auto QUAD_FILE_MAGIC_NUMBER = (0xffffff)
constexpr auto TAG_OLD_SURF_GEOM = 20

Detailed Description

Discriminated geometry container that can represent either a triangulated surface or a discrete/volume source space.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

MNELIB::MNESurfaceOrVolume is the direct port of the mneSurfaceOrVolumeRec / mneSourceSpaceRec structure of MNE-C and is the common base used by MNELIB::MNESourceSpace and MNELIB::MNEBemSurface. It carries the union of fields used by both flavours - vertices, triangles, normals, voxel size and lattice geometry - so a single loader can return either kind without templated machinery.

Definition in file mne_surface_or_volume.h.

Macro Definition Documentation

◆ FIFFV_MNE_COORD_SURFACE_RAS

#define FIFFV_MNE_COORD_SURFACE_RAS   FIFFV_COORD_MRI /* The surface RAS coordinates */

Definition at line 60 of file mne_surface_or_volume.h.

Variable Documentation

◆ FIFF_MNE_SOURCE_SPACE_NEIGHBORS

auto FIFF_MNE_SOURCE_SPACE_NEIGHBORS = 3595
inlineconstexpr

Definition at line 58 of file mne_surface_or_volume.h.

◆ FIFF_MNE_SOURCE_SPACE_NNEIGHBORS

auto FIFF_MNE_SOURCE_SPACE_NNEIGHBORS = 3594
inlineconstexpr

Definition at line 57 of file mne_surface_or_volume.h.

◆ NEW_QUAD_FILE_MAGIC_NUMBER

auto NEW_QUAD_FILE_MAGIC_NUMBER = (0xfffffd)
inlineconstexpr

Definition at line 63 of file mne_surface_or_volume.h.

◆ QUAD_FILE_MAGIC_NUMBER

auto QUAD_FILE_MAGIC_NUMBER = (0xffffff)
inlineconstexpr

Definition at line 64 of file mne_surface_or_volume.h.

◆ TAG_OLD_SURF_GEOM

auto TAG_OLD_SURF_GEOM = 20
inlineconstexpr

Definition at line 66 of file mne_surface_or_volume.h.

◆ TRIANGLE_FILE_MAGIC_NUMBER

auto TRIANGLE_FILE_MAGIC_NUMBER = (0xfffffe)
inlineconstexpr

Definition at line 62 of file mne_surface_or_volume.h.