v2.0.0
Loading...
Searching...
No Matches
PickResult Struct Reference

#include <raypicker.h>

Public Member Functions

QString displayLabel () const

Public Attributes

bool hit = false
 True if something was hit.
float distance = 0.0f
 Distance along ray to hit point.
QVector3D hitPoint
 World-space intersection point.
QStandardItem * item = nullptr
 Tree item that was hit (nullable).
QString surfaceKey
 Surface map key of the hit surface.
int vertexIndex = -1
 Vertex or element index at hit.
bool isDipole = false
 True if a dipole was hit.
int dipoleIndex = -1
 Index within the dipole set.
QString regionName
 Annotation region label (if available).
int regionId = -1
 Annotation label ID.

Detailed Description

Describes the result of a ray-pick operation.

Definition at line 62 of file raypicker.h.

Member Function Documentation

◆ displayLabel()

QString PickResult::displayLabel ( ) const

Build a human-readable display label for the hit object. Includes annotation region, sensor name, BEM compartment, etc.

Returns
Display label string, empty if no hit.

Definition at line 245 of file raypicker.cpp.

Member Data Documentation

◆ dipoleIndex

int PickResult::dipoleIndex = -1

Index within the dipole set.

Definition at line 73 of file raypicker.h.

◆ distance

float PickResult::distance = 0.0f

Distance along ray to hit point.

Definition at line 65 of file raypicker.h.

◆ hit

bool PickResult::hit = false

True if something was hit.

Definition at line 64 of file raypicker.h.

◆ hitPoint

QVector3D PickResult::hitPoint

World-space intersection point.

Definition at line 66 of file raypicker.h.

◆ isDipole

bool PickResult::isDipole = false

True if a dipole was hit.

Definition at line 72 of file raypicker.h.

◆ item

QStandardItem* PickResult::item = nullptr

Tree item that was hit (nullable).

Definition at line 68 of file raypicker.h.

◆ regionId

int PickResult::regionId = -1

Annotation label ID.

Definition at line 77 of file raypicker.h.

◆ regionName

QString PickResult::regionName

Annotation region label (if available).

Definition at line 76 of file raypicker.h.

◆ surfaceKey

QString PickResult::surfaceKey

Surface map key of the hit surface.

Definition at line 69 of file raypicker.h.

◆ vertexIndex

int PickResult::vertexIndex = -1

Vertex or element index at hit.

Definition at line 70 of file raypicker.h.


The documentation for this struct was generated from the following files: