v2.0.0
Loading...
Searching...
No Matches
pickresult.h
Go to the documentation of this file.
1//=============================================================================================================
18
19#ifndef DISP3DLIB_PICKRESULT_H
20#define DISP3DLIB_PICKRESULT_H
21
22//=============================================================================================================
23// INCLUDES
24//=============================================================================================================
25
26#include "../disp3D_global.h"
27
28//=============================================================================================================
29// QT INCLUDES
30//=============================================================================================================
31
32#include <QString>
33#include <QVariantMap>
34#include <QVector3D>
35
36#include <limits>
37
38namespace DISP3DLIB
39{
40
41//=============================================================================================================
59
60//=============================================================================================================
70{
73
75 QVector3D world;
76
81 qint64 objectId = -1;
82
84 QString label;
85
88 float value = std::numeric_limits<float>::quiet_NaN();
89
94 QString sourceId;
95
96 //--------------------------------------------------------------------
97 // Kind-specific fields. Producers fill in only what applies.
98 //--------------------------------------------------------------------
99
101 int hemisphere = -1;
102
104 QVector3D voxel;
105
109
111 int timeSample = -1;
112
117 QVariantMap extras;
118};
119
120//=============================================================================================================
124inline bool isHit(const PickResult& r) noexcept
125{
126 return r.kind != PickKind::None;
127}
128
129} // namespace DISP3DLIB
130
131#endif // DISP3DLIB_PICKRESULT_H
@ Dipole
Definition rendertypes.h:65
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
3-D brain visualisation using the Qt RHI rendering backend.
PickKind
Kind of object that produced a 3-D pick.
Definition pickresult.h:49
bool isHit(const PickResult &r) noexcept
Definition pickresult.h:124
Single contact on a depth electrode shaft.
Uniform payload for object-id picking across the multimodal scene.
Definition pickresult.h:70