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 FIFF_MNE_SOURCE_SPACE_NNEIGHBORS   3594 /* Number of neighbors for each source space point (used for volume source spaces) */
#define FIFF_MNE_SOURCE_SPACE_NEIGHBORS   3595 /* Neighbors for each source space point (used for volume source spaces) */
#define FIFFV_MNE_COORD_SURFACE_RAS   FIFFV_COORD_MRI /* The surface RAS coordinates */
#define TRIANGLE_FILE_MAGIC_NUMBER   (0xfffffe)
#define NEW_QUAD_FILE_MAGIC_NUMBER   (0xfffffd)
#define QUAD_FILE_MAGIC_NUMBER   (0xffffff)
#define 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 MNESourceSpace and 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

◆ FIFF_MNE_SOURCE_SPACE_NEIGHBORS

#define FIFF_MNE_SOURCE_SPACE_NEIGHBORS   3595 /* Neighbors for each source space point (used for volume source spaces) */

Definition at line 58 of file mne_surface_or_volume.h.

◆ FIFF_MNE_SOURCE_SPACE_NNEIGHBORS

#define FIFF_MNE_SOURCE_SPACE_NNEIGHBORS   3594 /* Number of neighbors for each source space point (used for volume source spaces) */

Definition at line 57 of file mne_surface_or_volume.h.

◆ 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.

◆ NEW_QUAD_FILE_MAGIC_NUMBER

#define NEW_QUAD_FILE_MAGIC_NUMBER   (0xfffffd)

Definition at line 63 of file mne_surface_or_volume.h.

◆ QUAD_FILE_MAGIC_NUMBER

#define QUAD_FILE_MAGIC_NUMBER   (0xffffff)

Definition at line 64 of file mne_surface_or_volume.h.

◆ TAG_OLD_SURF_GEOM

#define TAG_OLD_SURF_GEOM   20

Definition at line 66 of file mne_surface_or_volume.h.

◆ TRIANGLE_FILE_MAGIC_NUMBER

#define TRIANGLE_FILE_MAGIC_NUMBER   (0xfffffe)

Definition at line 62 of file mne_surface_or_volume.h.