MeshLib C Docs
Loading...
Searching...
No Matches
MRVersatileChangeMeshAction.h File Reference
#include <MRCMesh/MRHistoryAction.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_VersatileChangeMeshPointsAction MR_VersatileChangeMeshPointsAction

Functions

MRC_API MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_Construct (const char *name, const char *name_end, const MR_std_shared_ptr_MR_ObjectMesh *obj)
MRC_API const MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_OffsetPtr (const MR_VersatileChangeMeshPointsAction *ptr, ptrdiff_t i)
MRC_API MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_OffsetMutablePtr (MR_VersatileChangeMeshPointsAction *ptr, ptrdiff_t i)
MRC_API const MR_HistoryActionMR_VersatileChangeMeshPointsAction_UpcastTo_MR_HistoryAction (const MR_VersatileChangeMeshPointsAction *object)
MRC_API MR_HistoryActionMR_VersatileChangeMeshPointsAction_MutableUpcastTo_MR_HistoryAction (MR_VersatileChangeMeshPointsAction *object)
MRC_API const MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_StaticDowncastFrom_MR_HistoryAction (const MR_HistoryAction *object)
MRC_API MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_MutableStaticDowncastFrom_MR_HistoryAction (MR_HistoryAction *object)
MRC_API const MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_DynamicDowncastFrom_MR_HistoryAction (const MR_HistoryAction *object)
MRC_API MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFrom_MR_HistoryAction (MR_HistoryAction *object)
MRC_API const MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_DynamicDowncastFromOrFail_MR_HistoryAction (const MR_HistoryAction *object)
MRC_API MR_VersatileChangeMeshPointsActionMR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFromOrFail_MR_HistoryAction (MR_HistoryAction *object)
MRC_API void MR_VersatileChangeMeshPointsAction_Destroy (const MR_VersatileChangeMeshPointsAction *_this)
 Destroys a heap-allocated instance of MR_VersatileChangeMeshPointsAction. Does nothing if the pointer is null.
MRC_API void MR_VersatileChangeMeshPointsAction_DestroyArray (const MR_VersatileChangeMeshPointsAction *_this)
 Destroys a heap-allocated array of MR_VersatileChangeMeshPointsAction. Does nothing if the pointer is null.
MRC_API MR_std_stringMR_VersatileChangeMeshPointsAction_name (const MR_VersatileChangeMeshPointsAction *_this)
MRC_API void MR_VersatileChangeMeshPointsAction_action (MR_VersatileChangeMeshPointsAction *_this, MR_HistoryAction_Type t)
MRC_API void MR_VersatileChangeMeshPointsAction_setObjectDirty (const MR_std_shared_ptr_MR_ObjectMesh *obj)
MRC_API MR_uint64_t MR_VersatileChangeMeshPointsAction_heapBytes (const MR_VersatileChangeMeshPointsAction *_this)
MRC_API void MR_VersatileChangeMeshPointsAction_compress (MR_VersatileChangeMeshPointsAction *_this)

Typedef Documentation

◆ MR_VersatileChangeMeshPointsAction

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) Generated from class MR::VersatileChangeMeshPointsAction. Base classes: Direct: (non-virtual) MR::HistoryAction

Function Documentation

◆ MR_VersatileChangeMeshPointsAction_action()

MRC_API void MR_VersatileChangeMeshPointsAction_action ( MR_VersatileChangeMeshPointsAction * _this,
MR_HistoryAction_Type t )

Generated from method MR::VersatileChangeMeshPointsAction::action. Parameter _this can not be null. It is a single object.

◆ MR_VersatileChangeMeshPointsAction_compress()

MRC_API void MR_VersatileChangeMeshPointsAction_compress ( MR_VersatileChangeMeshPointsAction * _this)

switch from uncompressed to compressed format to occupy less amount of memory Generated from method MR::VersatileChangeMeshPointsAction::compress. Parameter _this can not be null. It is a single object.

◆ MR_VersatileChangeMeshPointsAction_Construct()

MRC_API MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_Construct ( const char * name,
const char * name_end,
const MR_std_shared_ptr_MR_ObjectMesh * obj )

use this constructor to remember object's mesh points in uncompressed format before making any changes in it Generated from constructor MR::VersatileChangeMeshPointsAction::VersatileChangeMeshPointsAction. Parameter name can not be null. If name_end is null, then name is assumed to be null-terminated. The reference to the parameter name might be preserved in the constructed object. Parameter obj can not be null. It is a single object. The reference to the parameter obj might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_VersatileChangeMeshPointsAction_Destroy() to free it when you're done using it.

◆ MR_VersatileChangeMeshPointsAction_Destroy()

MRC_API void MR_VersatileChangeMeshPointsAction_Destroy ( const MR_VersatileChangeMeshPointsAction * _this)

Destroys a heap-allocated instance of MR_VersatileChangeMeshPointsAction. Does nothing if the pointer is null.

◆ MR_VersatileChangeMeshPointsAction_DestroyArray()

MRC_API void MR_VersatileChangeMeshPointsAction_DestroyArray ( const MR_VersatileChangeMeshPointsAction * _this)

Destroys a heap-allocated array of MR_VersatileChangeMeshPointsAction. Does nothing if the pointer is null.

◆ MR_VersatileChangeMeshPointsAction_DynamicDowncastFrom_MR_HistoryAction()

MRC_API const MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_DynamicDowncastFrom_MR_HistoryAction ( const MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::VersatileChangeMeshPointsAction. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_DynamicDowncastFromOrFail_MR_HistoryAction()

MRC_API const MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_DynamicDowncastFromOrFail_MR_HistoryAction ( const MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::VersatileChangeMeshPointsAction. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. This version is acting on mutable pointers. Parameter object can not be null. It is a single object. The reference to the parameter object might be preserved in the return value. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_VersatileChangeMeshPointsAction_heapBytes()

MRC_API MR_uint64_t MR_VersatileChangeMeshPointsAction_heapBytes ( const MR_VersatileChangeMeshPointsAction * _this)

Generated from method MR::VersatileChangeMeshPointsAction::heapBytes. Parameter _this can not be null. It is a single object.

◆ MR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFrom_MR_HistoryAction()

MRC_API MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFrom_MR_HistoryAction ( MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::VersatileChangeMeshPointsAction. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. The reference to the parameter object might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFromOrFail_MR_HistoryAction()

MRC_API MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFromOrFail_MR_HistoryAction ( MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::VersatileChangeMeshPointsAction. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. Parameter object can not be null. It is a single object. The reference to the parameter object might be preserved in the return value. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_VersatileChangeMeshPointsAction_MutableStaticDowncastFrom_MR_HistoryAction()

MRC_API MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_MutableStaticDowncastFrom_MR_HistoryAction ( MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::VersatileChangeMeshPointsAction. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. The reference to the parameter object might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_MutableUpcastTo_MR_HistoryAction()

MRC_API MR_HistoryAction * MR_VersatileChangeMeshPointsAction_MutableUpcastTo_MR_HistoryAction ( MR_VersatileChangeMeshPointsAction * object)

Upcasts an instance of MR::VersatileChangeMeshPointsAction to its base class MR::HistoryAction. The reference to the parameter object might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_name()

MRC_API MR_std_string * MR_VersatileChangeMeshPointsAction_name ( const MR_VersatileChangeMeshPointsAction * _this)

Generated from method MR::VersatileChangeMeshPointsAction::name. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy() to free it when you're done using it.

◆ MR_VersatileChangeMeshPointsAction_OffsetMutablePtr()

MRC_API MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_OffsetMutablePtr ( MR_VersatileChangeMeshPointsAction * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_OffsetPtr()

MRC_API const MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_OffsetPtr ( const MR_VersatileChangeMeshPointsAction * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_setObjectDirty()

MRC_API void MR_VersatileChangeMeshPointsAction_setObjectDirty ( const MR_std_shared_ptr_MR_ObjectMesh * obj)

Generated from method MR::VersatileChangeMeshPointsAction::setObjectDirty. Parameter obj can not be null. It is a single object.

◆ MR_VersatileChangeMeshPointsAction_StaticDowncastFrom_MR_HistoryAction()

MRC_API const MR_VersatileChangeMeshPointsAction * MR_VersatileChangeMeshPointsAction_StaticDowncastFrom_MR_HistoryAction ( const MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::VersatileChangeMeshPointsAction. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.

◆ MR_VersatileChangeMeshPointsAction_UpcastTo_MR_HistoryAction()

MRC_API const MR_HistoryAction * MR_VersatileChangeMeshPointsAction_UpcastTo_MR_HistoryAction ( const MR_VersatileChangeMeshPointsAction * object)

Upcasts an instance of MR::VersatileChangeMeshPointsAction to its base class MR::HistoryAction. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.