Undo action for ObjectMesh creases.
More...
#include <MRChangeSelectionAction.h>
|
| | ChangeMeshCreasesAction (const std::string &name, const std::shared_ptr< ObjectMesh > &objMesh) |
| | use this constructor to remember object's creases before making any changes in it
|
| |
| | ChangeMeshCreasesAction (const std::string &name, const std::shared_ptr< ObjectMesh > &objMesh, UndirectedEdgeBitSet &&newCreases) |
| | use this constructor to remember object's current creases and immediate set new creases
|
| |
| virtual std::string | name () const override |
| |
| virtual void | action (Type) override |
| | This function is called on history action (undo, redo, etc.)
|
| |
| const UndirectedEdgeBitSet & | creases () const |
| |
| virtual size_t | heapBytes () const override |
| | returns the amount of memory this object occupies on heap
|
| |
| virtual | ~HistoryAction ()=default |
| |
Undo action for ObjectMesh creases.
◆ Obj
◆ ChangeMeshCreasesAction() [1/2]
| MR::ChangeMeshCreasesAction::ChangeMeshCreasesAction |
( |
const std::string & | name, |
|
|
const std::shared_ptr< ObjectMesh > & | objMesh ) |
|
inline |
use this constructor to remember object's creases before making any changes in it
◆ ChangeMeshCreasesAction() [2/2]
| MR::ChangeMeshCreasesAction::ChangeMeshCreasesAction |
( |
const std::string & | name, |
|
|
const std::shared_ptr< ObjectMesh > & | objMesh, |
|
|
UndirectedEdgeBitSet && | newCreases ) |
|
inline |
use this constructor to remember object's current creases and immediate set new creases
◆ action()
| virtual void MR::ChangeMeshCreasesAction::action |
( |
Type | actionType | ) |
|
|
inlineoverridevirtual |
This function is called on history action (undo, redo, etc.)
Implements MR::HistoryAction.
◆ creases()
| const UndirectedEdgeBitSet & MR::ChangeMeshCreasesAction::creases |
( |
| ) |
const |
|
inline |
◆ heapBytes()
| virtual size_t MR::ChangeMeshCreasesAction::heapBytes |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::HistoryAction.
◆ name()
| virtual std::string MR::ChangeMeshCreasesAction::name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setObjectDirty()
| static void MR::ChangeMeshCreasesAction::setObjectDirty |
( |
const std::shared_ptr< ObjectMesh > & | | ) |
|
|
inlinestatic |
empty because set dirty is inside setCreases
The documentation for this class was generated from the following file: