Undo action for efficiently storage of partial change in mesh (e.g. a modification of small region)
More...
#include <MRPartialChangeMeshAction.h>
Undo action for efficiently storage of partial change in mesh (e.g. a modification of small region)
◆ PartialChangeMeshAction() [1/2]
MR::PartialChangeMeshAction::PartialChangeMeshAction |
( |
std::string | name, |
|
|
std::shared_ptr< ObjectMesh > | obj, |
|
|
CmpOld | , |
|
|
const Mesh & | oldMesh ) |
|
inline |
use this constructor after the object already contains new mesh, and old mesh is passed to remember the difference for future undoing
◆ PartialChangeMeshAction() [2/2]
MR::PartialChangeMeshAction::PartialChangeMeshAction |
( |
std::string | name, |
|
|
std::shared_ptr< ObjectMesh > | obj, |
|
|
SetNew | , |
|
|
std::shared_ptr< Mesh > && | newMesh ) |
|
inline |
use this constructor to set new object's mesh and remember its difference from existed mesh for future undoing
◆ action()
This function is called on history action (undo, redo, etc.)
Implements MR::HistoryAction.
◆ heapBytes()
virtual size_t MR::PartialChangeMeshAction::heapBytes |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::HistoryAction.
◆ name()
virtual std::string MR::PartialChangeMeshAction::name |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: