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

Public Member Functions

auto assign_from_another (_other:&meshlib::object_save::Settings) -> &mut meshlib::object_save::Settings
auto length_unit () const -> &meshlib::std_optional_MR_LengthUnit
auto length_unit_mut () -> &mut meshlib::std_optional_MR_LengthUnit
void set_length_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 upcast_to_settings () const -> &meshlib::scene_save::Settings
auto upcast_to_settings_mut () -> &mut meshlib::scene_save::Settings

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::object_save::Settings >
static auto construct_from_another (_other:&meshlib::object_save::Settings) -> meshlib::Owned< meshlib::object_save::Settings >
static auto static_downcast_from_settings (object:&meshlib::scene_save::Settings) -> &Self
static auto static_downcast_from_settings_mut (object:&mut meshlib::scene_save::Settings) -> &mut Self
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

ObjectSave::Settings and SceneSave::Settings must be distinct classes for ObjectSave::ObjectSaver and SceneSave::SceneSaver be distinct types and MR_FORMAT_REGISTRY_DECL does not mix them Generated from class MR::ObjectSave::Settings. Base classes: Direct: (non-virtual) MR::SceneSave::Settings

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::ObjectSave::Settings::Settings.

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

◆ length_unit()

auto meshlib::object_save::Settings::length_unit ( ) const -> &meshlib::std_optional_MR_LengthUnit

units of input coordinates and transformation, to be serialized if the format supports it Returns a pointer to a member variable of class MR::ObjectSave::Settings named lengthUnit.

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

◆ length_unit_mut()

auto meshlib::object_save::Settings::length_unit_mut ( ) -> &mut meshlib::std_optional_MR_LengthUnit

units of input coordinates and transformation, to be serialized if the format supports it Returns a mutable pointer to a member variable of class MR::ObjectSave::Settings named lengthUnit.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ObjectSave_Settings_DefaultConstruct().

◆ progress()

auto meshlib::object_save::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::ObjectSave::Settings named progress.

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

◆ progress_mut()

auto meshlib::object_save::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::ObjectSave::Settings named progress.

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

◆ set_length_unit()

void meshlib::object_save::Settings::set_length_unit ( value:Option< meshlib::LengthUnit > )

units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::ObjectSave::Settings named lengthUnit.

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

◆ set_progress()

void meshlib::object_save::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::ObjectSave::Settings named progress.

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

◆ static_downcast_from_settings()

auto meshlib::object_save::Settings::static_downcast_from_settings ( object:&meshlib::scene_save::Settings ) -> &Self
static

Static downcast from the base class MR::SceneSave::Settings.

Calls MR_ObjectSave_Settings_StaticDowncastFrom_MR_SceneSave_Settings(). Undefined behavior if the object isn't actually a Settings.

Note
This function is unsafe.

◆ static_downcast_from_settings_mut()

auto meshlib::object_save::Settings::static_downcast_from_settings_mut ( object:&mut meshlib::scene_save::Settings ) -> &mut Self
static

Static downcast from the base class MR::SceneSave::Settings.

Calls MR_ObjectSave_Settings_MutableStaticDowncastFrom_MR_SceneSave_Settings(). Undefined behavior if the object isn't actually a Settings.

Note
This function is unsafe.

◆ upcast_to_settings()

auto meshlib::object_save::Settings::upcast_to_settings ( ) const -> &meshlib::scene_save::Settings

Upcasts to the base class MR::SceneSave::Settings.

Calls MR_ObjectSave_Settings_UpcastTo_MR_SceneSave_Settings().

◆ upcast_to_settings_mut()

auto meshlib::object_save::Settings::upcast_to_settings_mut ( ) -> &mut meshlib::scene_save::Settings

Upcasts to the base class MR::SceneSave::Settings.

Calls MR_ObjectSave_Settings_MutableUpcastTo_MR_SceneSave_Settings().


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