CVR-Lib last update 20 Sep 2009

cvr::viewerBase::viewerBase::interaction Struct Reference

Interaction structure. More...

#include <cvrViewerBase.h>

List of all members.

Public Member Functions

 interaction ()
 interaction (const eInteractionType action, const int k, const int m)
bool operator== (const eInteractionType ia) const
bool operator!= (const eInteractionType ia) const
bool operator== (const interaction &ia) const
bool operator!= (const interaction &ia) const

Public Attributes

eInteractionType action
int key
int modifiers


Detailed Description

Interaction structure.

An interaction of the user with the main window is usually given through the mouse or the keyboard. The key or mouse button pressed, the modifiers used (e.g. shift, alt or ctrl keys) and the kind of interaction (mouse or keyboard) are packed in objects of this type.


Constructor & Destructor Documentation

cvr::viewerBase::viewerBase::interaction::interaction (  ) 

Default constructor initializes with right-button press action.

cvr::viewerBase::viewerBase::interaction::interaction ( const eInteractionType  action,
const int  k,
const int  m 
)

Constructor that initialize the structure with default values.


Member Function Documentation

bool cvr::viewerBase::viewerBase::interaction::operator!= ( const interaction ia  )  const [inline]

bool cvr::viewerBase::viewerBase::interaction::operator!= ( const eInteractionType  ia  )  const [inline]

Compare with the interaction type, which is an usual operation.

References cvr::viewerBase::viewerBase::interaction::action.

bool cvr::viewerBase::viewerBase::interaction::operator== ( const interaction ia  )  const [inline]

bool cvr::viewerBase::viewerBase::interaction::operator== ( const eInteractionType  ia  )  const [inline]

Compare with the interaction type, which is an usual operation.

References cvr::viewerBase::viewerBase::interaction::action.


Member Data Documentation

eInteractionType cvr::viewerBase::viewerBase::interaction::action

int cvr::viewerBase::viewerBase::interaction::key

int cvr::viewerBase::viewerBase::interaction::modifiers


The documentation for this struct was generated from the following file:

Generated on Sun Sep 20 22:09:11 2009 for CVR-Lib by Doxygen 1.5.8