last update 20 Sep 2009 |
#include <cvrViewerBase.h>
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 |
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.
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.
bool cvr::viewerBase::viewerBase::interaction::operator!= | ( | const interaction & | ia | ) | const [inline] |
Compare with the interaction type, which is an usual operation.
References cvr::viewerBase::viewerBase::interaction::action, cvr::viewerBase::viewerBase::interaction::key, and cvr::viewerBase::viewerBase::interaction::modifiers.
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] |
Compare with the interaction type, which is an usual operation.
References cvr::viewerBase::viewerBase::interaction::action, cvr::viewerBase::viewerBase::interaction::key, and cvr::viewerBase::viewerBase::interaction::modifiers.
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.
eInteractionType cvr::viewerBase::viewerBase::interaction::action |
Type of interaction.
Referenced by cvr::viewerBase::viewerBase::interaction::operator!=(), and cvr::viewerBase::viewerBase::interaction::operator==().
int cvr::viewerBase::viewerBase::interaction::key |
Key or mouse button pressed (or released).
Referenced by cvr::viewerBase::viewerBase::interaction::operator!=(), and cvr::viewerBase::viewerBase::interaction::operator==().
int cvr::viewerBase::viewerBase::interaction::modifiers |
Modifiers used (shift, ctrl or alt).
Referenced by cvr::viewerBase::viewerBase::interaction::operator!=(), and cvr::viewerBase::viewerBase::interaction::operator==().