#include <mouse_event.h>
Public Types | |
enum | MouseButton { NoButton = 0, LeftButton, MiddleButton, RightButton, VScroll } |
enum | Type { MouseMove = 1, MouseButtonPress, MouseButtonRelease, MouseScrollDown, MouseScrollUp, MouseDblClick } |
Public Member Functions | |
const MouseButton & | getButton () const |
unsigned int | getKeyboardModifiers () const |
bool | getSelectionMode () const |
const Type & | getType () const |
unsigned int | getX () const |
unsigned int | getY () const |
MouseEvent (const Type &type, const MouseButton &button, unsigned int x, unsigned int y, bool alt, bool ctrl, bool shift, bool selection_mode=false) | |
void | setButton (const MouseButton &button) |
Set the button that caused the event. | |
void | setType (const Type &type) |
Sets the mouse event type. | |
Protected Attributes | |
MouseButton | button_ |
unsigned int | key_state_ |
unsigned int | pointer_x_ |
unsigned int | pointer_y_ |
bool | selection_mode_ |
Type | type_ |
Definition at line 48 of file mouse_event.h.
Definition at line 61 of file mouse_event.h.
MouseMove | |
MouseButtonPress | |
MouseButtonRelease | |
MouseScrollDown | |
MouseScrollUp | |
MouseDblClick |
Definition at line 51 of file mouse_event.h.
pcl::visualization::MouseEvent::MouseEvent | ( | const Type & | type, |
const MouseButton & | button, | ||
unsigned int | x, | ||
unsigned int | y, | ||
bool | alt, | ||
bool | ctrl, | ||
bool | shift, | ||
bool | selection_mode = false |
||
) | [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 140 of file mouse_event.h.
const MouseEvent::MouseButton & pcl::visualization::MouseEvent::getButton | ( | ) | const [inline] |
Definition at line 174 of file mouse_event.h.
unsigned int pcl::visualization::MouseEvent::getKeyboardModifiers | ( | ) | const [inline] |
Definition at line 198 of file mouse_event.h.
bool pcl::visualization::MouseEvent::getSelectionMode | ( | ) | const [inline] |
Definition at line 204 of file mouse_event.h.
const MouseEvent::Type & pcl::visualization::MouseEvent::getType | ( | ) | const [inline] |
Definition at line 162 of file mouse_event.h.
unsigned int pcl::visualization::MouseEvent::getX | ( | ) | const [inline] |
Definition at line 186 of file mouse_event.h.
unsigned int pcl::visualization::MouseEvent::getY | ( | ) | const [inline] |
Definition at line 192 of file mouse_event.h.
void pcl::visualization::MouseEvent::setButton | ( | const MouseButton & | button | ) | [inline] |
Set the button that caused the event.
Definition at line 180 of file mouse_event.h.
void pcl::visualization::MouseEvent::setType | ( | const Type & | type | ) | [inline] |
Sets the mouse event type.
Definition at line 168 of file mouse_event.h.
MouseButton pcl::visualization::MouseEvent::button_ [protected] |
Definition at line 133 of file mouse_event.h.
unsigned int pcl::visualization::MouseEvent::key_state_ [protected] |
Definition at line 136 of file mouse_event.h.
unsigned int pcl::visualization::MouseEvent::pointer_x_ [protected] |
Definition at line 134 of file mouse_event.h.
unsigned int pcl::visualization::MouseEvent::pointer_y_ [protected] |
Definition at line 135 of file mouse_event.h.
bool pcl::visualization::MouseEvent::selection_mode_ [protected] |
Definition at line 137 of file mouse_event.h.
Type pcl::visualization::MouseEvent::type_ [protected] |
Definition at line 132 of file mouse_event.h.