Public Types | Public Member Functions | Protected Attributes
pcl::visualization::MouseEvent Class Reference

#include <mouse_event.h>

List of all members.

Public Types

enum  MouseButton {
  NoButton = 0, LeftButton, MiddleButton, RightButton,
  VScroll
}
enum  Type {
  MouseMove = 1, MouseButtonPress, MouseButtonRelease, MouseScrollDown,
  MouseScrollUp, MouseDblClick
}

Public Member Functions

const MouseButtongetButton () const
unsigned int getKeyboardModifiers () const
const TypegetType () 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)
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_
Type type_

Detailed Description

Definition at line 49 of file mouse_event.h.


Member Enumeration Documentation

Enumerator:
NoButton 
LeftButton 
MiddleButton 
RightButton 
VScroll 

Definition at line 62 of file mouse_event.h.

Enumerator:
MouseMove 
MouseButtonPress 
MouseButtonRelease 
MouseScrollDown 
MouseScrollUp 
MouseDblClick 

Definition at line 52 of file mouse_event.h.


Constructor & Destructor Documentation

pcl::visualization::MouseEvent::MouseEvent ( const Type type,
const MouseButton button,
unsigned int  x,
unsigned int  y,
bool  alt,
bool  ctrl,
bool  shift 
) [inline]

Constructor.

Parameters:
[in]typeevent type
[in]buttonThe Button that causes the event
[in]xx position of mouse pointer at that time where event got fired
[in]yy position of mouse pointer at that time where event got fired
[in]altwhether the ALT key was pressed at that time where event got fired
[in]ctrlwhether the CTRL key was pressed at that time where event got fired
[in]shiftwhether the Shift key was pressed at that time where event got fired

Definition at line 132 of file mouse_event.h.


Member Function Documentation

Returns:
the Button that caused the action

Definition at line 164 of file mouse_event.h.

Returns:
returns the keyboard modifiers state at that time where the event got fired

Definition at line 188 of file mouse_event.h.

Returns:
type of mouse event

Definition at line 152 of file mouse_event.h.

unsigned int pcl::visualization::MouseEvent::getX ( ) const [inline]
Returns:
the x position of the mouse pointer at that time where the event got fired

Definition at line 176 of file mouse_event.h.

unsigned int pcl::visualization::MouseEvent::getY ( ) const [inline]
Returns:
the y position of the mouse pointer at that time where the event got fired

Definition at line 182 of file mouse_event.h.

void pcl::visualization::MouseEvent::setButton ( const MouseButton button) [inline]

Set the button that caused the event.

Definition at line 170 of file mouse_event.h.

void pcl::visualization::MouseEvent::setType ( const Type type) [inline]

Sets the mouse event type.

Definition at line 158 of file mouse_event.h.


Member Data Documentation

Definition at line 126 of file mouse_event.h.

Definition at line 129 of file mouse_event.h.

Definition at line 127 of file mouse_event.h.

Definition at line 128 of file mouse_event.h.

Definition at line 125 of file mouse_event.h.


The documentation for this class was generated from the following file:


pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:20:33