|
HyperspaceExplorer 0.7.1
|
Inner class to C4DView which handles the mouse events. More...
#include <MouseHandler.h>

Public Member Functions | |
| MouseHandler4D (C4DView *) | |
| Create a MouseHandler4D for a C4DView. | |
| void | mouseMoveEvent (QMouseEvent *) |
| Mouse move event handler. | |
| void | mousePressEvent (QMouseEvent *) |
| Mouse button event handler. | |
| void | mouseReleaseEvent (QMouseEvent *) |
| Mouse button release event handler. | |
| void | mouseDoubleClickEvent (QMouseEvent *) |
| Double click event handler. | |
Private Member Functions | |
| void | setm_LeftDownPos (QPoint b) |
| QPoint | LeftDownPos () const |
| void | setm_MidDownPos (QPoint b) |
| QPoint | MidDownPos () const |
| void | setm_RightDownPos (QPoint b) |
| QPoint | RightDownPos () const |
| void | setTakingSpinValues (bool b) |
| Set whether mouse button pressed & mouse moved to take movement speed. | |
| bool | TakingSpinValues () const |
Private Attributes | |
| C4DView * | parent |
| the C4DView containing this mouse handler | |
| QPoint | m_LeftDownPos |
| position where the LMB press started | |
| QPoint | m_MidDownPos |
| position where the MMB press started | |
| QPoint | m_RightDownPos |
| position where the RMB press started | |
| bool | m_TakingSpinValues |
| true while mouse button pressed & mouse moved to take movement speed | |
Inner class to C4DView which handles the mouse events.
| QPoint C4DView::MouseHandler4D::LeftDownPos | ( | ) | const [inline, private] |
References m_LeftDownPos.
| QPoint C4DView::MouseHandler4D::MidDownPos | ( | ) | const [inline, private] |
References m_MidDownPos.
| void C4DView::MouseHandler4D::mouseDoubleClickEvent | ( | QMouseEvent * | ) |
Double click event handler.
Stops animation, if running, or resets transformation values to default.
Referenced by C4DView::mouseDoubleClickEvent().

| void C4DView::MouseHandler4D::mouseMoveEvent | ( | QMouseEvent * | e | ) |
Mouse move event handler.
Awfully long, which is UGLY, but it does not seem to make much sense to break it up, so here we go
Particular mouse move/button/modifier key combinations documented in the code below
| e | Qt's mouse event information structure |
References rotate(), and size().
Referenced by C4DView::mouseMoveEvent().


| void C4DView::MouseHandler4D::mousePressEvent | ( | QMouseEvent * | e | ) |
Mouse button event handler.
Only sets flags which buttons are down
| e | Qt's mouse event information structure |
Referenced by C4DView::mousePressEvent().

| void C4DView::MouseHandler4D::mouseReleaseEvent | ( | QMouseEvent * | ) |
Mouse button release event handler.
If taking values for an animation, starts the animation.
Referenced by C4DView::mouseReleaseEvent().

| QPoint C4DView::MouseHandler4D::RightDownPos | ( | ) | const [inline, private] |
References m_RightDownPos.
| void C4DView::MouseHandler4D::setm_LeftDownPos | ( | QPoint | b | ) | [inline, private] |
| b | position where the LMB press started |
References m_LeftDownPos.
| void C4DView::MouseHandler4D::setm_MidDownPos | ( | QPoint | b | ) | [inline, private] |
| b | position where the MMB press started |
References m_MidDownPos.
| void C4DView::MouseHandler4D::setm_RightDownPos | ( | QPoint | b | ) | [inline, private] |
| b | position where the RMB press started |
References m_RightDownPos.
| bool C4DView::MouseHandler4D::TakingSpinValues | ( | ) | const [inline, private] |
References m_TakingSpinValues.
1.7.4
-
Hosted by