Mantid
Loading...
Searching...
No Matches
Signals | Public Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::InputControllerMoveUnwrapped Class Reference

Controller for moving the instrument on an unwrapped surface. More...

#include <InputController.h>

Inheritance diagram for MantidQt::MantidWidgets::InputControllerMoveUnwrapped:
MantidQt::MantidWidgets::InputController

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
 

Detailed Description

Controller for moving the instrument on an unwrapped surface.

Definition at line 195 of file InputController.h.

Constructor & Destructor Documentation

◆ InputControllerMoveUnwrapped()

MantidQt::MantidWidgets::InputControllerMoveUnwrapped::InputControllerMoveUnwrapped ( QObject *  parent)

Constructor.

Definition at line 231 of file InputController.cpp.

Member Function Documentation

◆ mouseMoveEvent()

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::mouseMoveEvent ( QMouseEvent *  event)
overridevirtual

◆ mousePressEvent()

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::mousePressEvent ( QMouseEvent *  event)
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.

◆ mouseReleaseEvent()

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::mouseReleaseEvent ( QMouseEvent *  event)
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().

◆ resetZoom

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::resetZoom ( )
signal

Referenced by mouseReleaseEvent().

◆ setSelectionRect

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::setSelectionRect ( const QRect &  )
signal

Referenced by mouseMoveEvent().

◆ unzoom

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::unzoom ( )
signal

Referenced by mouseReleaseEvent().

◆ zoom

void MantidQt::MantidWidgets::InputControllerMoveUnwrapped::zoom ( )
signal

Referenced by mouseReleaseEvent().

Member Data Documentation

◆ m_isButtonPressed

bool MantidQt::MantidWidgets::InputControllerMoveUnwrapped::m_isButtonPressed
private

Definition at line 211 of file InputController.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

◆ m_rect

QRect MantidQt::MantidWidgets::InputControllerMoveUnwrapped::m_rect
private

Definition at line 212 of file InputController.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().


The documentation for this class was generated from the following files: