Undo action for efficiently storage of partial change in mesh topology (e.g. a modification of small region) More...
#include <MRPartialChangeMeshAction.h>
Inheritance diagram for MR::PartialChangeMeshTopologyAction:Public Member Functions | |
| PartialChangeMeshTopologyAction (std::string name, std::shared_ptr< ObjectMesh > obj, CmpOld, const MeshTopology &oldTopology) | |
| PartialChangeMeshTopologyAction (std::string name, std::shared_ptr< ObjectMesh > obj, SetNew, MeshTopology &&newTopology) | |
| use this constructor to set new object's topology and remember its difference from existed topology for future undoing | |
| virtual std::string | name () const override |
| virtual void | action (HistoryAction::Type) override |
| This function is called on history action (undo, redo, etc.) | |
| virtual size_t | heapBytes () const override |
| returns the amount of memory this object occupies on heap | |
Public Member Functions inherited from MR::HistoryAction | |
| virtual | ~HistoryAction ()=default |
Additional Inherited Members | |
Public Types inherited from MR::HistoryAction | |
| enum class | Type { Type::Undo , Type::Redo } |
Undo action for efficiently storage of partial change in mesh topology (e.g. a modification of small region)
|
inline |
use this constructor after the object already contains new topology, and old topology is passed to remember the difference for future undoing
|
inline |
use this constructor to set new object's topology and remember its difference from existed topology for future undoing
|
inlineoverridevirtual |
This function is called on history action (undo, redo, etc.)
Implements MR::HistoryAction.
|
inlinenodiscardoverridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::HistoryAction.
|
inlineoverridevirtual |
Implements MR::HistoryAction.