|
Mantid
|
Controller for moving the instrument on an unwrapped surface. More...
#include <InputController.h>
Signals | |
| void | resetZoom () |
| void | setSelectionRect (const QRect &) |
| void | unzoom () |
| void | zoom () |
Signals inherited from MantidQt::MantidWidgets::InputController | |
| void | disabled () |
| void | enabled () |
| void | touchPointAt (int, int) |
Public Member Functions | |
| InputControllerMoveUnwrapped (QObject *parent) | |
| Constructor. More... | |
| void | mouseMoveEvent (QMouseEvent *) override |
| Process the mouse move event. More... | |
| void | mousePressEvent (QMouseEvent *) override |
| Process the mouse press event. More... | |
| void | mouseReleaseEvent (QMouseEvent *) override |
| Process the mouse button release event. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::InputController | |
| bool | canShowContextMenu () const |
| Returns true if a surface using this controller can show a context menu on right-click. More... | |
| virtual void | enterEvent (QEvent *) |
| virtual void | freezeRotation (bool) |
| InputController (QObject *parent, bool contextAllowed=true) | |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | leaveEvent (QEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | onDisabled () |
| To be called when this controller looses control. More... | |
| virtual void | onEnabled () |
| To be called when this controller takes control of the input. More... | |
| virtual void | onPaint (QPainter &) |
| To be called after the owner widget has drawn its content. More... | |
| virtual void | wheelEvent (QWheelEvent *) |
| ~InputController () override=default | |
Private Attributes | |
| bool | m_isButtonPressed |
| QRect | m_rect |
Controller for moving the instrument on an unwrapped surface.
Definition at line 195 of file InputController.h.
| MantidQt::MantidWidgets::InputControllerMoveUnwrapped::InputControllerMoveUnwrapped | ( | QObject * | parent | ) |
Constructor.
Definition at line 231 of file InputController.cpp.
|
overridevirtual |
Process the mouse move event.
Reimplemented from MantidQt::MantidWidgets::InputController.
Definition at line 247 of file InputController.cpp.
References m_isButtonPressed, m_rect, MantidQt::MantidWidgets::InputController::mouseMoveEvent(), and setSelectionRect().
|
overridevirtual |
Process the mouse press event.
Reimplemented from MantidQt::MantidWidgets::InputController.
Definition at line 237 of file InputController.cpp.
References m_isButtonPressed, and m_rect.
|
overridevirtual |
Process the mouse button release event.
Reimplemented from MantidQt::MantidWidgets::InputController.
Definition at line 258 of file InputController.cpp.
References m_isButtonPressed, m_rect, resetZoom(), unzoom(), and zoom().
|
signal |
Referenced by mouseReleaseEvent().
|
signal |
Referenced by mouseMoveEvent().
|
signal |
Referenced by mouseReleaseEvent().
|
signal |
Referenced by mouseReleaseEvent().
|
private |
Definition at line 211 of file InputController.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 212 of file InputController.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().