vivalib library
Concurrent C++11 OpenCV library for Computer Vision applications
Public Member Functions | List of all members
viva::MouseListener Class Reference

#include <listener.h>

Inheritance diagram for viva::MouseListener:
Inheritance graph
[legend]

Public Member Functions

virtual void mouseInput (int event, int x, int y, int flags)
 
virtual void leftButtonDown (int x, int y, int flags)
 
virtual void rightButtonDown (int x, int y, int flags)
 
virtual void middleButtonDown (int x, int y, int flags)
 
virtual void mouseMove (int x, int y, int flags)
 

Detailed Description

MouseListener Interface

Member Function Documentation

virtual void viva::MouseListener::leftButtonDown ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a mouse left click is triggered

Reimplemented in viva::BatchProcessFrame, and viva::ProcessFrame.

virtual void viva::MouseListener::middleButtonDown ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a mouse middle click is triggered

Reimplemented in viva::BatchProcessFrame, and viva::ProcessFrame.

virtual void viva::MouseListener::mouseInput ( int  event,
int  x,
int  y,
int  flags 
)
inlinevirtual

Will be triggered at any mouse event, the type of the event is especified in the first integer

Parameters
event.event could be one of the following OpenCV values EVENT_LBUTTONDOWN, EVENT_RBUTTONDOWN, EVENT_MBUTTONDOWN, EVENT_MOUSEMOVE.
xthe x coordinates of the mouse cursor
ythe y coordinates of the mouse cursor
flgasthe flags passed from OpenCV

Reimplemented in viva::BatchProcessFrame, and viva::ProcessFrame.

virtual void viva::MouseListener::mouseMove ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a mouse move is triggered.

Reimplemented in viva::BatchProcessFrame, and viva::ProcessFrame.

virtual void viva::MouseListener::rightButtonDown ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a right left click is triggered

Reimplemented in viva::BatchProcessFrame, and viva::ProcessFrame.


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