17 #include <mrpt/config.h> 20 #include <nanogui/nanogui.h> 38 virtual void drawGL()
override;
53 const nanogui::Vector2i& p,
const nanogui::Vector2i& rel,
int button,
54 int modifiers)
override;
56 const nanogui::Vector2i& p,
int button,
bool down,
57 int modifiers)
override;
59 const nanogui::Vector2i& p,
const nanogui::Vector2f& rel)
override;
68 #endif // MRPT_HAS_NANOGUI virtual bool scrollEvent(const nanogui::Vector2i &p, const nanogui::Vector2f &rel) override
virtual bool mouseMotionEvent(const nanogui::Vector2i &p, const nanogui::Vector2i &rel, int button, int modifiers) override
const CGlCanvasBase & camera() const
An extension of nanogui::GLCanvas to render MRPT OpenGL scenes.
MRPT2NanoguiGLCanvas(nanogui::Widget *parent)
virtual bool mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers) override
internal::NanoGUICanvasHeadless m_headless_canvas
Used to keep track of mouse events on the camera.
mrpt::opengl::COpenGLScene::Ptr scene
The scene to render in this control.
Classes for creating GUI windows for 2D and 3D visualization.
Specialization of CGlCanvasBaseHeadless for nanogui events.
This base class implements a working with opengl::Camera and a OpenGL canvas, and it's used in gui::C...
virtual void drawGL() override