MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMouse.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMesh/MRMeshFwd.h"
4#include <array>
5
6namespace MR
7{
10
11
12enum class MouseButton
13{
14 Left = 0,
15 Right = 1,
16 Middle = 2,
19};
20
30
31inline std::string getMouseModeString( MouseMode mode )
32{
33 constexpr std::array<const char*, size_t( MouseMode::Count )> names =
34 {
35 _t( "None" ),
36 _t( "Rotation" ),
37 _t( "Translation" ),
38 _t( "Roll" )
39 };
40 return names[int( mode )];
41}
42
43}
#define _t(...)
Definition MRMeshFwd.h:837
MouseMode
Standard mouse functions for camera control.
Definition MRMouse.h:23
MouseButton
Definition MRMouse.h:13
std::string getMouseModeString(MouseMode mode)
Definition MRMouse.h:31
@ Roll
Translate camera preserving its direction.
Definition MRMouse.h:27
@ Translation
Rotate camera around selected point.
Definition MRMouse.h:26
@ Count
Rotate camera around axis orthogonal to screen.
Definition MRMouse.h:28
@ Rotation
Definition MRMouse.h:25
@ Middle
GLFW_MOUSE_BUTTON_2.
Definition MRMouse.h:16
@ NoButton
Definition MRMouse.h:18
@ Count
Definition MRPdf.h:42
@ 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