Centralised string constants for surface map keys. More...
Functions | |
| QString | sensorTypeToObjectKey (const QString &uiType) |
| QString | sensorParentToKeyPrefix (const QString &parentText) |
| QMatrix4x4 | toQMatrix4x4 (const Eigen::Matrix4f &m) |
Variables | |
| constexpr QLatin1String | kLhPrefix {"lh_"} |
| constexpr QLatin1String | kRhPrefix {"rh_"} |
| constexpr QLatin1String | kBemPrefix {"bem_"} |
| constexpr QLatin1String | kBemHead {"bem_head"} |
| constexpr QLatin1String | kSensPrefix {"sens_"} |
| constexpr QLatin1String | kSensMegGrad {"sens_meg_grad_"} |
| constexpr QLatin1String | kSensMegMag {"sens_meg_mag_"} |
| constexpr QLatin1String | kSensMeg {"sens_meg_"} |
| constexpr QLatin1String | kSensEeg {"sens_eeg_"} |
| constexpr QLatin1String | kSensDig {"sens_dig_"} |
| constexpr QLatin1String | kHelmet {"sens_surface_meg"} |
| constexpr QLatin1String | kDigPrefix {"dig_"} |
| constexpr QLatin1String | kDigCardinal {"dig_cardinal"} |
| constexpr QLatin1String | kDigHpi {"dig_hpi"} |
| constexpr QLatin1String | kDigEeg {"dig_eeg"} |
| constexpr QLatin1String | kDigExtra {"dig_extra"} |
| constexpr QLatin1String | kSrcSpPrefix {"srcsp_"} |
| constexpr QLatin1String | kContourMeg {"sens_contour_meg"} |
| constexpr QLatin1String | kContourEeg {"sens_contour_eeg"} |
| constexpr QLatin1String | kLhInflated {"lh_inflated"} |
| constexpr QLatin1String | kRhInflated {"rh_inflated"} |
Centralised string constants for surface map keys.
Every surface stored in BrainView's m_surfaces map is identified by a string key formed from one of these prefixes plus an object-specific suffix. Using these constants instead of raw string literals ensures consistency and enables compile-time typo detection.
|
inline |
Map a parent-item display text (e.g. "MEG/Grad") to the surface-map key prefix used when registering individual sensor surfaces.
| [in] | parentText | Text from the parent QStandardItem. |
Definition at line 132 of file surfacekeys.h.
|
inline |
Map from user-facing sensor type name (e.g. "MEG/Grad") to the visibility-profile object key (e.g. "sens_meg_grad").
The map is built once on first call and cached.
| [in] | uiType | UI-facing type string. |
Definition at line 107 of file surfacekeys.h.
|
inline |
Convert an Eigen 4x4 matrix to a QMatrix4x4.
This eliminates the duplicated nested for-loop that appears throughout the codebase.
| [in] | m | Eigen 4x4 float matrix. |
Definition at line 152 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 68 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 67 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 91 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 90 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 81 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 83 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 84 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 82 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 80 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 77 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 94 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 63 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 95 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 64 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 76 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 75 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 74 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 72 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 73 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 71 of file surfacekeys.h.
|
inlineconstexpr |
Definition at line 87 of file surfacekeys.h.