v2.0.0
Loading...
Searching...
No Matches
DISP3DLIB::RayHit Struct Reference

Result of a ray–mesh intersection test containing the hit point, triangle index, and distance. More...

#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
 FsSurface 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
 FsAnnotation region label (if available).
int regionId = -1
 FsAnnotation label ID.

Detailed Description

Result of a ray–mesh intersection test containing the hit point, triangle index, and distance.

Describes the result of a ray-pick operation.

Definition at line 57 of file raypicker.h.

Member Function Documentation

◆ displayLabel()

QString DISP3DLIB::RayHit::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 240 of file raypicker.cpp.

Member Data Documentation

◆ dipoleIndex

int DISP3DLIB::RayHit::dipoleIndex = -1

Index within the dipole set.

Definition at line 68 of file raypicker.h.

◆ distance

float DISP3DLIB::RayHit::distance = 0.0f

Distance along ray to hit point.

Definition at line 60 of file raypicker.h.

◆ hit

bool DISP3DLIB::RayHit::hit = false

True if something was hit.

Definition at line 59 of file raypicker.h.

◆ hitPoint

QVector3D DISP3DLIB::RayHit::hitPoint

World-space intersection point.

Definition at line 61 of file raypicker.h.

◆ isDipole

bool DISP3DLIB::RayHit::isDipole = false

True if a dipole was hit.

Definition at line 67 of file raypicker.h.

◆ item

QStandardItem* DISP3DLIB::RayHit::item = nullptr

Tree item that was hit (nullable).

Definition at line 63 of file raypicker.h.

◆ regionId

int DISP3DLIB::RayHit::regionId = -1

FsAnnotation label ID.

Definition at line 72 of file raypicker.h.

◆ regionName

QString DISP3DLIB::RayHit::regionName

FsAnnotation region label (if available).

Definition at line 71 of file raypicker.h.

◆ surfaceKey

QString DISP3DLIB::RayHit::surfaceKey

FsSurface map key of the hit surface.

Definition at line 64 of file raypicker.h.

◆ vertexIndex

int DISP3DLIB::RayHit::vertexIndex = -1

Vertex or element index at hit.

Definition at line 65 of file raypicker.h.


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