Graphite
Version 3
An experimental 3D geometry processing program
|
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. | |
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.
|
inline |
RayPick constructor.
[in] | p_ndc_in | picked point, in normalized device coordinates (X and Y both in [-1.0, 1.0]) |
[in] | btn_in | clicked button |
Definition at line 73 of file ray_picker.h.
|
inline |