MeshLib Documentation
Loading...
Searching...
No Matches
MRSpaceMouseHandler.h
Go to the documentation of this file.
1#pragma once
2#include "MRMesh/MRMeshFwd.h"
3#include "MRMesh/MRVector3.h"
4#include <functional>
5
6namespace MR
7{
8
51
52
55{
56public:
57 virtual ~SpaceMouseHandler() = default;
58
60 [[nodiscard]] virtual bool initialize() = 0;
61
63 virtual void handle() = 0;
64
66 virtual void updateConnected( int /*jid*/, int /*event*/ ) {};
67};
68
69}
class to handle spacemouse
Definition MRSpaceMouseHandler.h:55
virtual void updateConnected(int, int)
update after connect / disconnect devices
Definition MRSpaceMouseHandler.h:66
virtual bool initialize()=0
initialize device
virtual void handle()=0
handle device state and call Viewer signals
virtual ~SpaceMouseHandler()=default
Definition MRCameraOrientationPlugin.h:8
SpaceMouseButtons
enumeration all spacemouse buttons
Definition MRSpaceMouseHandler.h:11
@ SMB_CUSTOM_6
Definition MRSpaceMouseHandler.h:29
@ SMB_SHIFT
Definition MRSpaceMouseHandler.h:18
@ SMB_ISO1
Definition MRSpaceMouseHandler.h:47
@ SMB_CUSTOM_11
Definition MRSpaceMouseHandler.h:34
@ SMB_CUSTOM_5
Definition MRSpaceMouseHandler.h:28
@ SMB_ALT
Definition MRSpaceMouseHandler.h:20
@ SMB_ENTER
Definition MRSpaceMouseHandler.h:16
@ SMB_BUTTON_COUNT
Definition MRSpaceMouseHandler.h:49
@ SMB_CUSTOM_9
Definition MRSpaceMouseHandler.h:32
@ SMB_CUSTOM_10
Definition MRSpaceMouseHandler.h:33
@ SMB_CUSTOM_12
Definition MRSpaceMouseHandler.h:35
@ SMB_BTN_V2
Definition MRSpaceMouseHandler.h:45
@ SMB_FIT
Definition MRSpaceMouseHandler.h:37
@ SMB_RIGHT
Definition MRSpaceMouseHandler.h:39
@ SMB_MENU
Definition MRSpaceMouseHandler.h:13
@ SMB_ROLL_CW
Definition MRSpaceMouseHandler.h:41
@ SMB_NO
Definition MRSpaceMouseHandler.h:12
@ SMB_CUSTOM_1
Definition MRSpaceMouseHandler.h:24
@ SMB_CUSTOM_3
Definition MRSpaceMouseHandler.h:26
@ SMB_CUSTOM_2
Definition MRSpaceMouseHandler.h:25
@ SMB_DELETE
Definition MRSpaceMouseHandler.h:22
@ SMB_FRONT
Definition MRSpaceMouseHandler.h:40
@ SMB_ESC
Definition MRSpaceMouseHandler.h:15
@ SMB_SPACE
Definition MRSpaceMouseHandler.h:21
@ SMB_TOP
Definition MRSpaceMouseHandler.h:38
@ SMB_CUSTOM_4
Definition MRSpaceMouseHandler.h:27
@ SMB_TAB
Definition MRSpaceMouseHandler.h:17
@ SMB_CUSTOM_8
Definition MRSpaceMouseHandler.h:31
@ SMB_BTN_V3
Definition MRSpaceMouseHandler.h:46
@ SMB_LOCK_ROT
Definition MRSpaceMouseHandler.h:42
@ SMB_BTN_V1
Definition MRSpaceMouseHandler.h:44
@ SMB_CUSTOM_7
Definition MRSpaceMouseHandler.h:30
@ SMB_CTRL
Definition MRSpaceMouseHandler.h:19