Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| Const_std_optional_float | referenceValue (self) |
| float | value (self) |
Static Protected Attributes | |
| typing | _offsetof_referenceValue = 4 |
| typing | _offsetof_value = 0 |
Generated from: MR::ObjectComparableWithReference::ComparableProperty
| mrmeshpy.ObjectComparableWithReference.ConstComparableProperty.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ObjectComparableWithReference.ConstComparableProperty) -> None 2. __init__(self: meshlib.mrmeshpy.ObjectComparableWithReference.ConstComparableProperty, arg0: meshlib.mrmeshpy.ObjectComparableWithReference.ConstComparableProperty) -> None Implicit copy constructor. 3. __init__(self: meshlib.mrmeshpy.ObjectComparableWithReference.ConstComparableProperty, value: float, referenceValue: meshlib.mrmeshpy.Const_std_optional_float) -> None Implicit aggregate constructor. 4. __init__(self: meshlib.mrmeshpy.ObjectComparableWithReference.ConstComparableProperty, : meshlib.mrmeshpy.ObjectComparableWithReference.ConstComparableProperty) -> None
| Const_std_optional_float mrmeshpy.ObjectComparableWithReference.ConstComparableProperty.referenceValue | ( | self | ) |
This can be null if the reference value isn't set, or something else is wrong. This can match whatever is set via `get/setComparisonReferenceValue()`, but not necessarily. E.g. for point coordinates, those functions act on the reference coordinates (three optional floats), but this number is always zero, and the `value` is the distance to those coordinates.
Reimplemented in mrmeshpy.ConstObjectComparableWithReference.ComparableProperty, mrmeshpy.ConstObjectComparableWithReference.ComparableProperty, mrmeshpy.ObjectComparableWithReference.ComparableProperty, and mrmeshpy.ObjectComparableWithReference.ComparableProperty.
| float mrmeshpy.ObjectComparableWithReference.ConstComparableProperty.value | ( | self | ) |
|
staticprotected |
|
staticprotected |