Public Member Functions | |
None | __init__ (self, FeatureObjectSharedProperty arg0) |
func_std_variant_float_Vector3_float_from_FeatureObject_const_ViewportId | getter (self) |
None | getter (self, func_std_variant_float_Vector3_float_from_FeatureObject_const_ViewportId arg1) |
func_void_from_std_variant_float_Vector3_float_FeatureObject_ViewportId | setter (self) |
None | setter (self, func_void_from_std_variant_float_Vector3_float_FeatureObject_ViewportId arg1) |
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.
None meshlib.mrmeshpy.FeatureObjectSharedProperty.__init__ | ( | self, | |
FeatureObjectSharedProperty | arg0 ) |
Implicit copy constructor.
func_std_variant_float_Vector3_float_from_FeatureObject_const_ViewportId meshlib.mrmeshpy.FeatureObjectSharedProperty.getter | ( | self | ) |
due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter.
None meshlib.mrmeshpy.FeatureObjectSharedProperty.getter | ( | self, | |
func_std_variant_float_Vector3_float_from_FeatureObject_const_ViewportId | arg1 ) |
func_void_from_std_variant_float_Vector3_float_FeatureObject_ViewportId meshlib.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 meshlib.mrmeshpy.FeatureObjectSharedProperty.setter | ( | self, | |
func_void_from_std_variant_float_Vector3_float_FeatureObject_ViewportId | arg1 ) |