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

Classes

class  DistanceMode

Public Member Functions

None __init__ (self)
None setComparisonReferenceValue (self, int i, Const_std_variant_float_Vector3_float|None value)
None setComparisonTolerance (self, int i, Const_std_optional_ObjectComparableWithReference_ComparisonTolerance newTolerance)
None setDistanceMode (self, DistanceMeasurementObject.DistanceMode mode)
None setIsNegative (self, bool value)
None setLocalDelta (self, ConstVector3f delta)
None setLocalPoint (self, ConstVector3f point)
Public Member Functions inherited from mrmeshpy.ConstDistanceMeasurementObject
 __init__ (self, *args, **kwargs)
str className (self)
str classNameInPlural (self)
Object clone (self)
ObjectComparableWithReference.ComparableProperty computeComparableProperty (self, int i)
float computeDistance (self)
str getComparablePropertyName (self, int i)
ObjectComparableWithReference.ComparisonReferenceValue getComparisonReferenceValue (self, int i)
str getComparisonReferenceValueName (self, int i)
ObjectComparableWithReference.ComparisonTolerance getComparisonTolerence (self, int i)
DistanceMeasurementObject.DistanceMode getDistanceMode (self)
std_vector_std_string getInfoLines (self)
Vector3f getLocalDelta (self)
Vector3f getLocalPoint (self)
Vector3f getWorldDelta (self)
Vector3f getWorldPoint (self)
bool isNegative (self)
int numComparableProperties (self)
Object shallowClone (self)
str typeName (self)
Public Member Functions inherited from mrmeshpy.ConstMeasurementObject
 __init__ (self, *args, **kwargs)
Public Member Functions inherited from mrmeshpy.ConstVisualObject
 __init__ (self, *args, **kwargs)
std_vector_ViewportMask getAllVisualizeProperties (self)
float getAmbientStrength (self)
ConstColor getBackColor (self, ConstViewportId viewportId=...)
ConstViewportProperty_Color getBackColorsForAllViewports (self)
Box3f getBoundingBox (self)
ColoringType getColoringType (self)
int getDirtyFlags (self)
ConstColor getFrontColor (self, bool selected=True, ConstViewportId viewportId=...)
ConstViewportProperty_Color getFrontColorsForAllViewports (self, bool selected=True)
int getGlobalAlpha (self, ConstViewportId viewportId=...)
ConstViewportProperty_unsigned_char getGlobalAlphaForAllViewports (self)
bool getRedrawFlag (self, ConstViewportMask viewportMask)
float getShininess (self)
float getSpecularStrength (self)
bool getVisualizeProperty (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
ConstViewportMask getVisualizePropertyMask (self, ConstAnyVisualizeMaskEnum type)
bool globalClippedByPlane (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
ViewportMask globalClippedByPlaneMask (self)
int heapBytes (self)
bool isPickable (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
None renderUi (self, ConstUiRenderParams params)
None resetDirty (self)
None resetDirtyExceptMask (self, int mask)
bool supportsVisualizeProperty (self, ConstAnyVisualizeMaskEnum type)
bool useDefaultScenePropertiesOnDeserialization (self)
Public Member Functions inherited from mrmeshpy.ConstObject
 __init__ (self, *args, **kwargs)
Object cloneTree (self)
ConstChildren constChildren (self)
int getModelHash (self)
bool globalVisibility (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
ViewportMask globalVisibilityMask (self)
bool hasModel (self)
bool hasVisualRepresentation (self)
bool isAncestor (self, ConstObject ancestor)
bool isAncillary (self)
bool isGlobalAncillary (self)
bool isLocked (self)
bool isParentLocked (self)
bool isSelected (self)
bool isVisible (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
str name (self)
None resetRedrawFlag (self)
bool sameModels (self, ConstObject other)
Object shallowCloneTree (self)
Const_std_set_std_string tags (self)
ViewportMask visibilityMask (self)
AffineXf3f worldXf (self, ConstViewportId id=..., bool_output isDef=None)
ConstAffineXf3f xf (self, ConstViewportId id=..., bool_output isDef=None)
ConstViewportProperty_AffineXf3f xfsForAllViewports (self)
Public Member Functions inherited from mrmeshpy.ConstObjectChildrenHolder
 __init__ (self, *args, **kwargs)
Object getSharedPtr (self)
Public Member Functions inherited from mrmeshpy.ConstObjectComparableWithReference
bool comparisonToleranceIsAlwaysOnlyPositive (self, int i)
int numComparisonReferenceValues (self)
Public Member Functions inherited from mrmeshpy.MeasurementObject
None __init__ (self, ConstMeasurementObject arg0)
Public Member Functions inherited from mrmeshpy.VisualObject
None __init__ (self)
None copyAllSolidColors (self, ConstVisualObject other)
None resetColors (self)
None resetFrontColor (self)
None setAllVisualizeProperties (self, Const_std_vector_ViewportMask properties)
None setAmbientStrength (self, float ambientStrength)
None setBackColor (self, ConstColor color, ConstViewportId viewportId=...)
None setBackColorsForAllViewports (self, ConstViewportProperty_Color val)
None setColoringType (self, ColoringType coloringType)
None setDirtyFlags (self, int mask, bool invalidateCaches=True)
None setFrontColor (self, ConstColor color, bool selected, ConstViewportId viewportId=...)
None setFrontColorsForAllViewports (self, ConstViewportProperty_Color val, bool selected=True)
None setGlobalAlpha (self, int alpha, ConstViewportId viewportId=...)
None setGlobalAlphaForAllViewports (self, ConstViewportProperty_unsigned_char val)
None setGlobalClippedByPlane (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::all()')
None setPickable (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::all()')
None setShininess (self, float shininess)
None setSpecularStrength (self, float specularStrength)
None setUseDefaultScenePropertiesOnDeserialization (self, bool useDefaultScenePropertiesOnDeserialization)
None setVisualizeProperty (self, bool value, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
None setVisualizePropertyMask (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
None showName (self, bool on)
bool showName (ConstVisualObject self)
None toggleVisualizeProperty (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
Public Member Functions inherited from mrmeshpy.Object
None __init__ (self)
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 (self)
ConstVisualObject asType (ConstObject self)
Const_std_vector_std_shared_ptr_Object children (self)
Const_std_vector_std_shared_ptr_Object_const children (ConstObject self)
bool detachFromParent (self)
Object find (self, str name)
ConstObject find (ConstObject self, str name)
Object findCommonAncestor (self, Object other)
ConstObject findCommonAncestor (ConstObject self, ConstObject other)
Object parent (self)
ConstObject parent (ConstObject self)
None removeAllChildren (self)
bool removeChild (self, Object child)
bool removeChild (self, Object child)
bool removeTag (self, str tag)
None resetXf (self, ConstViewportId id=...)
bool select (self, bool on)
None setAncillary (self, bool ancillary)
None setGlobalVisibility (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::any()')
None setLocked (self, bool on)
None setName (self, str name)
None setParentLocked (self, bool lock)
None setVisibilityMask (self, ConstViewportMask viewportMask)
None setVisible (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::all()')
None setWorldXf (self, ConstAffineXf3f xf, ConstViewportId id=...)
None setXf (self, ConstAffineXf3f xf, ConstViewportId id=...)
None setXfsForAllViewports (self, ConstViewportProperty_AffineXf3f xf)
None sortChildren (self)
None swap (self, Object other)
Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder
None __init__ (self)
None __init__ (self, ConstObjectChildrenHolder arg0)
ObjectChildrenHolder assign (self, ConstObjectChildrenHolder other)
Public Member Functions inherited from mrmeshpy.ObjectComparableWithReference
None setComparisonReferenceVal (self, int i, ObjectComparableWithReference.ConstComparisonReferenceValue value)

Additional Inherited Members

Static Public Member Functions inherited from mrmeshpy.ConstDistanceMeasurementObject
str StaticClassName ()
str StaticClassNameInPlural ()
str StaticTypeName ()
Static Public Member Functions inherited from mrmeshpy.ConstVisualObject
Box3f getWorldBox (*args, **kwargs)
bool render (*args, **kwargs)
None renderForPicker (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstObject
Box3f getWorldTreeBox (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.MeasurementObject
None __init__ (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder
None __init__ (*args, **kwargs)

Detailed Description

Generated from:  MR::DistanceMeasurementObject

Represents a distance measurement.

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.DistanceMeasurementObject.__init__ ( self)
The xf encodes the distance: the origin is one point, and (1,0,0) is another.

Member Function Documentation

◆ setComparisonReferenceValue()

None mrmeshpy.DistanceMeasurementObject.setComparisonReferenceValue ( self,
int i,
Const_std_variant_float_Vector3_float | None 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.DistanceMeasurementObject.setComparisonTolerance ( self,
int i,
Const_std_optional_ObjectComparableWithReference_ComparisonTolerance newTolerance )
Sets the tolerance for a specific comparable property.
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented from mrmeshpy.ObjectComparableWithReference.

◆ setDistanceMode()

None mrmeshpy.DistanceMeasurementObject.setDistanceMode ( self,
DistanceMeasurementObject.DistanceMode mode )

◆ setIsNegative()

None mrmeshpy.DistanceMeasurementObject.setIsNegative ( self,
bool value )

◆ setLocalDelta()

None mrmeshpy.DistanceMeasurementObject.setLocalDelta ( self,
ConstVector3f delta )
Set the delta vector in the local coordinates.

◆ setLocalPoint()

None mrmeshpy.DistanceMeasurementObject.setLocalPoint ( self,
ConstVector3f point )
Set the start point in the local coordinates.

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