38 #ifndef H_OGF_SCENE_GRAPH_GFX_TRANSFORMS_RAY_PICKER_H
39 #define H_OGF_SCENE_GRAPH_GFX_TRANSFORMS_RAY_PICKER_H
41 #include <OGF/scene_graph_gfx/common/common.h>
52 class RenderingContext;
105 std::ostream& out,
const RayPick& ev
149 const vec2& point_ndc,
int button
162 const vec2& point_ndc,
int button
174 const vec2& point_ndc,
int button
Base class for all objects in the GOM system.
Converts a 2D picking in a rendering window into a ray picking event.
RayPicker()
RayPicker constructor.
void release(RenderingContext *rendering_context, const vec2 &point_ndc, int button)
Callback called when a mouse button is released.
void ray_drag(RenderingContext *rendering_context, const RayPick &value)
The signal triggered when the mouse is dragged.
void drag(RenderingContext *rendering_context, const vec2 &point_ndc, int button)
Callback called when the mouse is dragged with a button pressed.
RayPick point_to_ray_pick(RenderingContext *context, const vec2 &p_ndc, int button)
Converts a mouse pointer location into a RayPick event.
void ray_release(RenderingContext *rendering_context, const RayPick &value)
The signal triggered when a mouse button is released.
~RayPicker() override
RayPicker destructor.
Helper class for OpenGL context management.
Global Graphite namespace.
std::ostream & operator<<(std::ostream &out, const ArgList &args)
Prints an ArgList into a stream.
std::istream & operator>>(std::istream &in, PointStyle &ps)
Reads a PointStyle from a stream.
The base class for all composite objects in the GOM system.
Simple geometric objects and manipulations.
Represents the information related with a picking event.
vec2 p_ndc
picked point, in normalized device coordinates (X and Y both in [-1.0, 1.0]).
RayPick()
RayPick constructor.
int button
Clicked button.
RayPick(const vec2 &p_ndc_in, int btn_in)
RayPick constructor.