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