BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
BALL::VIEW::InteractionMode Class Referenceabstract

#include <BALL/VIEW/KERNEL/MODES/interactionMode.h>

Inheritance diagram for BALL::VIEW::InteractionMode:
QObject BALL::VIEW::EditMode BALL::VIEW::MoveMode BALL::VIEW::PickingMode BALL::VIEW::RotateMode

Signals

void requestModeChange (InteractionMode *mode)
 

Public Member Functions

 InteractionMode (Scene *scene)
 
virtual ~InteractionMode ()
 
virtual void keyPressEvent (QKeyEvent *evt)
 
virtual void keyReleaseEvent (QKeyEvent *evt)
 
virtual void mouseDoubleClickEvent (QMouseEvent *evt)
 
void mouseMoveEvent (QMouseEvent *evt)
 
void mousePressEvent (QMouseEvent *evt)
 
void mouseReleaseEvent (QMouseEvent *evt)
 
virtual void wheelEvent (QWheelEvent *evt)
 
virtual void addToolBarEntries (QToolBar *tb)
 
virtual void populateContextMenu (QMenu *)
 
virtual Qt::Key getKey () const =0
 
virtual QString getName () const =0
 
virtual void deactivate ()
 
virtual void activate ()
 
void setMouseSensitivity (float sens)
 
QAction * getMainAction ()
 
bool isCurrent () const
 
void setCurrent (bool current)
 

Protected Slots

void modeChangeSlot_ ()
 

Protected Member Functions

virtual void mouseMoveEventImpl_ (QMouseEvent *evt)
 
virtual void mousePressEventImpl_ (QMouseEvent *evt)
 
virtual void mouseReleaseEventImpl_ (QMouseEvent *evt)
 
float getXDiff_ () const
 
float getYDiff_ () const
 
void zoomSystem_ ()
 

Protected Attributes

Scenescene_
 
QPoint mouse_pos_old_
 
QPoint mouse_pos_new_
 
QSize desktop_size_
 
float mouse_sensitivity_
 
float mouse_wheel_sensitivity_
 
QAction * main_action_
 
bool is_current_
 

Detailed Description

Definition at line 24 of file interactionMode.h.

Constructor & Destructor Documentation

BALL::VIEW::InteractionMode::InteractionMode ( Scene scene)
virtual BALL::VIEW::InteractionMode::~InteractionMode ( )
virtual

Member Function Documentation

virtual void BALL::VIEW::InteractionMode::activate ( )
virtual
virtual void BALL::VIEW::InteractionMode::addToolBarEntries ( QToolBar *  tb)
virtual

Reimplemented in BALL::VIEW::EditMode.

virtual void BALL::VIEW::InteractionMode::deactivate ( )
virtual

Reimplemented in BALL::VIEW::PickingMode.

virtual Qt::Key BALL::VIEW::InteractionMode::getKey ( ) const
pure virtual
QAction* BALL::VIEW::InteractionMode::getMainAction ( )
virtual QString BALL::VIEW::InteractionMode::getName ( ) const
pure virtual
float BALL::VIEW::InteractionMode::getXDiff_ ( ) const
protected
float BALL::VIEW::InteractionMode::getYDiff_ ( ) const
protected
bool BALL::VIEW::InteractionMode::isCurrent ( ) const
inline

Definition at line 55 of file interactionMode.h.

virtual void BALL::VIEW::InteractionMode::keyPressEvent ( QKeyEvent *  evt)
virtual

Reimplemented in BALL::VIEW::EditMode.

virtual void BALL::VIEW::InteractionMode::keyReleaseEvent ( QKeyEvent *  evt)
virtual

Reimplemented in BALL::VIEW::EditMode.

void BALL::VIEW::InteractionMode::modeChangeSlot_ ( )
protectedslot
virtual void BALL::VIEW::InteractionMode::mouseDoubleClickEvent ( QMouseEvent evt)
virtual
void BALL::VIEW::InteractionMode::mouseMoveEvent ( QMouseEvent evt)
virtual void BALL::VIEW::InteractionMode::mouseMoveEventImpl_ ( QMouseEvent evt)
protectedvirtual
void BALL::VIEW::InteractionMode::mousePressEvent ( QMouseEvent evt)
virtual void BALL::VIEW::InteractionMode::mousePressEventImpl_ ( QMouseEvent evt)
protectedvirtual
void BALL::VIEW::InteractionMode::mouseReleaseEvent ( QMouseEvent evt)
virtual void BALL::VIEW::InteractionMode::mouseReleaseEventImpl_ ( QMouseEvent evt)
protectedvirtual
virtual void BALL::VIEW::InteractionMode::populateContextMenu ( QMenu *  )
inlinevirtual

Reimplemented in BALL::VIEW::EditMode, and BALL::VIEW::MoveMode.

Definition at line 43 of file interactionMode.h.

void BALL::VIEW::InteractionMode::requestModeChange ( InteractionMode mode)
signal
void BALL::VIEW::InteractionMode::setCurrent ( bool  current)
inline

Definition at line 56 of file interactionMode.h.

void BALL::VIEW::InteractionMode::setMouseSensitivity ( float  sens)
virtual void BALL::VIEW::InteractionMode::wheelEvent ( QWheelEvent *  evt)
virtual

Reimplemented in BALL::VIEW::EditMode.

void BALL::VIEW::InteractionMode::zoomSystem_ ( )
protected

Member Data Documentation

QSize BALL::VIEW::InteractionMode::desktop_size_
protected

Definition at line 67 of file interactionMode.h.

bool BALL::VIEW::InteractionMode::is_current_
protected

Definition at line 71 of file interactionMode.h.

QAction* BALL::VIEW::InteractionMode::main_action_
protected

Definition at line 70 of file interactionMode.h.

QPoint BALL::VIEW::InteractionMode::mouse_pos_new_
protected

Definition at line 66 of file interactionMode.h.

QPoint BALL::VIEW::InteractionMode::mouse_pos_old_
protected

Definition at line 65 of file interactionMode.h.

float BALL::VIEW::InteractionMode::mouse_sensitivity_
protected

Definition at line 68 of file interactionMode.h.

float BALL::VIEW::InteractionMode::mouse_wheel_sensitivity_
protected

Definition at line 69 of file interactionMode.h.

Scene* BALL::VIEW::InteractionMode::scene_
protected

Definition at line 64 of file interactionMode.h.