Uniform payload for object-id picking across the multimodal scene. More...
#include <pickresult.h>
Public Attributes | |
| PickKind | kind = PickKind::None |
| QVector3D | world |
| qint64 | objectId = -1 |
| QString | label |
| float | value = std::numeric_limits<float>::quiet_NaN() |
| QString | sourceId |
| int | hemisphere = -1 |
| QVector3D | voxel |
| int | sliceOrientation = -1 |
| int | timeSample = -1 |
| QVariantMap | extras |
Uniform payload for object-id picking across the multimodal scene.
Producers fill in only the fields relevant to their kind. Consumers (Pick dock, status bar, MRI ortho viewer, time-course panel) read the generic fields (kind, world, objectId, label, value) plus any kind-specific fields they understand.
Definition at line 69 of file pickresult.h.
| QVariantMap DISP3DLIB::PickResult::extras |
Catch-all for renderable-specific extras (shaft name, atlas region, dipole amplitude vector, …). Kept as QVariantMap rather than QJsonObject so producers can ship QVector3D / Eigen types without going through JSON.
Definition at line 117 of file pickresult.h.
| int DISP3DLIB::PickResult::hemisphere = -1 |
Hemisphere for CorticalVertex (0 = left, 1 = right).
Definition at line 101 of file pickresult.h.
| PickKind DISP3DLIB::PickResult::kind = PickKind::None |
What was hit. None means the ray missed every renderable.
Definition at line 72 of file pickresult.h.
| QString DISP3DLIB::PickResult::label |
Human-readable label (contact name, vertex coordinate string, …).
Definition at line 84 of file pickresult.h.
| qint64 DISP3DLIB::PickResult::objectId = -1 |
Stable identifier for the picked element within its renderable (e.g. cortical vertex index, contact name hash, voxel linear index). Using qint64 lets a single field carry vertex indices, packed triplets and small string hashes. -1 means unset.
Definition at line 81 of file pickresult.h.
| int DISP3DLIB::PickResult::sliceOrientation = -1 |
MRI slice orientation index for MriVoxel (0 = axial, 1 = coronal, 2 = sagittal).
Definition at line 108 of file pickresult.h.
| QString DISP3DLIB::PickResult::sourceId |
Source renderable identifier — opaque string assigned by the MultimodalScene when the renderable was added. Lets consumers route the pick back to the originating layer (e.g. "cortex_lh", "mri_axial", "seeg_LH").
Definition at line 94 of file pickresult.h.
| int DISP3DLIB::PickResult::timeSample = -1 |
Time index for time-varying overlays (-1 = not time-resolved).
Definition at line 111 of file pickresult.h.
| float DISP3DLIB::PickResult::value = std::numeric_limits<float>::quiet_NaN() |
Optional scalar overlay value at the picked element (uV, dSPM, MRI intensity). NaN means "not provided".
Definition at line 88 of file pickresult.h.
| QVector3D DISP3DLIB::PickResult::voxel |
Voxel coordinates for MriVoxel.
Definition at line 104 of file pickresult.h.
| QVector3D DISP3DLIB::PickResult::world |
Hit position in world (MRI surface RAS) coordinates.
Definition at line 75 of file pickresult.h.