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

Public Member Functions

None __init__ (self)
 
str className (self)
 
str classNameInPlural (self)
 
Object clone (self)
 
bool comparisonToleranceIsAlwaysOnlyPositive (self, int i)
 
ObjectComparableWithReference.ComparableProperty computeComparableProperty (self, int i)
 
std_vector_ViewportMask getAllVisualizeProperties (self)
 
str getComparablePropertyName (self, int i)
 
ObjectComparableWithReference.ComparisonReferenceValue getComparisonReferenceValue (self, int i)
 
str getComparisonReferenceValueName (self, int i)
 
ObjectComparableWithReference.ComparisonTolerance getComparisonTolerence (self, int i)
 
Vector3f getLocalPoint (self, ViewportId id='{}')
 
ViewportMask getVisualizePropertyMask (self, AnyVisualizeMaskEnum type)
 
Vector3f getWorldPoint (self, ViewportId id='{}')
 
int numComparableProperties (self)
 
int numComparisonReferenceValues (self)
 
None setComparisonReferenceValue (self, int i, std_optional_std_variant_float_Vector3_float value)
 
None setComparisonTolerance (self, int i, std_optional_ObjectComparableWithReference_ComparisonTolerance newTolerance)
 
None setLocalPoint (self, Vector3f point, ViewportId id='{}')
 
None setWorldPoint (self, Vector3f point, ViewportId id='{}')
 
Object shallowClone (self)
 
bool supportsVisualizeProperty (self, AnyVisualizeMaskEnum type)
 
str typeName (self)
 
- Public Member Functions inherited from mrmeshpy.VisualObject
float getAmbientStrength (self)
 
Color getBackColor (self, ViewportId viewportId='{}')
 
ViewportProperty_Color getBackColorsForAllViewports (self)
 
Box3f getBoundingBox (self)
 
ColoringType getColoringType (self)
 
int getDirtyFlags (self)
 
Color getFrontColor (self, bool selected=True, ViewportId viewportId='{}')
 
ViewportProperty_Color getFrontColorsForAllViewports (self, bool selected=True)
 
int getGlobalAlpha (self, ViewportId viewportId='{}')
 
ViewportProperty_unsigned_char getGlobalAlphaForAllViewports (self)
 
std_vector_std_string getInfoLines (self)
 
bool getRedrawFlag (self, ViewportMask viewportMask)
 
float getShininess (self)
 
float getSpecularStrength (self)
 
bool getVisualizeProperty (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
bool globalClippedByPlane (self, ViewportMask viewportMask='ViewportMask::any()')
 
ViewportMask globalClippedByPlaneMask (self)
 
int heapBytes (self)
 
bool isPickable (self, ViewportMask viewportMask='ViewportMask::any()')
 
None renderUi (self, UiRenderParams params)
 
None resetColors (self)
 
None resetDirty (self)
 
None resetDirtyExceptMask (self, int mask)
 
None resetFrontColor (self)
 
None setAllVisualizeProperties (self, std_vector_ViewportMask properties)
 
None setAmbientStrength (self, float ambientStrength)
 
None setBackColor (self, Color color, ViewportId viewportId='{}')
 
None setBackColorsForAllViewports (self, ViewportProperty_Color val)
 
None setColoringType (self, ColoringType coloringType)
 
None setDirtyFlags (self, int mask, bool invalidateCaches=True)
 
None setFrontColor (self, Color color, bool selected, ViewportId viewportId='{}')
 
None setFrontColorsForAllViewports (self, ViewportProperty_Color val, bool selected=True)
 
None setGlobalAlpha (self, int alpha, ViewportId viewportId='{}')
 
None setGlobalAlphaForAllViewports (self, ViewportProperty_unsigned_char val)
 
None setGlobalClippedByPlane (self, bool on, ViewportMask viewportMask='ViewportMask::all()')
 
None setPickable (self, bool on, ViewportMask viewportMask='ViewportMask::all()')
 
None setShininess (self, float shininess)
 
None setSpecularStrength (self, float specularStrength)
 
None setUseDefaultScenePropertiesOnDeserialization (self, bool useDefaultScenePropertiesOnDeserialization)
 
None setVisualizeProperty (self, bool value, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None setVisualizePropertyMask (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None showName (self, bool on)
 
bool showName (self)
 
None toggleVisualizeProperty (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
bool useDefaultScenePropertiesOnDeserialization (self)
 
- Public Member Functions inherited from mrmeshpy.Object
bool addChild (self, Object child, bool recognizedChild=True)
 
bool addChildBefore (self, Object newChild, Object existingChild)
 
bool addTag (self, str tag)
 
None applyScale (self, float scaleFactor)
 
VisualObject asType_VisualObject (self)
 
VisualObject asType_VisualObject (self)
 
std_vector_std_shared_ptr_Object children (self)
 
std_vector_std_shared_ptr_Object_const children (self)
 
Object cloneTree (self)
 
bool detachFromParent (self)
 
Object find (self, str name)
 
Object find (self, str name)
 
Object findCommonAncestor (self, Object other)
 
Object findCommonAncestor (self, Object other)
 
bool globalVisibility (self, ViewportMask viewportMask='ViewportMask::any()')
 
ViewportMask globalVisibilityMask (self)
 
bool hasModel (self)
 
bool hasVisualRepresentation (self)
 
bool isAncestor (self, Object ancestor)
 
bool isAncillary (self)
 
bool isGlobalAncillary (self)
 
bool isLocked (self)
 
bool isParentLocked (self)
 
bool isSelected (self)
 
bool isVisible (self, ViewportMask viewportMask='ViewportMask::any()')
 
str name (self)
 
Object parent (self)
 
Object parent (self)
 
None removeAllChildren (self)
 
bool removeChild (self, Object child)
 
bool removeChild (self, Object child)
 
bool removeTag (self, str tag)
 
None resetRedrawFlag (self)
 
None resetXf (self, ViewportId id='{}')
 
bool select (self, bool on)
 
None setAncillary (self, bool ancillary)
 
None setGlobalVisibility (self, bool on, ViewportMask viewportMask='ViewportMask::any()')
 
None setLocked (self, bool on)
 
None setName (self, str name)
 
None setParentLocked (self, bool lock)
 
None setVisibilityMask (self, ViewportMask viewportMask)
 
None setVisible (self, bool on, ViewportMask viewportMask='ViewportMask::all()')
 
None setWorldXf (self, AffineXf3f xf, ViewportId id='{}')
 
None setXf (self, AffineXf3f xf, ViewportId id='{}')
 
None setXfsForAllViewports (self, ViewportProperty_AffineXf3f xf)
 
Object shallowCloneTree (self)
 
None sortChildren (self)
 
None swap (self, Object other)
 
std_set_std_string tags (self)
 
ViewportMask visibilityMask (self)
 
AffineXf3f worldXf (self, ViewportId id='{}', bool_output isDef=None)
 
AffineXf3f xf (self, ViewportId id='{}', bool_output isDef=None)
 
ViewportProperty_AffineXf3f xfsForAllViewports (self)
 
- Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder
Object getSharedPtr (self)
 
- Public Member Functions inherited from mrmeshpy.ObjectComparableWithReference
None setComparisonReferenceVal (self, int i, ObjectComparableWithReference.ComparisonReferenceValue value)
 

Static Public Member Functions

str ClassName ()
 
str ClassNameInPlural ()
 
str TypeName ()
 
- Static Public Member Functions inherited from mrmeshpy.MeasurementObject
MeasurementObject operator (*args, **kwargs)
 
- Static Public Member Functions inherited from mrmeshpy.VisualObject
Box3f getWorldBox (*args, **kwargs)
 
bool render (*args, **kwargs)
 
None renderForPicker (*args, **kwargs)
 
- Static Public Member Functions inherited from mrmeshpy.Object
Box3f getWorldTreeBox (*args, **kwargs)
 
- Static Public Member Functions inherited from mrmeshpy.ObjectComparableWithReference
ObjectComparableWithReference operator (*args, **kwargs)
 

Detailed Description

Generated from:  MR::PointMeasurementObject

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.PointMeasurementObject.__init__ ( self)

Reimplemented from mrmeshpy.MeasurementObject.

Member Function Documentation

◆ ClassName()

str mrmeshpy.PointMeasurementObject.ClassName ( )
static
return human readable name of subclass

Reimplemented from mrmeshpy.VisualObject.

◆ className()

str mrmeshpy.PointMeasurementObject.className ( self)

Reimplemented from mrmeshpy.VisualObject.

◆ ClassNameInPlural()

str mrmeshpy.PointMeasurementObject.ClassNameInPlural ( )
static
return human readable name of subclass in plural form

Reimplemented from mrmeshpy.VisualObject.

◆ classNameInPlural()

str mrmeshpy.PointMeasurementObject.classNameInPlural ( self)

Reimplemented from mrmeshpy.VisualObject.

◆ clone()

Object mrmeshpy.PointMeasurementObject.clone ( self)
clones this object only, without its children,
making new object the owner of all copied resources

Reimplemented from mrmeshpy.VisualObject.

◆ comparisonToleranceIsAlwaysOnlyPositive()

bool mrmeshpy.PointMeasurementObject.comparisonToleranceIsAlwaysOnlyPositive ( self,
int i )
If true, indicates that the getter will always return zero negative tolerance, and the setter will ignore the negative tolerance.
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ computeComparableProperty()

ObjectComparableWithReference.ComparableProperty mrmeshpy.PointMeasurementObject.computeComparableProperty ( self,
int i )
Compute a value of a property.
Compare `value` and `referenceValue` using the tolerance.
This can return null if the value is impossible to compute, e.g. for some types if the reference isn't set (e.g. if
  we're computing the distance to a reference point).
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ getAllVisualizeProperties()

std_vector_ViewportMask mrmeshpy.PointMeasurementObject.getAllVisualizeProperties ( self)
get all visualize properties masks

Reimplemented from mrmeshpy.VisualObject.

◆ getComparablePropertyName()

str mrmeshpy.PointMeasurementObject.getComparablePropertyName ( self,
int i )
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ getComparisonReferenceValue()

ObjectComparableWithReference.ComparisonReferenceValue mrmeshpy.PointMeasurementObject.getComparisonReferenceValue ( self,
int i )
Returns the internal reference value.
If the value wasn't set yet (as indicated by `isSet == false`), you can still use the returned variant to get the expected type.
`i` goes up to `numComparisonReferenceValues()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ getComparisonReferenceValueName()

str mrmeshpy.PointMeasurementObject.getComparisonReferenceValueName ( self,
int i )
`i` goes up to `numComparisonReferenceValues()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ getComparisonTolerence()

ObjectComparableWithReference.ComparisonTolerance mrmeshpy.PointMeasurementObject.getComparisonTolerence ( self,
int i )
Returns the tolerance for a specific comparable property. Returns null if not set.
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ getLocalPoint()

Vector3f mrmeshpy.PointMeasurementObject.getLocalPoint ( self,
ViewportId id = '{}' )
calculates point from xf

◆ getVisualizePropertyMask()

ViewportMask mrmeshpy.PointMeasurementObject.getVisualizePropertyMask ( self,
AnyVisualizeMaskEnum type )
returns mask of viewports where given property is set

Reimplemented from mrmeshpy.VisualObject.

◆ getWorldPoint()

Vector3f mrmeshpy.PointMeasurementObject.getWorldPoint ( self,
ViewportId id = '{}' )

◆ numComparableProperties()

int mrmeshpy.PointMeasurementObject.numComparableProperties ( self)
Implement `ObjectComparableWithReference`:

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ numComparisonReferenceValues()

int mrmeshpy.PointMeasurementObject.numComparisonReferenceValues ( self)
This returns 2: the point, and the optional normal direction. The normal doesn't need to be normalized, its length doesn't affect calculations.
If the normal isn't specified, the Euclidean distance gets used.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ setComparisonReferenceValue()

None mrmeshpy.PointMeasurementObject.setComparisonReferenceValue ( self,
int i,
std_optional_std_variant_float_Vector3_float value )
Sets the internal reference value. Makes `hasComparisonReferenceValue()` return true.
If you pass nullopt, removes this reference value.
Only a certain variant type is legal to pass, depending on the derived class and the index. Use `getComparisonReferenceValue()` to determine that type.
`i` goes up to `numComparisonReferenceValues()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ setComparisonTolerance()

None mrmeshpy.PointMeasurementObject.setComparisonTolerance ( self,
int i,
std_optional_ObjectComparableWithReference_ComparisonTolerance newTolerance )
Sets the tolerance for a specific comparable property.
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ setLocalPoint()

None mrmeshpy.PointMeasurementObject.setLocalPoint ( self,
Vector3f point,
ViewportId id = '{}' )
updates xf to fit given point

◆ setWorldPoint()

None mrmeshpy.PointMeasurementObject.setWorldPoint ( self,
Vector3f point,
ViewportId id = '{}' )

◆ shallowClone()

Object mrmeshpy.PointMeasurementObject.shallowClone ( self)
clones this object only, without its children,
making new object to share resources with this object

Reimplemented from mrmeshpy.VisualObject.

◆ supportsVisualizeProperty()

bool mrmeshpy.PointMeasurementObject.supportsVisualizeProperty ( self,
AnyVisualizeMaskEnum type )
Returns true if this class supports the property `type`. Otherwise passing it to the functions below is illegal.

Reimplemented from mrmeshpy.VisualObject.

◆ TypeName()

str mrmeshpy.PointMeasurementObject.TypeName ( )
static
return name of subtype for serialization purposes

Reimplemented from mrmeshpy.VisualObject.

◆ typeName()

str mrmeshpy.PointMeasurementObject.typeName ( self)

Reimplemented from mrmeshpy.VisualObject.


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