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
13class CameraOrientation : public MR::StatePlugin
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}
Definition MRCameraOrientationPlugin.h:14
virtual void drawDialog(ImGuiContext *) override
virtual bool blocking() const override
Definition MRCameraOrientationPlugin.h:20
only for bindings generation
Definition MRCameraOrientationPlugin.h:8