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

String key constants for surfaces in the DISP3DLIB scene map. More...

#include "../disp3D_global.h"
#include <QLatin1String>
#include <QHash>
#include <QString>
#include <QMatrix4x4>
#include <Eigen/Core>
Include dependency graph for surfacekeys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SURFACEKEYS
 Centralised string constants for surface map keys.

Functions

QString SURFACEKEYS::sensorTypeToObjectKey (const QString &uiType)
QString SURFACEKEYS::sensorParentToKeyPrefix (const QString &parentText)
QMatrix4x4 SURFACEKEYS::toQMatrix4x4 (const Eigen::Matrix4f &m)

Variables

constexpr QLatin1String SURFACEKEYS::kLhPrefix {"lh_"}
constexpr QLatin1String SURFACEKEYS::kRhPrefix {"rh_"}
constexpr QLatin1String SURFACEKEYS::kBemPrefix {"bem_"}
constexpr QLatin1String SURFACEKEYS::kBemHead {"bem_head"}
constexpr QLatin1String SURFACEKEYS::kSensPrefix {"sens_"}
constexpr QLatin1String SURFACEKEYS::kSensMegGrad {"sens_meg_grad_"}
constexpr QLatin1String SURFACEKEYS::kSensMegMag {"sens_meg_mag_"}
constexpr QLatin1String SURFACEKEYS::kSensMeg {"sens_meg_"}
constexpr QLatin1String SURFACEKEYS::kSensEeg {"sens_eeg_"}
constexpr QLatin1String SURFACEKEYS::kSensDig {"sens_dig_"}
constexpr QLatin1String SURFACEKEYS::kHelmet {"sens_surface_meg"}
constexpr QLatin1String SURFACEKEYS::kDigPrefix {"dig_"}
constexpr QLatin1String SURFACEKEYS::kDigCardinal {"dig_cardinal"}
constexpr QLatin1String SURFACEKEYS::kDigHpi {"dig_hpi"}
constexpr QLatin1String SURFACEKEYS::kDigEeg {"dig_eeg"}
constexpr QLatin1String SURFACEKEYS::kDigExtra {"dig_extra"}
constexpr QLatin1String SURFACEKEYS::kSrcSpPrefix {"srcsp_"}
constexpr QLatin1String SURFACEKEYS::kContourMeg {"sens_contour_meg"}
constexpr QLatin1String SURFACEKEYS::kContourEeg {"sens_contour_eeg"}
constexpr QLatin1String SURFACEKEYS::kLhInflated {"lh_inflated"}
constexpr QLatin1String SURFACEKEYS::kRhInflated {"rh_inflated"}

Detailed Description

String key constants for surfaces in the DISP3DLIB scene map.

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

BrainView and the scene controllers store all renderable surfaces in a single QMap<QString, std::shared_ptr<BrainSurface>>. The keys in this namespace are the canonical identifiers used by every controller to look up, replace or remove a surface without race conditions caused by typo'd magic strings.

Keys cover the two cortical hemispheres (lh / rh on each of pial, white, inflated, smoothwm), the three BEM compartments (brain, inner-skull, outer-skull, scalp), MEG helmet / iso-contour surfaces, and a few diagnostic primitives (origin marker, orientation gizmo).

Definition in file surfacekeys.h.