57 #ifndef _RNR_WIN_CV_MOUSE_H 58 #define _RNR_WIN_CV_MOUSE_H 60 #include "rnr/rnrconfig.h" 62 #include "opencv2/core/core.hpp" 175 static void onMouse(
int event,
int x,
int y,
int flags,
void *param);
181 #endif // _RNR_WIN_CV_MOUSE_H void bind(Win *pWin)
Bind the mouse to the given window.
Win * m_pWin
mouse actions are bound to this windo
virtual ~WinCvMouse()
Destructor.
void unbind()
Unbind the mouse instance from the currently bound window.
void disableMouseDrag()
Disable mouse drag operations.
WinCvMouse()
Default contructor.
void enableMouseDrag()
Enable mouse drag operations.
bool m_bDrag
enable mouse drag operation
RoadNarrows Robotics Win abstract base class interface.
CvPoint getMousePoint()
Get the most recently recorded mouse position.
CvPoint m_ptMouse
mouse point
int m_nCurrentEvent
current (user) menu event
int getCurrentEvent()
Get the current mouse event.
RNR Win window abstract base class.
bool m_bDragState
[not] within drag operation
Window OpenCV Mouse base class.
void setCurrentEvent(int nEvent)
Set the current mouse event.
static void onMouse(int event, int x, int y, int flags, void *param)
Mouse event callback handler.