MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSpaceMouseController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MRSpaceMouseParameters.h
"
4
#include "
MRMesh/MRMeshFwd.h
"
5
6
namespace
MR
7
{
8
9
// this class stores maps spacemouse event - program action
10
class
SpaceMouseController
11
{
12
public
:
13
MR_ADD_CTOR_DELETE_MOVE
(
SpaceMouseController
);
14
void
connect
();
15
16
MRVIEWER_API
void
setParameters
(
const
SpaceMouseParameters
& newParams );
17
MRVIEWER_API
SpaceMouseParameters
getParameters
()
const
;
18
19
private
:
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
MRMeshFwd.h
MRSpaceMouseParameters.h
MR::SpaceMouseController
Definition
MRSpaceMouseController.h:11
MR::SpaceMouseController::setParameters
MRVIEWER_API void setParameters(const SpaceMouseParameters &newParams)
MR::SpaceMouseController::connect
void connect()
MR::SpaceMouseController::MR_ADD_CTOR_DELETE_MOVE
MR_ADD_CTOR_DELETE_MOVE(SpaceMouseController)
MR::SpaceMouseController::getParameters
MRVIEWER_API SpaceMouseParameters getParameters() const
MR
MR::SpaceMouseParameters
Definition
MRSpaceMouseParameters.h:10
MeshLib
source
MRViewer
MRSpaceMouseController.h
Generated by
1.11.0