open3d.visualization.gui.MouseEvent

class open3d.visualization.gui.MouseEvent

Object that stores mouse events

class Type

Members:

MOVE

BUTTON_DOWN

DRAG

BUTTON_UP

WHEEL

BUTTON_DOWN = Type.BUTTON_DOWN
BUTTON_UP = Type.BUTTON_UP
DRAG = Type.DRAG
MOVE = Type.MOVE
WHEEL = Type.WHEEL
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

is_button_down(self: open3d.cpu.pybind.visualization.gui.MouseEvent, arg0: open3d.cpu.pybind.visualization.gui.MouseButton) → bool

Convenience function to more easily deterimine if a mouse button is pressed

is_modifier_down(self: open3d.cpu.pybind.visualization.gui.MouseEvent, arg0: open3d.cpu.pybind.visualization.gui.KeyModifier) → bool

Convenience function to more easily deterimine if a modifier key is down

BUTTON_DOWN = Type.BUTTON_DOWN
BUTTON_UP = Type.BUTTON_UP
DRAG = Type.DRAG
MOVE = Type.MOVE
WHEEL = Type.WHEEL
property buttons

ORed mouse buttons

property modifiers

ORed mouse modifiers

property type

Mouse event type

property wheel_dx

Mouse wheel horizontal motion

property wheel_dy

Mouse wheel vertical motion

property wheel_is_trackpad

Is mouse wheel event from a trackpad

property x

x coordinate of the mouse event

property y

y coordinate of the mouse event