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

Public Member Functions

auto assign_from_another (_other:&meshlib::FeatureObjectSharedProperty) -> &mut meshlib::FeatureObjectSharedProperty
auto property_name () const -> &meshlib::std_string
auto property_name_mut () -> &mut meshlib::std_string
void set_property_name (value:&str)
auto kind () const -> &meshlib::FeaturePropertyKind
auto kind_mut () -> &mut meshlib::FeaturePropertyKind
void set_kind (value:meshlib::FeaturePropertyKind)
auto getter () const -> &meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId
auto getter_mut () -> &mut meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId
void set_getter (value:&meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId)
auto setter () const -> &meshlib::std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId
auto setter_mut () -> &mut meshlib::std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId
void set_setter (value:&meshlib::std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId)

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::FeatureObjectSharedProperty) -> meshlib::Owned< meshlib::FeatureObjectSharedProperty >
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

FeatureObjectSharedProperty struct is designed to represent a shared property of a feature object, enabling the use of generalized getter and setter methods for property manipulation. propertyName: A string representing the name of the property. getter : A std::function encapsulating a method with no parameters that returns a FeaturesPropertyTypesVariant.This allows for a generic way to retrieve the value of the property. setter : A std::function encapsulating a method that takes a FeaturesPropertyTypesVariant as a parameter and returns void.This function sets the value of the property. The templated constructor of this struct takes the property name, pointers to the getter and setter member functions, and a pointer to the object( obj ). The constructor initializes the propertyName and uses lambdas to adapt the member function pointers into std::function objects that conform to the expected getter and setter signatures.The getter lambda invokes the getter method on the object, and the setter lambda ensures the correct variant type is passed before invoking the setter method. Generated from class MR::FeatureObjectSharedProperty.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::FeatureObjectSharedProperty::FeatureObjectSharedProperty.

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

◆ getter()

auto meshlib::FeatureObjectSharedProperty::getter ( ) const -> &meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId

due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter. Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named getter.

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

◆ getter_mut()

auto meshlib::FeatureObjectSharedProperty::getter_mut ( ) -> &mut meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId

due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter. Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named getter.

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

◆ kind()

auto meshlib::FeatureObjectSharedProperty::kind ( ) const -> &meshlib::FeaturePropertyKind

Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named kind.

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

◆ kind_mut()

auto meshlib::FeatureObjectSharedProperty::kind_mut ( ) -> &mut meshlib::FeaturePropertyKind

Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named kind.

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

◆ property_name()

auto meshlib::FeatureObjectSharedProperty::property_name ( ) const -> &meshlib::std_string

Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named propertyName.

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

◆ property_name_mut()

auto meshlib::FeatureObjectSharedProperty::property_name_mut ( ) -> &mut meshlib::std_string

Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named propertyName.

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

◆ set_getter()

void meshlib::FeatureObjectSharedProperty::set_getter ( value:&meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId )

due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter. Modifies a member variable of class MR::FeatureObjectSharedProperty named getter.

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

◆ set_kind()

void meshlib::FeatureObjectSharedProperty::set_kind ( value:meshlib::FeaturePropertyKind )

Modifies a member variable of class MR::FeatureObjectSharedProperty named kind.

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

◆ set_property_name()

void meshlib::FeatureObjectSharedProperty::set_property_name ( value:& str)

Modifies a member variable of class MR::FeatureObjectSharedProperty named propertyName.

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

◆ set_setter()

NOTE: id should usually be {}, not the current viewport ID, to set the property for all viewports. Passing a non-zero ID would only modify the active viewport, and per-viewport properties aren't usually used. Modifies a member variable of class MR::FeatureObjectSharedProperty named setter.

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

◆ setter()

NOTE: id should usually be {}, not the current viewport ID, to set the property for all viewports. Passing a non-zero ID would only modify the active viewport, and per-viewport properties aren't usually used. Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named setter.

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

◆ setter_mut()

NOTE: id should usually be {}, not the current viewport ID, to set the property for all viewports. Passing a non-zero ID would only modify the active viewport, and per-viewport properties aren't usually used. Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named setter.

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


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