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