/brief Class representing key hit/release events More...
#include <pcl/visualization/keyboard_event.h>
Public Member Functions | |
KeyboardEvent (bool action, const std::string &key_sym, unsigned char key, bool alt, bool ctrl, bool shift) | |
Constructor. More... |
|
bool | isAltPressed () const |
bool | isCtrlPressed () const |
bool | isShiftPressed () const |
unsigned char | getKeyCode () const |
const std::string & | getKeySym () const |
bool | keyDown () const |
bool | keyUp () const |
Static Public Attributes | |
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... |
|
Protected Attributes | |
bool | action_ |
unsigned int | modifiers_ |
unsigned char | key_code_ |
std::string | key_sym_ |
/brief Class representing key hit/release events
Definition at line 48 of file keyboard_event.h.
| inline |
Constructor.
[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 119 of file keyboard_event.h.
References Alt, Ctrl, modifiers_, and Shift.
| inline |
Definition at line 155 of file keyboard_event.h.
References key_code_.
| inline |
Definition at line 161 of file keyboard_event.h.
References key_sym_.
| inline |
Definition at line 137 of file keyboard_event.h.
References Alt, and modifiers_.
| inline |
Definition at line 143 of file keyboard_event.h.
References Ctrl, and modifiers_.
| inline |
Definition at line 149 of file keyboard_event.h.
References modifiers_, and Shift.
| inline |
Definition at line 167 of file keyboard_event.h.
References action_.
| inline |
Definition at line 173 of file keyboard_event.h.
References action_.
| protected |
Definition at line 113 of file keyboard_event.h.
| static |
bit patter for the ALT key
Definition at line 52 of file keyboard_event.h.
Referenced by isAltPressed(), KeyboardEvent(), and pcl::visualization::MouseEvent::MouseEvent().
| static |
bit patter for the Control key
Definition at line 54 of file keyboard_event.h.
Referenced by isCtrlPressed(), KeyboardEvent(), and pcl::visualization::MouseEvent::MouseEvent().
| protected |
Definition at line 115 of file keyboard_event.h.
Referenced by getKeyCode().
| protected |
Definition at line 116 of file keyboard_event.h.
Referenced by getKeySym().
| protected |
Definition at line 114 of file keyboard_event.h.
Referenced by isAltPressed(), isCtrlPressed(), isShiftPressed(), and KeyboardEvent().
| static |
bit patter for the Shift key
Definition at line 56 of file keyboard_event.h.
Referenced by isShiftPressed(), KeyboardEvent(), and pcl::visualization::MouseEvent::MouseEvent().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1visualization_1_1_keyboard_event.html