MeshLib Documentation
Loading...
Searching...
No Matches
MRCameraOrientationPlugin.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MRMesh/MRMeshFwd.h
"
4
#include "
MRViewer/MRStatePlugin.h
"
5
#include "
MRMesh/MRVector3.h
"
6
7
namespace
MR
8
{
9
10
class
CameraOrientation
:
public
MR::StatePlugin
11
{
12
public
:
13
CameraOrientation
();
14
15
virtual
void
drawDialog
(
float
menuScaling, ImGuiContext* )
override
;
16
17
virtual
bool
blocking
()
const override
{
return
false
; }
18
private
:
19
20
Vector3f position_;
21
Vector3f direction_{ 1.f, 0.f, 0.f };
22
Vector3f upDir_{ 0.f, 1.f, 0.f };
23
bool
isAutofit_{
true
};
24
25
virtual
bool
onEnable_()
override
;
26
27
void
drawCameraPresets_(
float
scaling );
28
29
inline
void
autofit_();
30
};
31
32
}
MRMeshFwd.h
MRVector3.h
MRStatePlugin.h
MR::CameraOrientation
Definition
MRCameraOrientationPlugin.h:11
MR::CameraOrientation::CameraOrientation
CameraOrientation()
MR::CameraOrientation::drawDialog
virtual void drawDialog(float menuScaling, ImGuiContext *) override
MR::CameraOrientation::blocking
virtual bool blocking() const override
Definition
MRCameraOrientationPlugin.h:17
MR::StateListenerPlugin
Definition
MRViewerFwd.h:60
MR
Definition
MRCameraOrientationPlugin.h:8
MeshLib
source
MRCommonPlugins
Basic
MRCameraOrientationPlugin.h
Generated by
1.11.0