MeshLib C Docs
Loading...
Searching...
No Matches
MRChangeXfAction.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_ChangeXfAction MR_ChangeXfAction

Functions

MRC_API MR_ChangeXfActionMR_ChangeXfAction_ConstructFromAnother (MR_PassBy _other_pass_by, MR_ChangeXfAction *_other)
MRC_API const MR_ChangeXfActionMR_ChangeXfAction_OffsetPtr (const MR_ChangeXfAction *ptr, ptrdiff_t i)
MRC_API MR_ChangeXfActionMR_ChangeXfAction_OffsetMutablePtr (MR_ChangeXfAction *ptr, ptrdiff_t i)
MRC_API const MR_HistoryActionMR_ChangeXfAction_UpcastTo_MR_HistoryAction (const MR_ChangeXfAction *object)
MRC_API MR_HistoryActionMR_ChangeXfAction_MutableUpcastTo_MR_HistoryAction (MR_ChangeXfAction *object)
MRC_API const MR_ChangeXfActionMR_ChangeXfAction_StaticDowncastFrom_MR_HistoryAction (const MR_HistoryAction *object)
MRC_API MR_ChangeXfActionMR_ChangeXfAction_MutableStaticDowncastFrom_MR_HistoryAction (MR_HistoryAction *object)
MRC_API const MR_ChangeXfActionMR_ChangeXfAction_DynamicDowncastFrom_MR_HistoryAction (const MR_HistoryAction *object)
MRC_API MR_ChangeXfActionMR_ChangeXfAction_MutableDynamicDowncastFrom_MR_HistoryAction (MR_HistoryAction *object)
MRC_API const MR_ChangeXfActionMR_ChangeXfAction_DynamicDowncastFromOrFail_MR_HistoryAction (const MR_HistoryAction *object)
MRC_API MR_ChangeXfActionMR_ChangeXfAction_MutableDynamicDowncastFromOrFail_MR_HistoryAction (MR_HistoryAction *object)
MRC_API MR_ChangeXfActionMR_ChangeXfAction_Construct_2 (const char *name, const char *name_end, const MR_std_shared_ptr_MR_Object *obj)
MRC_API MR_ChangeXfActionMR_ChangeXfAction_Construct_3 (const char *name, const char *name_end, const MR_std_shared_ptr_MR_Object *obj, const MR_AffineXf3f *newXf)
MRC_API void MR_ChangeXfAction_Destroy (const MR_ChangeXfAction *_this)
 Destroys a heap-allocated instance of MR_ChangeXfAction. Does nothing if the pointer is null.
MRC_API void MR_ChangeXfAction_DestroyArray (const MR_ChangeXfAction *_this)
 Destroys a heap-allocated array of MR_ChangeXfAction. Does nothing if the pointer is null.
MRC_API MR_ChangeXfActionMR_ChangeXfAction_AssignFromAnother (MR_ChangeXfAction *_this, MR_PassBy _other_pass_by, MR_ChangeXfAction *_other)
MRC_API MR_std_stringMR_ChangeXfAction_name (const MR_ChangeXfAction *_this)
MRC_API void MR_ChangeXfAction_action (MR_ChangeXfAction *_this, MR_HistoryAction_Type _1)
MRC_API MR_uint64_t MR_ChangeXfAction_heapBytes (const MR_ChangeXfAction *_this)
MRC_API const MR_std_shared_ptr_MR_ObjectMR_ChangeXfAction_obj (const MR_ChangeXfAction *_this)

Typedef Documentation

◆ MR_ChangeXfAction

History action for xf change Generated from class MR::ChangeXfAction. Base classes: Direct: (non-virtual) MR::HistoryAction Supported MR_PassBy modes: MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_ChangeXfAction_action()

MRC_API void MR_ChangeXfAction_action ( MR_ChangeXfAction * _this,
MR_HistoryAction_Type _1 )

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

◆ MR_ChangeXfAction_AssignFromAnother()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_AssignFromAnother ( MR_ChangeXfAction * _this,
MR_PassBy _other_pass_by,
MR_ChangeXfAction * _other )

Generated from method MR::ChangeXfAction::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_ChangeXfAction_Construct_2()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_Construct_2 ( const char * name,
const char * name_end,
const MR_std_shared_ptr_MR_Object * obj )

use this constructor to remember object's transformation before making any changes in it Generated from constructor MR::ChangeXfAction::ChangeXfAction. 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_ChangeXfAction_Destroy() to free it when you're done using it.

◆ MR_ChangeXfAction_Construct_3()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_Construct_3 ( const char * name,
const char * name_end,
const MR_std_shared_ptr_MR_Object * obj,
const MR_AffineXf3f * newXf )

use this constructor to remember object's transformation and immediately set new mesh Generated from constructor MR::ChangeXfAction::ChangeXfAction. 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. Parameter newXf can not be null. It is a single object. The reference to the parameter newXf might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ChangeXfAction_Destroy() to free it when you're done using it.

◆ MR_ChangeXfAction_ConstructFromAnother()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_ChangeXfAction * _other )

Generated from constructor MR::ChangeXfAction::ChangeXfAction. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ChangeXfAction_Destroy() to free it when you're done using it.

◆ MR_ChangeXfAction_Destroy()

MRC_API void MR_ChangeXfAction_Destroy ( const MR_ChangeXfAction * _this)

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

◆ MR_ChangeXfAction_DestroyArray()

MRC_API void MR_ChangeXfAction_DestroyArray ( const MR_ChangeXfAction * _this)

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

◆ MR_ChangeXfAction_DynamicDowncastFrom_MR_HistoryAction()

MRC_API const MR_ChangeXfAction * MR_ChangeXfAction_DynamicDowncastFrom_MR_HistoryAction ( const MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::ChangeXfAction. 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_ChangeXfAction_DynamicDowncastFromOrFail_MR_HistoryAction()

MRC_API const MR_ChangeXfAction * MR_ChangeXfAction_DynamicDowncastFromOrFail_MR_HistoryAction ( const MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::ChangeXfAction. 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_ChangeXfAction_heapBytes()

MRC_API MR_uint64_t MR_ChangeXfAction_heapBytes ( const MR_ChangeXfAction * _this)

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

◆ MR_ChangeXfAction_MutableDynamicDowncastFrom_MR_HistoryAction()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_MutableDynamicDowncastFrom_MR_HistoryAction ( MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::ChangeXfAction. 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_ChangeXfAction_MutableDynamicDowncastFromOrFail_MR_HistoryAction()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_MutableDynamicDowncastFromOrFail_MR_HistoryAction ( MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::ChangeXfAction. 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_ChangeXfAction_MutableStaticDowncastFrom_MR_HistoryAction()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_MutableStaticDowncastFrom_MR_HistoryAction ( MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::ChangeXfAction. 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_ChangeXfAction_MutableUpcastTo_MR_HistoryAction()

MRC_API MR_HistoryAction * MR_ChangeXfAction_MutableUpcastTo_MR_HistoryAction ( MR_ChangeXfAction * object)

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

◆ MR_ChangeXfAction_name()

MRC_API MR_std_string * MR_ChangeXfAction_name ( const MR_ChangeXfAction * _this)

Generated from method MR::ChangeXfAction::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_ChangeXfAction_obj()

MRC_API const MR_std_shared_ptr_MR_Object * MR_ChangeXfAction_obj ( const MR_ChangeXfAction * _this)

Generated from method MR::ChangeXfAction::obj. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ChangeXfAction_OffsetMutablePtr()

MRC_API MR_ChangeXfAction * MR_ChangeXfAction_OffsetMutablePtr ( MR_ChangeXfAction * 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_ChangeXfAction_OffsetPtr()

MRC_API const MR_ChangeXfAction * MR_ChangeXfAction_OffsetPtr ( const MR_ChangeXfAction * 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_ChangeXfAction_StaticDowncastFrom_MR_HistoryAction()

MRC_API const MR_ChangeXfAction * MR_ChangeXfAction_StaticDowncastFrom_MR_HistoryAction ( const MR_HistoryAction * object)

Downcasts an instance of MR::HistoryAction to a derived class MR::ChangeXfAction. 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_ChangeXfAction_UpcastTo_MR_HistoryAction()

MRC_API const MR_HistoryAction * MR_ChangeXfAction_UpcastTo_MR_HistoryAction ( const MR_ChangeXfAction * object)

Upcasts an instance of MR::ChangeXfAction 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.