13class ChangeScaleAction :
public HistoryAction
17 ChangeScaleAction(
const std::string& name,
const std::shared_ptr<Object>& obj,
float scale ) :
23 obj->applyScale(scale);
24 scale_ = 1.0f /
scale;
28 virtual std::string
name()
const override
33 virtual void action( HistoryAction::Type )
override
38 obj_->applyScale( scale_ );
39 scale_ = 1.0f / scale_;
42 [[nodiscard]]
virtual size_t heapBytes()
const override
44 return name_.capacity();
48 std::shared_ptr<Object> obj_;
unsafe ChangeScaleAction(MR._ByValue_ChangeScaleAction _other)
unsafe void action(MR.HistoryAction.Type _1)
std::string name(const T &primitive)
Definition MRFeatures.h:309
MRVIEWER_API float scale()
Definition MRCameraOrientationPlugin.h:8