19 maskType_{ visualizeMaskType },
23 visualMask_ = obj_->getVisualizePropertyMask( maskType_ );
29 maskType_{ visualizeMaskType },
34 visualMask_ = obj_->getVisualizePropertyMask( maskType_ );
35 obj_->setVisualizePropertyMask( maskType_, newMask );
39 virtual std::string
name()
const override
48 auto bufMask = obj_->getVisualizePropertyMask( maskType_ );
49 obj_->setVisualizePropertyMask( maskType_, visualMask_ );
50 visualMask_ = bufMask;
55 [[nodiscard]]
virtual size_t heapBytes()
const override
57 return name_.capacity();
61 std::shared_ptr<VisualObject> obj_;
79 selected_ = obj_->isSelected();
82 virtual std::string
name()
const override
91 auto bufSel = obj_->isSelected();
92 obj_->select( selected_ );
99 [[nodiscard]]
virtual size_t heapBytes()
const override
101 return name_.capacity();
105 std::shared_ptr<Object> obj_;
106 bool selected_{
false };
122 visibilityMask_ = obj_->visibilityMask();
125 virtual std::string
name()
const override
134 auto bufVisMask = obj_->visibilityMask();
135 obj_->setVisibilityMask( visibilityMask_ );
136 visibilityMask_ = bufVisMask;
144 return name_.capacity();
148 std::shared_ptr<Object> obj_;
Definition MRVisualObject.h:67
Definition MRChangeObjectFields.h:70
static void setObjectDirty(const std::shared_ptr< Object > &)
Definition MRChangeObjectFields.h:96
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
Definition MRChangeObjectFields.h:99
ChangeObjectSelectedAction(const std::string &name, const std::shared_ptr< Object > &obj)
Constructed from original obj.
Definition MRChangeObjectFields.h:74
virtual void action(HistoryAction::Type) override
This function is called on history action (undo, redo, etc.)
Definition MRChangeObjectFields.h:87
virtual std::string name() const override
Definition MRChangeObjectFields.h:82
Definition MRChangeObjectFields.h:113
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
Definition MRChangeObjectFields.h:142
ChangeObjectVisibilityAction(const std::string &name, const std::shared_ptr< Object > &obj)
Constructed from original obj.
Definition MRChangeObjectFields.h:117
virtual void action(HistoryAction::Type) override
This function is called on history action (undo, redo, etc.)
Definition MRChangeObjectFields.h:130
static void setObjectDirty(const std::shared_ptr< Object > &)
Definition MRChangeObjectFields.h:139
virtual std::string name() const override
Definition MRChangeObjectFields.h:125
Definition MRChangeObjectFields.h:12
static void setObjectDirty(const std::shared_ptr< VisualObject > &)
Definition MRChangeObjectFields.h:53
ChangeVisualizePropertyAction(const std::string &name, const std::shared_ptr< VisualObject > &obj, AnyVisualizeMaskEnum visualizeMaskType, ViewportMask newMask)
use this constructor to remember object's visualize property mask and immediately set new value
Definition MRChangeObjectFields.h:27
ChangeVisualizePropertyAction(const std::string &name, const std::shared_ptr< VisualObject > &obj, AnyVisualizeMaskEnum visualizeMaskType)
use this constructor to remember object's visualize property mask before making any changes in it
Definition MRChangeObjectFields.h:17
virtual void action(HistoryAction::Type) override
This function is called on history action (undo, redo, etc.)
Definition MRChangeObjectFields.h:44
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
Definition MRChangeObjectFields.h:55
virtual std::string name() const override
Definition MRChangeObjectFields.h:39
Definition MRHistoryAction.h:12
Type
Definition MRHistoryAction.h:19
named object in the data model
Definition MRObject.h:60
stores mask of viewport unique identifiers
Definition MRViewportId.h:38
Visual Object.
Definition MRVisualObject.h:131
Definition MRCameraOrientationPlugin.h:8