Public Member Functions | |
| None | __init__ (self, FeatureObjectSharedProperty arg0) |
| func_std_variant_float_Vector3_float_from_FeatureObject_const_ptr_ViewportId | getter (self) |
| None | getter (self, 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, func_void_from_std_variant_float_Vector3_float_FeatureObject_ptr_ViewportId arg1) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| FeatureObjectSharedProperty | operator (*args, **kwargs) |
| FeatureObjectSharedProperty | operator (*args, **kwargs) |
Static Protected Attributes | |
| typing | _offsetof_getter = 40 |
| typing | _offsetof_kind = 32 |
| typing | _offsetof_propertyName = 0 |
| typing | _offsetof_setter = 72 |
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.
|
static |
| None mrmeshpy.FeatureObjectSharedProperty.__init__ | ( | self, | |
| FeatureObjectSharedProperty | arg0 ) |
Implicit copy constructor.
| 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.
| None mrmeshpy.FeatureObjectSharedProperty.getter | ( | self, | |
| func_std_variant_float_Vector3_float_from_FeatureObject_const_ptr_ViewportId | arg1 ) |
|
static |
|
static |
| 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.
| None mrmeshpy.FeatureObjectSharedProperty.setter | ( | self, | |
| func_void_from_std_variant_float_Vector3_float_FeatureObject_ptr_ViewportId | arg1 ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |