MeshLib
 
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{
9
11{
12public:
14
15 virtual void drawDialog( float menuScaling, ImGuiContext* ) override;
16
17 virtual bool blocking() const override { return false; }
18private:
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}
Definition MRCameraOrientationPlugin.h:11
virtual void drawDialog(float menuScaling, ImGuiContext *) override
virtual bool blocking() const override
Definition MRCameraOrientationPlugin.h:17
Definition MRViewerFwd.h:60
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
Definition MRCameraOrientationPlugin.h:8