Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
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.
Instances created here own their C++ objects, see CppObject.
| meshlib.FeatureObjectSharedProperty.FeatureObjectSharedProperty | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.FeatureObjectSharedProperty.FeatureObjectSharedProperty | ( | meshlib.FeatureObjectSharedProperty | _other | ) |
Generated from constructor MR::FeatureObjectSharedProperty::FeatureObjectSharedProperty. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_FeatureObjectSharedProperty_ConstructFromAnother().
| meshlib.FeatureObjectSharedProperty meshlib.FeatureObjectSharedProperty.assignFromAnother | ( | meshlib.FeatureObjectSharedProperty | _other | ) |
Generated from method MR::FeatureObjectSharedProperty::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_FeatureObjectSharedProperty_AssignFromAnother().
| meshlib.std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId meshlib.FeatureObjectSharedProperty.getter | ( | ) |
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. The reference to this object might be preserved as the return value.
Calls MR_FeatureObjectSharedProperty_Get_getter().
| meshlib.FeaturePropertyKind meshlib.FeatureObjectSharedProperty.kind | ( | ) |
Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named kind. The reference to this object might be preserved as the return value.
Calls MR_FeatureObjectSharedProperty_Get_kind().
| meshlib.std_string meshlib.FeatureObjectSharedProperty.propertyName | ( | ) |
Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named propertyName. The reference to this object might be preserved as the return value.
Calls MR_FeatureObjectSharedProperty_Get_propertyName().
| void meshlib.FeatureObjectSharedProperty.setGetter | ( | meshlib.std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId | value | ) |
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. The reference to the parameter value might be preserved in this object in element getter.
Calls MR_FeatureObjectSharedProperty_Set_getter().
| void meshlib.FeatureObjectSharedProperty.setKind | ( | meshlib.FeaturePropertyKind | value | ) |
Modifies a member variable of class MR::FeatureObjectSharedProperty named kind. The reference to the parameter value might be preserved in this object in element kind.
Calls MR_FeatureObjectSharedProperty_Set_kind().
| void meshlib.FeatureObjectSharedProperty.setPropertyName | ( | java.lang.String | value | ) |
Modifies a member variable of class MR::FeatureObjectSharedProperty named propertyName. The reference to the parameter value might be preserved in this object in element propertyName.
Calls MR_FeatureObjectSharedProperty_Set_propertyName().
| void meshlib.FeatureObjectSharedProperty.setSetter | ( | meshlib.std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId | value | ) |
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. The reference to the parameter value might be preserved in this object in element setter.
Calls MR_FeatureObjectSharedProperty_Set_setter().
| meshlib.std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId meshlib.FeatureObjectSharedProperty.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. The reference to this object might be preserved as the return value.
Calls MR_FeatureObjectSharedProperty_Get_setter().