Graphite  Version 3
An experimental 3D geometry processing program
OGF::RayPick Struct Reference

Represents the information related with a picking event. More...

#include <OGF/scene_graph_gfx/transforms/ray_picker.h>

Public Member Functions

 RayPick (const vec2 &p_ndc_in, int btn_in)
 RayPick constructor. More...
 
 RayPick ()
 RayPick constructor. More...
 

Public Attributes

vec2 p_ndc
 picked point, in normalized device coordinates (X and Y both in [-1.0, 1.0]).
 
int button
 Clicked button.
 

Detailed Description

Represents the information related with a picking event.

For now, it just stores the 2D coordinates of the picked point in Normalized Device Coordinates. This class can be used as a placeholder for more efficient picking mechanisms (e.g. a stylus that could also have an orientation, thus defining a "picking ray").

Definition at line 64 of file ray_picker.h.

Constructor & Destructor Documentation

◆ RayPick() [1/2]

OGF::RayPick::RayPick ( const vec2 p_ndc_in,
int  btn_in 
)
inline

RayPick constructor.

Parameters
[in]p_ndc_inpicked point, in normalized device coordinates (X and Y both in [-1.0, 1.0])
[in]btn_inclicked button

Definition at line 73 of file ray_picker.h.

◆ RayPick() [2/2]

OGF::RayPick::RayPick ( )
inline

RayPick constructor.

Does not initialize the RayPick.

Definition at line 82 of file ray_picker.h.


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