21 const nanogui::Vector2i& p,
const nanogui::Vector2i& rel,
int button,
24 const bool leftIsDown = button & (1 << GLFW_MOUSE_BUTTON_LEFT);
25 const bool rightIsDown = button & (1 << GLFW_MOUSE_BUTTON_RIGHT);
31 if (leftIsDown || rightIsDown)
38 if (modifiers & GLFW_MOD_SHIFT)
40 else if (modifiers & GLFW_MOD_CONTROL)
56 const nanogui::Vector2i& p,
int button,
bool down,
int modifiers)
62 const nanogui::Vector2i& p,
const nanogui::Vector2f& rel)
69 #endif // MRPT_HAS_NANOGUI
void updateOrbitCamera(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the elevation...
CamaraParams cameraParams() const
Returns a copy of CamaraParams See also getRefCameraParams(), setCameraParams(const CamaraParams &) ...
void scrollEvent(const nanogui::Vector2i &p, const nanogui::Vector2f &rel)
mrpt::vision::TStereoCalibParams params
virtual void setCameraParams(const CamaraParams ¶ms)
Sets the CamaraParams See also cameraParams(), getRefCameraParams()
void setMousePos(int x, int y)
Saves the click position of the mouse See also setMouseClicked(bool)
void mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers)
void setMouseClicked(bool is)
Sets the property mouseClicked By default, this property is false.
void updateLastPos(int x, int y)
Sets the last mouse position.
void updateRotate(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the elevation...
Classes for creating GUI windows for 2D and 3D visualization.
void mouseMotionEvent(const nanogui::Vector2i &p, const nanogui::Vector2i &rel, int button, int modifiers)
void updatePan(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the pointing ...
void updateZoom(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the zoom of t...