#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.
Typedefs | |
| 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_shared_ptr_MR_SceneRootObject | MR_std_shared_ptr_MR_SceneRootObject |
| typedef struct MR_std_string | MR_std_string |
| typedef struct MR_std_vector_std_filesystem_path | MR_std_vector_std_filesystem_path |
| typedef struct MR_SceneLoad_Settings | MR_SceneLoad_Settings |
Generated from class MR::SceneLoad::Settings. | |
| typedef struct MR_SceneLoad_Result | MR_SceneLoad_Result |
| typedef struct MR_SceneLoad_Result MR_SceneLoad_Result |
Scene loading result Generated from class MR::SceneLoad::Result.
| typedef struct MR_SceneLoad_Settings MR_SceneLoad_Settings |
Generated from class MR::SceneLoad::Settings.
| 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 a method of class MR::SceneLoad::Result named operator=. 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_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. Parameter errorSummary can not be null. If errorSummary_end is null, then errorSummary is assumed to be null-terminated. Parameter warningSummary can not be null. If warningSummary_end is null, then warningSummary is assumed to be null-terminated. 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_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_SceneLoad_Result * | _other ) |
Generated from a constructor of class MR::SceneLoad::Result. 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_AssignFromAnother | ( | MR_SceneLoad_Settings * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_SceneLoad_Settings * | _other ) |
Generated from a method of class MR::SceneLoad::Settings named operator=. 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_ConstructFrom | ( | const MR_LengthUnit * | targetUnit, |
| MR_PassBy | progress_pass_by, | ||
| MR_std_function_bool_from_float * | progress ) |
Constructs MR::SceneLoad::Settings elementwise. Parameter targetUnit is optional. To keep it empty, pass a null pointer. 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_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_SceneLoad_Settings * | _other ) |
Generated from a constructor of class MR::SceneLoad::Settings. 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_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_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.
| 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.
| 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.
| 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.