OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
cv::viz::MouseEvent Class Reference

This class represents a mouse event. More...

#include "types.hpp"

Public Types

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

Public Member Functions

 MouseEvent (const Type &type, const MouseButton &button, const Point &pointer, int modifiers)
 Constructs a MouseEvent. More...
 

Public Attributes

MouseButton button
 
int modifiers
 
Point pointer
 
Type type
 

Detailed Description

This class represents a mouse event.

Member Enumeration Documentation

Enumerator
NoButton 
LeftButton 
MiddleButton 
RightButton 
VScroll 
Enumerator
MouseMove 
MouseButtonPress 
MouseButtonRelease 
MouseScrollDown 
MouseScrollUp 
MouseDblClick 

Constructor & Destructor Documentation

cv::viz::MouseEvent::MouseEvent ( const Type type,
const MouseButton button,
const Point pointer,
int  modifiers 
)

Constructs a MouseEvent.

Parameters
typeType of the event. This can be MouseMove, MouseButtonPress, MouseButtonRelease**, MouseScrollDown, MouseScrollUp, MouseDblClick.
buttonMouse button. This can be NoButton, LeftButton, MiddleButton, RightButton**, VScroll.
pointerPosition of the event.
modifiersSignals if alt, ctrl or shift are pressed or their combination.

Member Data Documentation

MouseButton cv::viz::MouseEvent::button
int cv::viz::MouseEvent::modifiers
Point cv::viz::MouseEvent::pointer
Type cv::viz::MouseEvent::type

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