MeshLib C Docs
Loading...
Searching...
No Matches
MRChangeVoxelsAction.h
Go to the documentation of this file.
1#pragma once
2
4#include <MRCMisc/common.h>
5#include <MRCMisc/exports.h>
6
7#include <stdbool.h>
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct MR_HistoryAction MR_HistoryAction; // Defined in `#include <MRCMesh/MRHistoryAction.h>`.
15typedef struct MR_std_shared_ptr_MR_ObjectVoxels MR_std_shared_ptr_MR_ObjectVoxels; // Defined in `#include <MRCMisc/std_shared_ptr_MR_ObjectVoxels.h>`.
16typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
17
18
26
34
35// Undo action for ObjectVoxels active bounds change
42
43// Undo action for ObjectVoxels surface change (need for faster undo redo)
50
51// Undo action for ObjectVoxels all data change (need for faster undo redo)
58
62
65
68
72
75
83
86
89
94
99
103
107
111
115
118
121
125
128
136
144
147
150
155
160
164
168
172
176
179
182
186
189
197
200
203
208
213
217
221
225
229
232
235
239
242
250
253
256
261
266
270
274
278
282
285
288
292
295
303
306
309
314
319
323
327
331
332#ifdef __cplusplus
333} // extern "C"
334#endif
struct MR_HistoryAction MR_HistoryAction
Definition MRChangeColoringActions.h:14
MRC_API const MR_HistoryAction * MR_ChangeActiveBoxAction_UpcastTo_MR_HistoryAction(const MR_ChangeActiveBoxAction *object)
MRC_API MR_std_string * MR_ChangeIsoAction_name(const MR_ChangeIsoAction *_this)
MRC_API MR_uint64_t MR_ChangeGridAction_heapBytes(const MR_ChangeGridAction *_this)
MRC_API MR_std_string * MR_ChangeSurfaceAction_name(const MR_ChangeSurfaceAction *_this)
MRC_API MR_ChangeGridAction * MR_ChangeGridAction_AssignFromAnother(MR_ChangeGridAction *_this, MR_PassBy _other_pass_by, MR_ChangeGridAction *_other)
MRC_API MR_ChangeDualMarchingCubesAction * MR_ChangeDualMarchingCubesAction_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ChangeDualMarchingCubesAction *_other)
MRC_API void MR_ChangeIsoAction_Destroy(const MR_ChangeIsoAction *_this)
Destroys a heap-allocated instance of MR_ChangeIsoAction. Does nothing if the pointer is null.
MRC_API MR_ChangeDualMarchingCubesAction * MR_ChangeDualMarchingCubesAction_OffsetMutablePtr(MR_ChangeDualMarchingCubesAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ChangeActiveBoxAction_Destroy(const MR_ChangeActiveBoxAction *_this)
Destroys a heap-allocated instance of MR_ChangeActiveBoxAction. Does nothing if the pointer is null.
MRC_API void MR_ChangeGridAction_action(MR_ChangeGridAction *_this, MR_HistoryAction_Type obj)
MRC_API MR_ChangeDualMarchingCubesAction * MR_ChangeDualMarchingCubesAction_Construct_3(const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectVoxels *obj, bool storeDual)
MRC_API void MR_ChangeIsoAction_setObjectDirty(const MR_std_shared_ptr_MR_ObjectVoxels *_1)
MRC_API MR_ChangeSurfaceAction * MR_ChangeSurfaceAction_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ChangeSurfaceAction *_other)
MRC_API void MR_ChangeSurfaceAction_setObjectDirty(const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API MR_ChangeActiveBoxAction * MR_ChangeActiveBoxAction_OffsetMutablePtr(MR_ChangeActiveBoxAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ChangeActiveBoxAction_setObjectDirty(const MR_std_shared_ptr_MR_ObjectVoxels *_1)
MRC_API MR_ChangeIsoAction * MR_ChangeIsoAction_Construct(const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API MR_ChangeSurfaceAction * MR_ChangeSurfaceAction_Construct(const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API MR_HistoryAction * MR_ChangeActiveBoxAction_MutableUpcastTo_MR_HistoryAction(MR_ChangeActiveBoxAction *object)
Upcasts an instance of MR::ChangeActiveBoxAction to its base class MR::HistoryAction.
MRC_API void MR_ChangeActiveBoxAction_action(MR_ChangeActiveBoxAction *_this, MR_HistoryAction_Type _1)
MRC_API MR_ChangeActiveBoxAction * MR_ChangeActiveBoxAction_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ChangeActiveBoxAction *_other)
MRC_API void MR_ChangeActiveBoxAction_DestroyArray(const MR_ChangeActiveBoxAction *_this)
Destroys a heap-allocated array of MR_ChangeActiveBoxAction. Does nothing if the pointer is null.
MRC_API void MR_ChangeSurfaceAction_DestroyArray(const MR_ChangeSurfaceAction *_this)
Destroys a heap-allocated array of MR_ChangeSurfaceAction. Does nothing if the pointer is null.
MRC_API MR_ChangeDualMarchingCubesAction * MR_ChangeDualMarchingCubesAction_AssignFromAnother(MR_ChangeDualMarchingCubesAction *_this, MR_PassBy _other_pass_by, MR_ChangeDualMarchingCubesAction *_other)
MRC_API void MR_ChangeGridAction_Destroy(const MR_ChangeGridAction *_this)
Destroys a heap-allocated instance of MR_ChangeGridAction. Does nothing if the pointer is null.
MRC_API MR_ChangeSurfaceAction * MR_ChangeSurfaceAction_OffsetMutablePtr(MR_ChangeSurfaceAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_ChangeIsoAction * MR_ChangeIsoAction_AssignFromAnother(MR_ChangeIsoAction *_this, MR_PassBy _other_pass_by, MR_ChangeIsoAction *_other)
MRC_API MR_HistoryAction * MR_ChangeDualMarchingCubesAction_MutableUpcastTo_MR_HistoryAction(MR_ChangeDualMarchingCubesAction *object)
Upcasts an instance of MR::ChangeDualMarchingCubesAction to its base class MR::HistoryAction.
MRC_API void MR_ChangeDualMarchingCubesAction_DestroyArray(const MR_ChangeDualMarchingCubesAction *_this)
Destroys a heap-allocated array of MR_ChangeDualMarchingCubesAction. Does nothing if the pointer is n...
MRC_API void MR_ChangeGridAction_DestroyArray(const MR_ChangeGridAction *_this)
Destroys a heap-allocated array of MR_ChangeGridAction. Does nothing if the pointer is null.
MRC_API void MR_ChangeSurfaceAction_action(MR_ChangeSurfaceAction *_this, MR_HistoryAction_Type _1)
MRC_API MR_ChangeDualMarchingCubesAction * MR_ChangeDualMarchingCubesAction_Construct_2(const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API MR_std_string * MR_ChangeGridAction_name(const MR_ChangeGridAction *_this)
MRC_API const MR_ChangeIsoAction * MR_ChangeIsoAction_OffsetPtr(const MR_ChangeIsoAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_ChangeGridAction * MR_ChangeGridAction_OffsetMutablePtr(MR_ChangeGridAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ChangeIsoAction_DestroyArray(const MR_ChangeIsoAction *_this)
Destroys a heap-allocated array of MR_ChangeIsoAction. Does nothing if the pointer is null.
MRC_API MR_uint64_t MR_ChangeDualMarchingCubesAction_heapBytes(const MR_ChangeDualMarchingCubesAction *_this)
MRC_API MR_uint64_t MR_ChangeActiveBoxAction_heapBytes(const MR_ChangeActiveBoxAction *_this)
MRC_API MR_HistoryAction * MR_ChangeGridAction_MutableUpcastTo_MR_HistoryAction(MR_ChangeGridAction *object)
Upcasts an instance of MR::ChangeGridAction to its base class MR::HistoryAction.
MRC_API MR_ChangeIsoAction * MR_ChangeIsoAction_OffsetMutablePtr(MR_ChangeIsoAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ChangeIsoAction_action(MR_ChangeIsoAction *_this, MR_HistoryAction_Type _1)
MRC_API const MR_ChangeGridAction * MR_ChangeGridAction_OffsetPtr(const MR_ChangeGridAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_ChangeActiveBoxAction * MR_ChangeActiveBoxAction_OffsetPtr(const MR_ChangeActiveBoxAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_ChangeGridAction * MR_ChangeGridAction_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ChangeGridAction *_other)
MRC_API void MR_ChangeSurfaceAction_Destroy(const MR_ChangeSurfaceAction *_this)
Destroys a heap-allocated instance of MR_ChangeSurfaceAction. Does nothing if the pointer is null.
MRC_API const MR_HistoryAction * MR_ChangeDualMarchingCubesAction_UpcastTo_MR_HistoryAction(const MR_ChangeDualMarchingCubesAction *object)
MRC_API const MR_ChangeSurfaceAction * MR_ChangeSurfaceAction_OffsetPtr(const MR_ChangeSurfaceAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ChangeGridAction_setObjectDirty(const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API MR_std_string * MR_ChangeActiveBoxAction_name(const MR_ChangeActiveBoxAction *_this)
MRC_API MR_std_string * MR_ChangeDualMarchingCubesAction_name(const MR_ChangeDualMarchingCubesAction *_this)
MRC_API const MR_ChangeDualMarchingCubesAction * MR_ChangeDualMarchingCubesAction_OffsetPtr(const MR_ChangeDualMarchingCubesAction *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ChangeDualMarchingCubesAction_setObjectDirty(const MR_std_shared_ptr_MR_ObjectVoxels *_1)
MRC_API MR_uint64_t MR_ChangeSurfaceAction_heapBytes(const MR_ChangeSurfaceAction *_this)
MRC_API const MR_HistoryAction * MR_ChangeSurfaceAction_UpcastTo_MR_HistoryAction(const MR_ChangeSurfaceAction *object)
MRC_API MR_ChangeIsoAction * MR_ChangeIsoAction_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ChangeIsoAction *_other)
MRC_API MR_ChangeSurfaceAction * MR_ChangeSurfaceAction_AssignFromAnother(MR_ChangeSurfaceAction *_this, MR_PassBy _other_pass_by, MR_ChangeSurfaceAction *_other)
MRC_API const MR_HistoryAction * MR_ChangeIsoAction_UpcastTo_MR_HistoryAction(const MR_ChangeIsoAction *object)
MRC_API void MR_ChangeDualMarchingCubesAction_action(MR_ChangeDualMarchingCubesAction *_this, MR_HistoryAction_Type _1)
MRC_API MR_uint64_t MR_ChangeIsoAction_heapBytes(const MR_ChangeIsoAction *_this)
MRC_API MR_HistoryAction * MR_ChangeSurfaceAction_MutableUpcastTo_MR_HistoryAction(MR_ChangeSurfaceAction *object)
Upcasts an instance of MR::ChangeSurfaceAction to its base class MR::HistoryAction.
MRC_API MR_ChangeActiveBoxAction * MR_ChangeActiveBoxAction_AssignFromAnother(MR_ChangeActiveBoxAction *_this, MR_PassBy _other_pass_by, MR_ChangeActiveBoxAction *_other)
MRC_API MR_HistoryAction * MR_ChangeIsoAction_MutableUpcastTo_MR_HistoryAction(MR_ChangeIsoAction *object)
Upcasts an instance of MR::ChangeIsoAction to its base class MR::HistoryAction.
MRC_API MR_ChangeActiveBoxAction * MR_ChangeActiveBoxAction_Construct(const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API MR_ChangeGridAction * MR_ChangeGridAction_Construct(const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectVoxels *obj)
MRC_API void MR_ChangeDualMarchingCubesAction_Destroy(const MR_ChangeDualMarchingCubesAction *_this)
Destroys a heap-allocated instance of MR_ChangeDualMarchingCubesAction. Does nothing if the pointer i...
MRC_API const MR_HistoryAction * MR_ChangeGridAction_UpcastTo_MR_HistoryAction(const MR_ChangeGridAction *object)
struct MR_std_string MR_std_string
Definition MRCtm.h:32
MR_HistoryAction_Type
Definition MRHistoryAction.h:65
struct MR_ChangeSurfaceAction MR_ChangeSurfaceAction
Definition MRHistoryAction.h:49
struct MR_ChangeGridAction MR_ChangeGridAction
Definition MRHistoryAction.h:18
struct MR_ChangeIsoAction MR_ChangeIsoAction
Definition MRHistoryAction.h:19
struct MR_ChangeDualMarchingCubesAction MR_ChangeDualMarchingCubesAction
Definition MRHistoryAction.h:16
struct MR_ChangeActiveBoxAction MR_ChangeActiveBoxAction
Definition MRHistoryAction.h:14
struct MR_std_shared_ptr_MR_ObjectVoxels MR_std_shared_ptr_MR_ObjectVoxels
Definition MRLoadedObjects.h:18
MR_PassBy
Definition common.h:23
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition exports.h:11
virtual std::string name() const override