26 obj->applyScale(scale);
27 scale_ = 1.0f / scale;
31 virtual std::string
name()
const override
41 obj_->applyScale( scale_ );
42 scale_ = 1.0f / scale_;
45 [[nodiscard]]
virtual size_t heapBytes()
const override
47 return name_.capacity();
51 std::shared_ptr<Object> obj_;
Definition MRChangeScaleAction.h:17
Definition MRHistoryAction.h:15
virtual std::string name() const override
Definition MRChangeScaleAction.h:31
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
Definition MRChangeScaleAction.h:45
virtual void action(HistoryAction::Type) override
This function is called on history action (undo, redo, etc.)
Definition MRChangeScaleAction.h:36
ChangeScaleAction(const std::string &name, const std::shared_ptr< Object > &obj, float scale)
Constructor that performs object scaling, and remembers inverted scale value for undoing.
Definition MRChangeScaleAction.h:20
Type
Definition MRHistoryAction.h:22
only for bindings generation
Definition MRCameraOrientationPlugin.h:8