HyperspaceExplorer 0.7.1
Public Member Functions | Private Member Functions | Private Attributes
C4DView::MouseHandler4D Class Reference

Inner class to C4DView which handles the mouse events. More...

#include <MouseHandler.h>

Collaboration diagram for C4DView::MouseHandler4D:
Collaboration graph
[legend]

List of all members.

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

C4DViewparent
 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

Detailed Description

Inner class to C4DView which handles the mouse events.

Author:
Lene Preuss <lene.preuss@gmail.com>

Member Function Documentation

QPoint C4DView::MouseHandler4D::LeftDownPos ( ) const [inline, private]
Returns:
position where the LMB press started

References m_LeftDownPos.

QPoint C4DView::MouseHandler4D::MidDownPos ( ) const [inline, private]
Returns:
position where the MMB press started

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().

Here is the caller graph for this function:

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

Parameters:
eQt's mouse event information structure

References rotate(), and size().

Referenced by C4DView::mouseMoveEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void C4DView::MouseHandler4D::mousePressEvent ( QMouseEvent *  e)

Mouse button event handler.

Only sets flags which buttons are down

Parameters:
eQt's mouse event information structure

Referenced by C4DView::mousePressEvent().

Here is the caller graph for this function:

void C4DView::MouseHandler4D::mouseReleaseEvent ( QMouseEvent *  )

Mouse button release event handler.

If taking values for an animation, starts the animation.

Referenced by C4DView::mouseReleaseEvent().

Here is the caller graph for this function:

QPoint C4DView::MouseHandler4D::RightDownPos ( ) const [inline, private]
Returns:
position where the RMB press started

References m_RightDownPos.

void C4DView::MouseHandler4D::setm_LeftDownPos ( QPoint  b) [inline, private]
Parameters:
bposition where the LMB press started

References m_LeftDownPos.

void C4DView::MouseHandler4D::setm_MidDownPos ( QPoint  b) [inline, private]
Parameters:
bposition where the MMB press started

References m_MidDownPos.

void C4DView::MouseHandler4D::setm_RightDownPos ( QPoint  b) [inline, private]
Parameters:
bposition where the RMB press started

References m_RightDownPos.

bool C4DView::MouseHandler4D::TakingSpinValues ( ) const [inline, private]
Returns:
Mouse button pressed & mouse moved to take movement speed?

References m_TakingSpinValues.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:17 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo