MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::scene_load::Settings Struct Reference
Inheritance diagram for meshlib::scene_load::Settings:

Public Member Functions

auto assign_from_another (_other:&meshlib::scene_load::Settings) -> &mut meshlib::scene_load::Settings
auto target_unit () const -> &meshlib::std_optional_MR_LengthUnit
auto target_unit_mut () -> &mut meshlib::std_optional_MR_LengthUnit
void set_target_unit (value:Option< meshlib::LengthUnit >)
auto progress () const -> &meshlib::std_function_bool_from_float
auto progress_mut () -> &mut meshlib::std_function_bool_from_float
void set_progress (value:&meshlib::std_function_bool_from_float)
auto open_folder () const -> &meshlib::std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref
auto open_folder_mut () -> &mut meshlib::std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref
void set_open_folder (value:&meshlib::std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::scene_load::Settings >
static auto construct_from (targetUnit:Option< meshlib::LengthUnit >, progress:&meshlib::std_function_bool_from_float, openFolder:&meshlib::std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref) -> meshlib::Owned< meshlib::scene_load::Settings >
static auto construct_from_another (_other:&meshlib::scene_load::Settings) -> meshlib::Owned< meshlib::scene_load::Settings >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Generated from class MR::SceneLoad::Settings.

Generated from class MR::SceneLoad::Settings. Heap-allocated instances are held in Owned<Settings>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::scene_load::Settings::assign_from_another ( _other:&meshlib::scene_load::Settings ) -> &mut meshlib::scene_load::Settings

Generated from method MR::SceneLoad::Settings::operator=.

Calls MR_SceneLoad_Settings_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from()

Constructs MR::SceneLoad::Settings elementwise.

Calls MR_SceneLoad_Settings_ConstructFrom(). 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.

◆ construct_from_another()

auto meshlib::scene_load::Settings::construct_from_another ( _other:&meshlib::scene_load::Settings ) -> meshlib::Owned< meshlib::scene_load::Settings >
static

Generated from constructor MR::SceneLoad::Settings::Settings.

Calls MR_SceneLoad_Settings_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ new()

auto meshlib::scene_load::Settings::new ( ) -> meshlib::Owned< meshlib::scene_load::Settings >
static

Constructs an empty (default-constructed) instance.

Calls MR_SceneLoad_Settings_DefaultConstruct().

◆ open_folder()

Returns a pointer to a member variable of class MR::SceneLoad::Settings named openFolder.

Calls MR_SceneLoad_Settings_Get_openFolder(). The reference to this object might be preserved as the return value.

◆ open_folder_mut()

Returns a mutable pointer to a member variable of class MR::SceneLoad::Settings named openFolder.

Calls MR_SceneLoad_Settings_GetMutable_openFolder(). The reference to this object might be preserved as the return value.

◆ progress()

auto meshlib::scene_load::Settings::progress ( ) const -> &meshlib::std_function_bool_from_float

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.

Calls MR_SceneLoad_Settings_Get_progress(). The reference to this object might be preserved as the return value.

◆ progress_mut()

auto meshlib::scene_load::Settings::progress_mut ( ) -> &mut meshlib::std_function_bool_from_float

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.

Calls MR_SceneLoad_Settings_GetMutable_progress(). The reference to this object might be preserved as the return value.

◆ set_open_folder()

Modifies a member variable of class MR::SceneLoad::Settings named openFolder.

Calls MR_SceneLoad_Settings_Set_openFolder(). The reference to the parameter value might be preserved in this object in element openFolder.

◆ set_progress()

void meshlib::scene_load::Settings::set_progress ( value:&meshlib::std_function_bool_from_float )

to report loading progress and allow the user to cancel it Modifies a member variable of class MR::SceneLoad::Settings named progress.

Calls MR_SceneLoad_Settings_Set_progress(). The reference to the parameter value might be preserved in this object in element progress.

◆ set_target_unit()

void meshlib::scene_load::Settings::set_target_unit ( value:Option< meshlib::LengthUnit > )

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.

Calls MR_SceneLoad_Settings_Set_targetUnit(). The reference to the parameter value might be preserved in this object in element targetUnit.

◆ target_unit()

auto meshlib::scene_load::Settings::target_unit ( ) const -> &meshlib::std_optional_MR_LengthUnit

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.

Calls MR_SceneLoad_Settings_Get_targetUnit(). The reference to this object might be preserved as the return value.

◆ target_unit_mut()

auto meshlib::scene_load::Settings::target_unit_mut ( ) -> &mut meshlib::std_optional_MR_LengthUnit

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.

Calls MR_SceneLoad_Settings_GetMutable_targetUnit(). The reference to this object might be preserved as the return value.


The documentation for this struct was generated from the following file: