Undo action for ObjectMesh topology only (not points) change.
More...
#include <MRChangeMeshAction.h>
Undo action for ObjectMesh topology only (not points) change.
◆ Obj
◆ ChangeMeshTopologyAction() [1/2]
MR::ChangeMeshTopologyAction::ChangeMeshTopologyAction |
( |
std::string | name, |
|
|
const std::shared_ptr< ObjectMesh > & | obj ) |
|
inline |
use this constructor to remember object's mesh points before making any changes in it
◆ ChangeMeshTopologyAction() [2/2]
MR::ChangeMeshTopologyAction::ChangeMeshTopologyAction |
( |
std::string | name, |
|
|
const std::shared_ptr< ObjectMesh > & | obj, |
|
|
MeshTopology && | newTopology ) |
|
inline |
use this constructor to remember object's mesh topology and immediate set new value
◆ action()
This function is called on history action (undo, redo, etc.)
Implements MR::HistoryAction.
◆ heapBytes()
virtual size_t MR::ChangeMeshTopologyAction::heapBytes |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::HistoryAction.
◆ name()
virtual std::string MR::ChangeMeshTopologyAction::name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setObjectDirty()
static void MR::ChangeMeshTopologyAction::setObjectDirty |
( |
const std::shared_ptr< ObjectMesh > & | obj | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: