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