Point Cloud Library (PCL)
1.14.1-dev
|
#include <pcl/visualization/mouse_event.h>
Public Types | |
enum | Type { MouseMove = 1 , MouseButtonPress , MouseButtonRelease , MouseScrollDown , MouseScrollUp , MouseDblClick } |
enum | MouseButton { NoButton = 0 , LeftButton , MiddleButton , RightButton , VScroll } |
Public Member Functions | |
MouseEvent (const Type &type, const MouseButton &button, unsigned int x, unsigned int y, bool alt, bool ctrl, bool shift, bool selection_mode=false) | |
Constructor. More... | |
const Type & | getType () const |
void | setType (const Type &type) |
Sets the mouse event type. More... | |
const MouseButton & | getButton () const |
void | setButton (const MouseButton &button) |
Set the button that caused the event. More... | |
unsigned int | getX () const |
unsigned int | getY () const |
unsigned int | getKeyboardModifiers () const |
bool | getSelectionMode () const |
Protected Attributes | |
Type | type_ |
MouseButton | button_ |
unsigned int | pointer_x_ |
unsigned int | pointer_y_ |
unsigned int | key_state_ {0} |
bool | selection_mode_ |
Definition at line 47 of file mouse_event.h.
Enumerator | |
---|---|
NoButton | |
LeftButton | |
MiddleButton | |
RightButton | |
VScroll |
Definition at line 60 of file mouse_event.h.
Enumerator | |
---|---|
MouseMove | |
MouseButtonPress | |
MouseButtonRelease | |
MouseScrollDown | |
MouseScrollUp | |
MouseDblClick |
Definition at line 50 of file mouse_event.h.
|
inline |
Constructor.
[in] | type | event type |
[in] | button | The Button that causes the event |
[in] | x | x position of mouse pointer at that time where event got fired |
[in] | y | y position of mouse pointer at that time where event got fired |
[in] | alt | whether the ALT key was pressed at that time where event got fired |
[in] | ctrl | whether the CTRL key was pressed at that time where event got fired |
[in] | shift | whether the Shift key was pressed at that time where event got fired |
[in] | selection_mode | whether we are in selection mode |
Definition at line 139 of file mouse_event.h.
References pcl::visualization::KeyboardEvent::Alt, pcl::visualization::KeyboardEvent::Ctrl, key_state_, and pcl::visualization::KeyboardEvent::Shift.
|
inline |
Definition at line 173 of file mouse_event.h.
References button_.
|
inline |
Definition at line 197 of file mouse_event.h.
References key_state_.
|
inline |
Definition at line 203 of file mouse_event.h.
References selection_mode_.
|
inline |
|
inline |
Definition at line 185 of file mouse_event.h.
References pointer_x_.
|
inline |
Definition at line 191 of file mouse_event.h.
References pointer_y_.
|
inline |
Set the button that caused the event.
Definition at line 179 of file mouse_event.h.
References button_.
|
inline |
|
protected |
Definition at line 132 of file mouse_event.h.
Referenced by getButton(), and setButton().
|
protected |
Definition at line 135 of file mouse_event.h.
Referenced by getKeyboardModifiers(), and MouseEvent().
|
protected |
Definition at line 133 of file mouse_event.h.
Referenced by getX().
|
protected |
Definition at line 134 of file mouse_event.h.
Referenced by getY().
|
protected |
Definition at line 136 of file mouse_event.h.
Referenced by getSelectionMode().
|
protected |
Definition at line 131 of file mouse_event.h.