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//=============================================================================================================
60
61//=============================================================================================================
73{
76
78 QVector3D world;
79
84 qint64 objectId = -1;
85
87 QString label;
88
91 float value = std::numeric_limits<float>::quiet_NaN();
92
97 QString sourceId;
98
99 //--------------------------------------------------------------------
100 // Kind-specific fields. Producers fill in only what applies.
101 //--------------------------------------------------------------------
102
104 int hemisphere = -1;
105
107 QVector3D voxel;
108
112
114 int timeSample = -1;
115
120 QVariantMap extras;
121};
122
123//=============================================================================================================
128inline bool isHit(const PickResult& r) noexcept
129{
130 return r.kind != PickKind::None;
131}
132
133} // namespace DISP3DLIB
134
135#endif // DISP3DLIB_PICKRESULT_H
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:50
bool isHit(const PickResult &r) noexcept
Definition pickresult.h:128
Single contact on a depth electrode shaft.
Uniform payload for object-id picking across the multimodal scene.
Definition pickresult.h:73