MeshLib C++ Docs
Loading...
Searching...
No Matches
MRVersatileChangeMeshAction.h
Go to the documentation of this file.
1
#pragma once
2
#include "
MRHistoryAction.h
"
3
4
namespace
MR
5
{
8
9
13
class
MRMESH_CLASS
VersatileChangeMeshPointsAction
:
public
HistoryAction
14
{
15
public
:
16
using
Obj
=
ObjectMesh
;
17
19
MRMESH_API
VersatileChangeMeshPointsAction
( std::string
name
,
const
std::shared_ptr<ObjectMesh>& obj );
20
21
MRMESH_API
~VersatileChangeMeshPointsAction
();
22
23
[[nodiscard]]
MRMESH_API
virtual
std::string
name
()
const override
;
24
25
MRMESH_API
virtual
void
action
(
HistoryAction::Type
t )
override
;
26
27
MRMESH_API
static
void
setObjectDirty
(
const
std::shared_ptr<ObjectMesh>& obj );
28
29
[[nodiscard]]
MRMESH_API
virtual
size_t
heapBytes
()
const override
;
30
32
MRMESH_API
void
compress
();
33
34
private
:
35
std::unique_ptr<ChangeMeshPointsAction> stdAction_;
36
std::unique_ptr<PartialChangeMeshPointsAction> diffAction_;
37
};
38
39
}
MRHistoryAction.h
MRMESH_API
#define MRMESH_API
Definition
MRMeshFwd.h:80
MRMESH_CLASS
#define MRMESH_CLASS
Definition
MRMeshFwd.h:87
MR::HistoryAction
Definition
MRHistoryAction.h:15
MR::ObjectMesh
Definition
MRObjectMesh.h:14
MR::VersatileChangeMeshPointsAction::Obj
ObjectMesh Obj
Definition
MRVersatileChangeMeshAction.h:16
MR::VersatileChangeMeshPointsAction::~VersatileChangeMeshPointsAction
~VersatileChangeMeshPointsAction()
MR::VersatileChangeMeshPointsAction::heapBytes
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
MR::VersatileChangeMeshPointsAction::action
virtual void action(HistoryAction::Type t) override
This function is called on history action (undo, redo, etc.)
MR::HistoryAction::Type
Type
Definition
MRHistoryAction.h:22
MR::VersatileChangeMeshPointsAction::compress
void compress()
switch from uncompressed to compressed format to occupy less amount of memory
MR::VersatileChangeMeshPointsAction::setObjectDirty
static void setObjectDirty(const std::shared_ptr< ObjectMesh > &obj)
MR::VersatileChangeMeshPointsAction::VersatileChangeMeshPointsAction
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 change...
MR::VersatileChangeMeshPointsAction::name
virtual std::string name() const override
MR
only for bindings generation
Definition
MRCameraOrientationPlugin.h:8
MRMesh
MRVersatileChangeMeshAction.h
Generated by
1.14.0