MeshLib Documentation
Loading...
Searching...
No Matches
MRSceneControlMenuItems.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace MR
8{
9
10class ResetSceneMenuItem : public RibbonMenuItem, public MultiListener<PreDrawListener>
11{
12public:
14 virtual bool action() override;
15 virtual bool blocking()const override { return true; }
16private:
17 virtual void preDraw_() override;
18 void resetScene_();
19 bool openPopup_{ false };
20 unsigned popupId_{ 0 };
21};
22
24{
25public:
27 virtual bool action() override;
28 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
29};
30
32{
33public:
35 virtual bool action() override;
36 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
37};
38
40{
41public:
43 virtual bool action() override;
44 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
45};
46
48{
49public:
50 enum class Type
51 {
52 Front,
53 Top,
54 // 2 is skipped
55 Bottom = 3,
56 Left,
57 Back,
58 Right,
60 Count
61 };
63 virtual bool action() override;
64private:
65 Type type_;
66};
67
69{
70public:
71 enum class Type
72 {
73 Single,
76 Quad,
77 Hex,
78 Count
79 };
81 virtual void setCustomUpdateViewports( const std::function<void( const ViewportMask )>& callback ) { updateViewports_ = callback; }
82 virtual bool action() override;
83private:
84 Type type_;
85 std::function<void( const ViewportMask appendedViewports )> updateViewports_;
86};
87
88}
Definition MRSceneControlMenuItems.h:24
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
virtual bool action() override
Definition MRSceneControlMenuItems.h:32
virtual bool action() override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
Definition MRSceneControlMenuItems.h:40
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
virtual bool action() override
Definition MRSceneControlMenuItems.h:11
virtual bool action() override
virtual bool blocking() const override
Definition MRSceneControlMenuItems.h:15
Definition MRRibbonMenuItem.h:20
virtual RibbonItemType type() const
Definition MRRibbonMenuItem.h:45
Definition MRSceneControlMenuItems.h:48
virtual bool action() override
Type
Definition MRSceneControlMenuItems.h:51
SetViewPresetMenuItem(Type type)
Definition MRSceneControlMenuItems.h:69
Type
Definition MRSceneControlMenuItems.h:72
virtual bool action() override
virtual void setCustomUpdateViewports(const std::function< void(const ViewportMask)> &callback)
Definition MRSceneControlMenuItems.h:81
stores mask of viewport unique identifiers
Definition MRViewportId.h:38
Definition MRCameraOrientationPlugin.h:8
Definition MRViewerEventsListener.h:29