#include <MRCMesh/MRUnitInfo.h>#include <MRCMisc/common.h>#include <MRCMisc/exports.h>#include <stdbool.h>#include <stddef.h>Go to the source code of this file.
| typedef struct MR_SceneLoad_Result MR_SceneLoad_Result |
Scene loading result Generated from class MR::SceneLoad::Result. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_SceneLoad_Settings MR_SceneLoad_Settings |
Generated from class MR::SceneLoad::Settings. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float |
| typedef struct MR_std_function_void_from_MR_SceneLoad_Result MR_std_function_void_from_MR_SceneLoad_Result |
| typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit |
| typedef struct MR_std_string MR_std_string |
| MRC_API void MR_SceneLoad_asyncFromAnySupportedFormat | ( | const MR_std_vector_std_filesystem_path * | files, |
| const MR_std_function_void_from_MR_SceneLoad_Result * | postLoadCallback, | ||
| const MR_SceneLoad_Settings * | settings ) |
Generated from function MR::SceneLoad::asyncFromAnySupportedFormat. Parameter files can not be null. It is a single object. Parameter postLoadCallback can not be null. It is a single object. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_fromAnySupportedFormat | ( | const MR_std_vector_std_filesystem_path * | files, |
| const MR_SceneLoad_Settings * | settings ) |
Load scene from file; if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects Generated from function MR::SceneLoad::fromAnySupportedFormat. Parameter files can not be null. It is a single object. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_AssignFromAnother | ( | MR_SceneLoad_Result * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_SceneLoad_Result * | _other ) |
Generated from method MR::SceneLoad::Result::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 had previously.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_ConstructFrom | ( | MR_PassBy | scene_pass_by, |
| MR_std_shared_ptr_MR_SceneRootObject * | scene, | ||
| bool | isSceneConstructed, | ||
| MR_PassBy | loadedFiles_pass_by, | ||
| MR_std_vector_std_filesystem_path * | loadedFiles, | ||
| const char * | errorSummary, | ||
| const char * | errorSummary_end, | ||
| const char * | warningSummary, | ||
| const char * | warningSummary_end ) |
Constructs MR::SceneLoad::Result elementwise. The reference to the parameter scene might be preserved in the constructed object. The reference to the parameter loadedFiles might be preserved in the constructed object. Parameter errorSummary can not be null. If errorSummary_end is null, then errorSummary is assumed to be null-terminated. The reference to the parameter errorSummary might be preserved in the constructed object. Parameter warningSummary can not be null. If warningSummary_end is null, then warningSummary is assumed to be null-terminated. The reference to the parameter warningSummary might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_SceneLoad_Result * | _other ) |
Generated from constructor MR::SceneLoad::Result::Result. 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_SceneLoad_Result_Destroy() to free it when you're done using it.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_SceneLoad_Result_DestroyArray(). Use MR_SceneLoad_Result_OffsetMutablePtr() and MR_SceneLoad_Result_OffsetPtr() to access the array elements.
| MRC_API void MR_SceneLoad_Result_Destroy | ( | const MR_SceneLoad_Result * | _this | ) |
Destroys a heap-allocated instance of MR_SceneLoad_Result. Does nothing if the pointer is null.
| MRC_API void MR_SceneLoad_Result_DestroyArray | ( | const MR_SceneLoad_Result * | _this | ) |
Destroys a heap-allocated array of MR_SceneLoad_Result. Does nothing if the pointer is null.
| MRC_API const MR_std_string * MR_SceneLoad_Result_Get_errorSummary | ( | const MR_SceneLoad_Result * | _this | ) |
Error summary text.
Returns a pointer to a member variable of class MR::SceneLoad::Result named errorSummary. 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.
| MRC_API const bool * MR_SceneLoad_Result_Get_isSceneConstructed | ( | const MR_SceneLoad_Result * | _this | ) |
Marks whether the scene was loaded from a single file (false) or was built from scratch (true) Returns a pointer to a member variable of class MR::SceneLoad::Result named isSceneConstructed. 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.
| MRC_API const MR_std_vector_std_filesystem_path * MR_SceneLoad_Result_Get_loadedFiles | ( | const MR_SceneLoad_Result * | _this | ) |
List of successfully loaded files Returns a pointer to a member variable of class MR::SceneLoad::Result named loadedFiles. 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.
| MRC_API const MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_Result_Get_scene | ( | const MR_SceneLoad_Result * | _this | ) |
The loaded scene or empty object Returns a pointer to a member variable of class MR::SceneLoad::Result named scene. 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.
| MRC_API const MR_std_string * MR_SceneLoad_Result_Get_warningSummary | ( | const MR_SceneLoad_Result * | _this | ) |
Warning summary text.
Returns a pointer to a member variable of class MR::SceneLoad::Result named warningSummary. 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.
| MRC_API MR_std_string * MR_SceneLoad_Result_GetMutable_errorSummary | ( | MR_SceneLoad_Result * | _this | ) |
Error summary text.
Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named errorSummary. 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.
| MRC_API bool * MR_SceneLoad_Result_GetMutable_isSceneConstructed | ( | MR_SceneLoad_Result * | _this | ) |
Marks whether the scene was loaded from a single file (false) or was built from scratch (true) Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named isSceneConstructed. 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.
| MRC_API MR_std_vector_std_filesystem_path * MR_SceneLoad_Result_GetMutable_loadedFiles | ( | MR_SceneLoad_Result * | _this | ) |
List of successfully loaded files Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named loadedFiles. 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.
| MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_Result_GetMutable_scene | ( | MR_SceneLoad_Result * | _this | ) |
The loaded scene or empty object Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named scene. 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.
| MRC_API MR_std_string * MR_SceneLoad_Result_GetMutable_warningSummary | ( | MR_SceneLoad_Result * | _this | ) |
Warning summary text.
Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named warningSummary. 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.
| MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_OffsetMutablePtr | ( | MR_SceneLoad_Result * | 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.
| MRC_API const MR_SceneLoad_Result * MR_SceneLoad_Result_OffsetPtr | ( | const MR_SceneLoad_Result * | 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.
| MRC_API void MR_SceneLoad_Result_Set_errorSummary | ( | MR_SceneLoad_Result * | _this, |
| const char * | value, | ||
| const char * | value_end ) |
Error summary text.
Modifies a member variable of class MR::SceneLoad::Result named errorSummary. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated. The reference to the parameter value might be preserved in this object in element errorSummary. When this function is called, this object will drop object references it had previously in errorSummary.
| MRC_API void MR_SceneLoad_Result_Set_isSceneConstructed | ( | MR_SceneLoad_Result * | _this, |
| bool | value ) |
Marks whether the scene was loaded from a single file (false) or was built from scratch (true) Modifies a member variable of class MR::SceneLoad::Result named isSceneConstructed. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in isSceneConstructed.
| MRC_API void MR_SceneLoad_Result_Set_loadedFiles | ( | MR_SceneLoad_Result * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_vector_std_filesystem_path * | value ) |
List of successfully loaded files Modifies a member variable of class MR::SceneLoad::Result named loadedFiles. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element loadedFiles. When this function is called, this object will drop object references it had previously in loadedFiles.
| MRC_API void MR_SceneLoad_Result_Set_scene | ( | MR_SceneLoad_Result * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_shared_ptr_MR_SceneRootObject * | value ) |
The loaded scene or empty object Modifies a member variable of class MR::SceneLoad::Result named scene. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element scene. When this function is called, this object will drop object references it had previously in scene.
| MRC_API void MR_SceneLoad_Result_Set_warningSummary | ( | MR_SceneLoad_Result * | _this, |
| const char * | value, | ||
| const char * | value_end ) |
Warning summary text.
Modifies a member variable of class MR::SceneLoad::Result named warningSummary. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated. The reference to the parameter value might be preserved in this object in element warningSummary. When this function is called, this object will drop object references it had previously in warningSummary.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_AssignFromAnother | ( | MR_SceneLoad_Settings * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_SceneLoad_Settings * | _other ) |
Generated from method MR::SceneLoad::Settings::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 had previously.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_ConstructFrom | ( | const MR_LengthUnit * | targetUnit, |
| MR_PassBy | progress_pass_by, | ||
| MR_std_function_bool_from_float * | progress, | ||
| MR_PassBy | openFolder_pass_by, | ||
| MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref * | openFolder ) |
Constructs MR::SceneLoad::Settings elementwise. Parameter targetUnit is optional. To keep it empty, pass a null pointer. The reference to the parameter targetUnit might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object. The reference to the parameter openFolder might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Settings_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_SceneLoad_Settings * | _other ) |
Generated from constructor MR::SceneLoad::Settings::Settings. 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_SceneLoad_Settings_Destroy() to free it when you're done using it.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Settings_Destroy() to free it when you're done using it.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_SceneLoad_Settings_DestroyArray(). Use MR_SceneLoad_Settings_OffsetMutablePtr() and MR_SceneLoad_Settings_OffsetPtr() to access the array elements.
| MRC_API void MR_SceneLoad_Settings_Destroy | ( | const MR_SceneLoad_Settings * | _this | ) |
Destroys a heap-allocated instance of MR_SceneLoad_Settings. Does nothing if the pointer is null.
| MRC_API void MR_SceneLoad_Settings_DestroyArray | ( | const MR_SceneLoad_Settings * | _this | ) |
Destroys a heap-allocated array of MR_SceneLoad_Settings. Does nothing if the pointer is null.
| MRC_API const MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref * MR_SceneLoad_Settings_Get_openFolder | ( | const MR_SceneLoad_Settings * | _this | ) |
Returns a pointer to a member variable of class MR::SceneLoad::Settings named openFolder. 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.
| MRC_API const MR_std_function_bool_from_float * MR_SceneLoad_Settings_Get_progress | ( | const MR_SceneLoad_Settings * | _this | ) |
to report loading progress and allow the user to cancel it Returns a pointer to a member variable of class MR::SceneLoad::Settings named progress. 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.
| MRC_API const MR_std_optional_MR_LengthUnit * MR_SceneLoad_Settings_Get_targetUnit | ( | const MR_SceneLoad_Settings * | _this | ) |
if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Returns a pointer to a member variable of class MR::SceneLoad::Settings named targetUnit. 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.
| MRC_API MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref * MR_SceneLoad_Settings_GetMutable_openFolder | ( | MR_SceneLoad_Settings * | _this | ) |
Returns a mutable pointer to a member variable of class MR::SceneLoad::Settings named openFolder. 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.
| MRC_API MR_std_function_bool_from_float * MR_SceneLoad_Settings_GetMutable_progress | ( | MR_SceneLoad_Settings * | _this | ) |
to report loading progress and allow the user to cancel it Returns a mutable pointer to a member variable of class MR::SceneLoad::Settings named progress. 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.
| MRC_API MR_std_optional_MR_LengthUnit * MR_SceneLoad_Settings_GetMutable_targetUnit | ( | MR_SceneLoad_Settings * | _this | ) |
if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Returns a mutable pointer to a member variable of class MR::SceneLoad::Settings named targetUnit. 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.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_OffsetMutablePtr | ( | MR_SceneLoad_Settings * | 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.
| MRC_API const MR_SceneLoad_Settings * MR_SceneLoad_Settings_OffsetPtr | ( | const MR_SceneLoad_Settings * | 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.
| MRC_API void MR_SceneLoad_Settings_Set_openFolder | ( | MR_SceneLoad_Settings * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref * | value ) |
Modifies a member variable of class MR::SceneLoad::Settings named openFolder. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element openFolder. When this function is called, this object will drop object references it had previously in openFolder.
| MRC_API void MR_SceneLoad_Settings_Set_progress | ( | MR_SceneLoad_Settings * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_function_bool_from_float * | value ) |
to report loading progress and allow the user to cancel it Modifies a member variable of class MR::SceneLoad::Settings named progress. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element progress. When this function is called, this object will drop object references it had previously in progress.
| MRC_API void MR_SceneLoad_Settings_Set_targetUnit | ( | MR_SceneLoad_Settings * | _this, |
| const MR_LengthUnit * | value ) |
if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Modifies a member variable of class MR::SceneLoad::Settings named targetUnit. Parameter _this can not be null. It is a single object. Parameter value is optional. To keep it empty, pass a null pointer. The reference to the parameter value might be preserved in this object in element targetUnit. When this function is called, this object will drop object references it had previously in targetUnit.