Class cv::viz::MouseEvent#

This class represents a mouse event.

Collaboration diagram for cv::viz::MouseEvent:

Public Types#

Detailed Description#

This class represents a mouse event.

Member Enumeration Documentation#

enum MouseButton

NoButton
Python: cv.viz.MouseEvent_NoButton

LeftButton
Python: cv.viz.MouseEvent_LeftButton

MiddleButton
Python: cv.viz.MouseEvent_MiddleButton

RightButton
Python: cv.viz.MouseEvent_RightButton

VScroll
Python: cv.viz.MouseEvent_VScroll

enum Type

MouseMove
Python: cv.viz.MouseEvent_MouseMove

MouseButtonPress
Python: cv.viz.MouseEvent_MouseButtonPress

MouseButtonRelease
Python: cv.viz.MouseEvent_MouseButtonRelease

MouseScrollDown
Python: cv.viz.MouseEvent_MouseScrollDown

MouseScrollUp
Python: cv.viz.MouseEvent_MouseScrollUp

MouseDblClick
Python: cv.viz.MouseEvent_MouseDblClick

Constructor & Destructor Documentation#

MouseEvent()#

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

Constructs a MouseEvent.

Parameters

  • type — Type of the event. This can be MouseMove, MouseButtonPress, MouseButtonRelease**, MouseScrollDown, MouseScrollUp, MouseDblClick.

  • button — Mouse button. This can be NoButton, LeftButton, MiddleButton, RightButton**, VScroll.

  • pointer — Position of the event.

  • modifiers — Signals if alt, ctrl or shift are pressed or their combination.

Member Data Documentation#

button#

MouseButton cv::viz::MouseEvent::button

modifiers#

int cv::viz::MouseEvent::modifiers

pointer#

Point cv::viz::MouseEvent::pointer

type#

Type cv::viz::MouseEvent::type

Source file#

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