MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCameraOrientationPlugin.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMesh/MRMeshFwd.h"
5#include "MRMesh/MRVector3.h"
6
7namespace MR
8{
11
12
14{
15public:
17
18 virtual void drawDialog( ImGuiContext* ) override;
19
20 virtual bool blocking() const override { return false; }
21private:
22
23 Vector3f position_;
24 Vector3f direction_{ 1.f, 0.f, 0.f };
25 Vector3f upDir_{ 0.f, 1.f, 0.f };
26 bool isAutofit_{ true };
27
28 virtual bool onEnable_() override;
29
30 void drawCameraPresets_();
31
32 void autofit_();
33 void getCamera_();
34};
35
36}
virtual void drawDialog(ImGuiContext *) override
virtual bool onEnable_()
StateListenerPlugin<> StatePlugin
Definition MRViewerFwd.h:75
virtual bool blocking() const override
true if this item is blocking (only one blocking item can be active at once)
Definition MRCameraOrientationPlugin.h:20
only for bindings generation
Definition MRCameraOrientationPlugin.h:8