Go to the documentation of this file.
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...
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...
void scrollEvent(const nanogui::Vector2i &p, const nanogui::Vector2f &rel)
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...
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 ...
virtual void setCameraParams(const CamaraParams ¶ms)
Sets the CamaraParams See also cameraParams(), getRefCameraParams()
void mouseMotionEvent(const nanogui::Vector2i &p, const nanogui::Vector2i &rel, int button, int modifiers)
void updateLastPos(int x, int y)
Sets the last mouse position.
mrpt::vision::TStereoCalibParams params
Classes for creating GUI windows for 2D and 3D visualization.
void mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers)
void setMousePos(int x, int y)
Saves the click position of the mouse See also setMouseClicked(bool)
void setMouseClicked(bool is)
Sets the property mouseClicked By default, this property is false.
CamaraParams cameraParams() const
Returns a copy of CamaraParams See also getRefCameraParams(), setCameraParams(const CamaraParams &)
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020 | |