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

Public Member Functions

auto assign_from_another (_other:&meshlib::LoadedObjects) -> &mut meshlib::LoadedObjects
auto objs () const -> &meshlib::std_vector_std_shared_ptr_MR_Object
auto objs_mut () -> &mut meshlib::std_vector_std_shared_ptr_MR_Object
void set_objs (value:&meshlib::std_vector_std_shared_ptr_MR_Object)
auto warnings () const -> &meshlib::std_string
auto warnings_mut () -> &mut meshlib::std_string
void set_warnings (value:&str)
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 >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::LoadedObjects >
static auto construct_from (objs:&meshlib::std_vector_std_shared_ptr_MR_Object, warnings:&str, lengthUnit:Option< meshlib::LengthUnit >) -> meshlib::Owned< meshlib::LoadedObjects >
static auto construct_from_another (_other:&meshlib::LoadedObjects) -> meshlib::Owned< meshlib::LoadedObjects >
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

result of loading (e.g. from a file) as a number of objects Generated from class MR::LoadedObjects.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::LoadedObjects::assign_from_another ( _other:&meshlib::LoadedObjects ) -> &mut meshlib::LoadedObjects

Generated from method MR::LoadedObjects::operator=.

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

◆ construct_from()

auto meshlib::LoadedObjects::construct_from ( objs:&meshlib::std_vector_std_shared_ptr_MR_Object ,
warnings:& str,
lengthUnit:Option< meshlib::LengthUnit >  ) -> meshlib::Owned< meshlib::LoadedObjects >
static

Constructs MR::LoadedObjects elementwise.

Calls MR_LoadedObjects_ConstructFrom(). The reference to the parameter objs might be preserved in the constructed object. The reference to the parameter warnings might be preserved in the constructed object. The reference to the parameter lengthUnit might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::LoadedObjects::LoadedObjects.

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

◆ length_unit()

auto meshlib::LoadedObjects::length_unit ( ) const -> &meshlib::std_optional_MR_LengthUnit

units of object coordinates and transformations (if known) Returns a pointer to a member variable of class MR::LoadedObjects named lengthUnit.

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

◆ length_unit_mut()

auto meshlib::LoadedObjects::length_unit_mut ( ) -> &mut meshlib::std_optional_MR_LengthUnit

units of object coordinates and transformations (if known) Returns a mutable pointer to a member variable of class MR::LoadedObjects named lengthUnit.

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

◆ new()

auto meshlib::LoadedObjects::new ( ) -> meshlib::Owned< meshlib::LoadedObjects >
static

Constructs an empty (default-constructed) instance.

Calls MR_LoadedObjects_DefaultConstruct().

◆ objs()

auto meshlib::LoadedObjects::objs ( ) const -> &meshlib::std_vector_std_shared_ptr_MR_Object

Returns a pointer to a member variable of class MR::LoadedObjects named objs.

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

◆ objs_mut()

auto meshlib::LoadedObjects::objs_mut ( ) -> &mut meshlib::std_vector_std_shared_ptr_MR_Object

Returns a mutable pointer to a member variable of class MR::LoadedObjects named objs.

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

◆ set_length_unit()

void meshlib::LoadedObjects::set_length_unit ( value:Option< meshlib::LengthUnit > )

units of object coordinates and transformations (if known) Modifies a member variable of class MR::LoadedObjects named lengthUnit.

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

◆ set_objs()

void meshlib::LoadedObjects::set_objs ( value:&meshlib::std_vector_std_shared_ptr_MR_Object )

Modifies a member variable of class MR::LoadedObjects named objs.

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

◆ set_warnings()

void meshlib::LoadedObjects::set_warnings ( value:& str)

either empty or ends with '
' Modifies a member variable of class MR::LoadedObjects named warnings.

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

◆ warnings()

auto meshlib::LoadedObjects::warnings ( ) const -> &meshlib::std_string

either empty or ends with '
' Returns a pointer to a member variable of class MR::LoadedObjects named warnings.

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

◆ warnings_mut()

auto meshlib::LoadedObjects::warnings_mut ( ) -> &mut meshlib::std_string

either empty or ends with '
' Returns a mutable pointer to a member variable of class MR::LoadedObjects named warnings.

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


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