MeshLib Documentation
Loading...
Searching...
No Matches
MRSpaceMouseController.h
Go to the documentation of this file.
1#pragma once
2
4#include "MRMesh/MRMeshFwd.h"
5
6namespace MR
7{
8
9// this class stores maps spacemouse event - program action
11{
12public:
14 void connect();
15
16 MRVIEWER_API void setParameters( const SpaceMouseParameters& newParams );
17 MRVIEWER_API SpaceMouseParameters getParameters() const;
18
19private:
20 bool spaceMouseMove_( const Vector3f& translate, const Vector3f& rotate );
21 bool spaceMouseDown_( int key );
22
23 bool lockRotate_{ false };
24 bool showKeyDebug_{ false };
25
26 SpaceMouseParameters params;
27};
28
29} //namespace MR
Definition MRSpaceMouseController.h:11
MRVIEWER_API void setParameters(const SpaceMouseParameters &newParams)
MR_ADD_CTOR_DELETE_MOVE(SpaceMouseController)
MRVIEWER_API SpaceMouseParameters getParameters() const
Definition MRCameraOrientationPlugin.h:8
Definition MRSpaceMouseParameters.h:10