MeshLib C++ Docs
Loading...
Searching...
No Matches

#include <MRMesh/MRVersatileChangeMeshAction.h>

Inheritance diagram for MR::VersatileChangeMeshPointsAction:

Public Types

using Obj = ObjectMesh
Public Types inherited from MR::HistoryAction
enum class  Type { Type::Undo , Type::Redo }

Public Member Functions

 VersatileChangeMeshPointsAction (std::string name, const std::shared_ptr< ObjectMesh > &obj)
 use this constructor to remember object's mesh points in uncompressed format before making any changes in it
 ~VersatileChangeMeshPointsAction ()
virtual std::string name () const override
virtual void action (HistoryAction::Type t) override
 This function is called on history action (undo, redo, etc.)
virtual size_t heapBytes () const override
 returns the amount of memory this object occupies on heap
void compress ()
 switch from uncompressed to compressed format to occupy less amount of memory
Public Member Functions inherited from MR::HistoryAction
 HistoryAction ()=default
 explicitly define ctors to avoid warning C5267: definition of implicit copy constructor is deprecated because it has a user-provided destructor
 HistoryAction (const HistoryAction &)=default
 HistoryAction (HistoryAction &&) noexcept=default
virtual ~HistoryAction ()=default

Static Public Member Functions

static void setObjectDirty (const std::shared_ptr< ObjectMesh > &obj)

Detailed Description

Undo action for ObjectMesh points only (not topology) change; It starts its life storing all points (uncompressed format), but can be switched to store only modified points (compressed format)


The documentation for this class was generated from the following file: