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