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
25
32
33// Undo action for ObjectVoxels active bounds change
39
40// Undo action for ObjectVoxels surface change (need for faster undo redo)
46
47// Undo action for ObjectVoxels all data change (need for faster undo redo)
53
57
60
63
67
70
78
81
84
89
94
98
102
106
110
113
116
120
123
131
139
142
145
150
155
159
163
167
171
174
177
181
184
192
195
198
203
208
212
216
220
224
227
230
234
237
245
248
251
256
261
265
269
273
277
280
283
287
290
298
301
304
309
314
318
322
326
327#ifdef __cplusplus
328} // extern "C"
329#endif
struct MR_HistoryAction MR_HistoryAction
Definition MRChangeColoringActions.h:15
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 MRE57.h:22
struct MR_ChangeSurfaceAction MR_ChangeSurfaceAction
Definition MRHistoryAction.h:49
struct MR_ChangeGridAction MR_ChangeGridAction
Definition MRHistoryAction.h:19
struct MR_ChangeIsoAction MR_ChangeIsoAction
Definition MRHistoryAction.h:20
struct MR_ChangeDualMarchingCubesAction MR_ChangeDualMarchingCubesAction
Definition MRHistoryAction.h:17
int32_t MR_HistoryAction_Type
Definition MRHistoryAction.h:112
struct MR_ChangeActiveBoxAction MR_ChangeActiveBoxAction
Definition MRHistoryAction.h:15
struct MR_std_shared_ptr_MR_ObjectVoxels MR_std_shared_ptr_MR_ObjectVoxels
Definition MRLoadedObjects.h:16
MR_PassBy
Definition common.h:19
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
virtual std::string name() const override