MeshLib
 
Loading...
Searching...
No Matches
MRRibbonSceneButtons.h
Go to the documentation of this file.
1#pragma once
2
5#include "MRMesh/MRObject.h"
6
7namespace MR
8{
9
11{
12public:
14
15 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
16
17 // returns true if state of item changed
18 virtual bool action() override;
19private:
20 void sortObjectsRecursive_( std::shared_ptr<Object> object );
21};
22
24{
25public:
27
28 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
29
30 // returns true if state of item changed
31 virtual bool action() override;
32};
33
34class RibbonSceneUnselectAll : public RibbonMenuItem, public SceneStateAtLeastCheck<1, Object, NoModelCheck>
35{
36public:
38
39 // returns true if state of item changed
40 virtual bool action() override;
41};
42
44{
45public:
47
48 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
49
50 // returns true if state of item changed
51 virtual bool action() override;
52};
53
55{
56public:
58
59 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
60
61 // returns true if state of item changed
62 virtual bool action() override;
63};
64
66{
67public:
69
70 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
71
72 // returns true if state of item changed
73 virtual bool action() override;
74};
75
77{
78public:
80
81 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
82
83 // returns true if state of item changed
84 virtual bool action() override;
85};
86
87class RibbonSceneRename : public RibbonMenuItem, public SceneStateExactCheck<1, Object, NoModelCheck>
88{
89public:
91
92 // returns true if state of item changed
93 virtual bool action() override;
94};
95
96class RibbonSceneRemoveSelected : public RibbonMenuItem, public SceneStateAtLeastCheck<1, Object, NoModelCheck>
97{
98public:
100
101 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& objs ) const override;
102
103 // returns true if state of item changed
104 virtual bool action() override;
105};
106
107
108}
Definition MRRibbonMenuItem.h:20
Definition MRRibbonSceneButtons.h:55
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
virtual bool action() override
Definition MRRibbonSceneButtons.h:97
virtual bool action() override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
Definition MRRibbonSceneButtons.h:88
virtual bool action() override
Definition MRRibbonSceneButtons.h:24
virtual bool action() override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
Definition MRRibbonSceneButtons.h:44
virtual bool action() override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
Definition MRRibbonSceneButtons.h:77
virtual bool action() override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
Definition MRRibbonSceneButtons.h:66
virtual bool action() override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
Definition MRRibbonSceneButtons.h:11
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &objs) const override
virtual bool action() override
Definition MRRibbonSceneButtons.h:35
virtual bool action() override
Definition MRSceneStateCheck.h:140
Definition MRSceneStateCheck.h:106
Definition MRCameraOrientationPlugin.h:7