/brief Class representing key hit/release events
More...
#include <pcl/visualization/keyboard_event.h>
|
| static const unsigned int | Alt = 1 |
| | bit patter for the ALT key More...
|
| |
| static const unsigned int | Ctrl = 2 |
| | bit patter for the Control key More...
|
| |
| static const unsigned int | Shift = 4 |
| | bit patter for the Shift key More...
|
| |
/brief Class representing key hit/release events
Definition at line 49 of file keyboard_event.h.
| pcl::visualization::KeyboardEvent::KeyboardEvent |
( |
bool |
action, |
|
|
const std::string & |
key_sym, |
|
|
unsigned char |
key, |
|
|
bool |
alt, |
|
|
bool |
ctrl, |
|
|
bool |
shift |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| [in] | action | true for key was pressed, false for released |
| [in] | key_sym | the key-name that caused the action |
| [in] | key | the key code that caused the action |
| [in] | alt | whether the alt key was pressed at the time where this event was triggered |
| [in] | ctrl | whether the ctrl was pressed at the time where this event was triggered |
| [in] | shift | whether the shift was pressed at the time where this event was triggered |
Definition at line 120 of file keyboard_event.h.
| unsigned char pcl::visualization::KeyboardEvent::getKeyCode |
( |
| ) |
const |
|
inline |
- Returns
- the ASCII Code of the key that caused the event. If 0, then it was a special key, like ALT, F1, F2,... PgUp etc. Then the name of the key is in the keysym field.
Definition at line 156 of file keyboard_event.h.
| const std::string & pcl::visualization::KeyboardEvent::getKeySym |
( |
| ) |
const |
|
inline |
| bool pcl::visualization::KeyboardEvent::isAltPressed |
( |
| ) |
const |
|
inline |
- Returns
- whether the alt key was pressed at the time where this event was triggered
Definition at line 138 of file keyboard_event.h.
| bool pcl::visualization::KeyboardEvent::isCtrlPressed |
( |
| ) |
const |
|
inline |
- Returns
- whether the ctrl was pressed at the time where this event was triggered
Definition at line 144 of file keyboard_event.h.
| bool pcl::visualization::KeyboardEvent::isShiftPressed |
( |
| ) |
const |
|
inline |
- Returns
- whether the shift was pressed at the time where this event was triggered
Definition at line 150 of file keyboard_event.h.
| bool pcl::visualization::KeyboardEvent::keyDown |
( |
| ) |
const |
|
inline |
- Returns
- true if a key-press caused the event, false otherwise
Definition at line 168 of file keyboard_event.h.
| bool pcl::visualization::KeyboardEvent::keyUp |
( |
| ) |
const |
|
inline |
- Returns
- true if a key-release caused the event, false otherwise
Definition at line 174 of file keyboard_event.h.
| const unsigned int pcl::visualization::KeyboardEvent::Alt = 1 |
|
static |
| const unsigned int pcl::visualization::KeyboardEvent::Ctrl = 2 |
|
static |
| const unsigned int pcl::visualization::KeyboardEvent::Shift = 4 |
|
static |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/PCL-1.6.0-Source/visualization/include/pcl/visualization/keyboard_event.h