MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.FeatureObjectSharedProperty Class Reference
Inheritance diagram for mrmeshpy.FeatureObjectSharedProperty:

Public Member Functions

None __init__ (self, ConstFeatureObjectSharedProperty arg0)
FeatureObjectSharedProperty assign (self, ConstFeatureObjectSharedProperty other)
func_std_variant_float_Vector3_float_from_FeatureObject_const_ptr_ViewportId getter (self)
None getter (self, Const_func_std_variant_float_Vector3_float_from_FeatureObject_const_ptr_ViewportId arg1)
func_void_from_std_variant_float_Vector3_float_FeatureObject_ptr_ViewportId setter (self)
None setter (self, Const_func_void_from_std_variant_float_Vector3_float_FeatureObject_ptr_ViewportId arg1)
Public Member Functions inherited from mrmeshpy.ConstFeatureObjectSharedProperty
 __init__ (self, *args, **kwargs)
FeaturePropertyKind kind (self)
str propertyName (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstFeatureObjectSharedProperty
typing _offsetof_getter = 40
typing _offsetof_kind = 32
typing _offsetof_propertyName = 0
typing _offsetof_setter = 72

Detailed Description

Generated from:  MR::FeatureObjectSharedProperty

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.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None mrmeshpy.FeatureObjectSharedProperty.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/2]

None mrmeshpy.FeatureObjectSharedProperty.__init__ ( self,
ConstFeatureObjectSharedProperty arg0 )
Implicit copy constructor.

Member Function Documentation

◆ assign()

FeatureObjectSharedProperty mrmeshpy.FeatureObjectSharedProperty.assign ( self,
ConstFeatureObjectSharedProperty other )

◆ getter() [1/2]

func_std_variant_float_Vector3_float_from_FeatureObject_const_ptr_ViewportId mrmeshpy.FeatureObjectSharedProperty.getter ( self)
due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter.

Reimplemented from mrmeshpy.ConstFeatureObjectSharedProperty.

◆ getter() [2/2]

None mrmeshpy.FeatureObjectSharedProperty.getter ( self,
Const_func_std_variant_float_Vector3_float_from_FeatureObject_const_ptr_ViewportId arg1 )
due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter.

Reimplemented from mrmeshpy.ConstFeatureObjectSharedProperty.

◆ setter() [1/2]

func_void_from_std_variant_float_Vector3_float_FeatureObject_ptr_ViewportId mrmeshpy.FeatureObjectSharedProperty.setter ( self)
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.

Reimplemented from mrmeshpy.ConstFeatureObjectSharedProperty.

◆ setter() [2/2]

None mrmeshpy.FeatureObjectSharedProperty.setter ( self,
Const_func_void_from_std_variant_float_Vector3_float_FeatureObject_ptr_ViewportId arg1 )
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.

Reimplemented from mrmeshpy.ConstFeatureObjectSharedProperty.


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