MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMouse.h
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4
5namespace MR
6{
9
10
11enum class MouseButton
12{
13 Left = 0,
14 Right = 1,
15 Middle = 2,
16 Count,
18};
19
21enum class MouseMode
22{
23 None,
24 Rotation,
26 Roll,
27 Count
28};
29
30inline std::string getMouseModeString( MouseMode mode )
31{
32 constexpr std::array<const char*, size_t( MouseMode::Count )> names =
33 {
34 "None",
35 "Rotation",
36 "Translation",
37 "Roll"
38 };
39 return names[int( mode )];
40}
41
42}
MouseMode
Standard mouse functions for camera control.
Definition MRMouse.h:22
MouseButton
Definition MRMouse.h:12
std::string getMouseModeString(MouseMode mode)
Definition MRMouse.h:30
@ Roll
Translate camera preserving its direction.
@ Translation
Rotate camera around selected point.
@ Count
Rotate camera around axis orthogonal to screen.
@ Middle
GLFW_MOUSE_BUTTON_2.
@ Right
Definition MRSymbolMesh.h:21
@ Left
Definition MRSymbolMesh.h:19
@ None
special value not to limit path in one slice
Definition MRVoxelPath.h:33
only for bindings generation
Definition MRCameraOrientationPlugin.h:8