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

Public Member Functions

None __init__ (self)
 
Object clone (self)
 
float computeAngle (self)
 
str getClassName (self)
 
str getClassNameInPlural (self)
 
std_vector_std_string getInfoLines (self)
 
bool getIsConical (self)
 
Vector3f getLocalPoint (self)
 
Vector3f getLocalRay (self, bool second)
 
bool getShouldVisualizeRay (self, bool second)
 
Vector3f getWorldPoint (self)
 
Vector3f getWorldRay (self, bool second)
 
None setIsConical (self, bool value)
 
None setLocalPoint (self, Vector3f point)
 
None setLocalRays (self, Vector3f a, Vector3f b)
 
None setShouldVisualizeRay (self, bool second, bool enable)
 
Object shallowClone (self)
 
str typeName (self)
 
- Public Member Functions inherited from mrmeshpy.VisualObject
None copyColors (self, VisualObject src, VertMap thisToSrc, FaceMap thisToSrcFaces='{}')
 
std_vector_ViewportMask getAllVisualizeProperties (self)
 
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_PositionedText getLabels (self)
 
Color getLabelsColor (self, ViewportId viewportId='{}')
 
ViewportProperty_Color getLabelsColorsForAllViewports (self)
 
bool getRedrawFlag (self, ViewportMask viewportMask)
 
float getShininess (self)
 
float getSpecularStrength (self)
 
VertColors getVertsColorMap (self)
 
bool getVisualizeProperty (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
ViewportMask getVisualizePropertyMask (self, AnyVisualizeMaskEnum type)
 
int heapBytes (self)
 
bool isPickable (self, ViewportMask viewportMask='ViewportMask::any()')
 
None renderUi (self, UiRenderParams params)
 
None resetDirty (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 setLabels (self, std_vector_PositionedText labels)
 
None setLabelsColor (self, Color color, ViewportId viewportId='{}')
 
None setLabelsColorsForAllViewports (self, ViewportProperty_Color val)
 
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 setVertsColorMap (self, VertColors vertsColorMap)
 
None setVisualizeProperty (self, bool value, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None setVisualizePropertyMask (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None showLabels (self, bool on)
 
bool showLabels (self)
 
None showName (self, bool on)
 
bool showName (self)
 
bool supportsVisualizeProperty (self, AnyVisualizeMaskEnum type)
 
None toggleVisualizeProperty (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None updateVertsColorMap (self, VertColors vertsColorMap)
 
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)
 
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 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)
 
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)
 
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)
 

Static Public Member Functions

str TypeName ()
 
- 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 Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 
- Static Protected Member Functions inherited from mrmeshpy.ObjectChildrenHolder
ObjectChildrenHolder _Equal (*args, **kwargs)
 
ObjectChildrenHolder _Equal (*args, **kwargs)
 

Detailed Description

Generated from:  MR::AngleMeasurementObject

Represents an angle measurement.

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.AngleMeasurementObject.__init__ ( self)
The xf encodes the two rays: the origin is the angle point, (1,0,0) is the first ray, (0,1,0) is the second ray.

Reimplemented from mrmeshpy.MeasurementObject.

Member Function Documentation

◆ _pybind11_conduit_v1_()

mrmeshpy.AngleMeasurementObject._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

Reimplemented from mrmeshpy.MeasurementObject.

◆ clone()

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

Reimplemented from mrmeshpy.VisualObject.

◆ computeAngle()

float mrmeshpy.AngleMeasurementObject.computeAngle ( self)
Computes the angle value, as if by `acos(dot(...))` from the two normalized `getWorldRay()`s.

◆ getClassName()

str mrmeshpy.AngleMeasurementObject.getClassName ( self)
return human readable name of subclass

Reimplemented from mrmeshpy.VisualObject.

◆ getClassNameInPlural()

str mrmeshpy.AngleMeasurementObject.getClassNameInPlural ( self)
return human readable name of subclass in plural form

Reimplemented from mrmeshpy.VisualObject.

◆ getInfoLines()

std_vector_std_string mrmeshpy.AngleMeasurementObject.getInfoLines ( self)
return several info lines that can better describe the object in the UI

Reimplemented from mrmeshpy.VisualObject.

◆ getIsConical()

bool mrmeshpy.AngleMeasurementObject.getIsConical ( self)
Whether this is a conical angle. The middle line between the rays is preserved, but the rays themselves can be rotated.

◆ getLocalPoint()

Vector3f mrmeshpy.AngleMeasurementObject.getLocalPoint ( self)
Get the angle point in local coordinates.

◆ getLocalRay()

Vector3f mrmeshpy.AngleMeasurementObject.getLocalRay ( self,
bool second )
Same, but in local coordinates.

◆ getShouldVisualizeRay()

bool mrmeshpy.AngleMeasurementObject.getShouldVisualizeRay ( self,
bool second )
Whether we should draw a ray from the center point to better visualize the angle. Enable this if there isn't already a line object there.

◆ getWorldPoint()

Vector3f mrmeshpy.AngleMeasurementObject.getWorldPoint ( self)
Get the angle point in world coordinates.

◆ getWorldRay()

Vector3f mrmeshpy.AngleMeasurementObject.getWorldRay ( self,
bool second )
One of the two rays representing the angle, relative to the starting point.
They can have length != 1 for visualization purposes, it's probably a good idea to take the smaller of the two lengths.

◆ setIsConical()

None mrmeshpy.AngleMeasurementObject.setIsConical ( self,
bool value )

◆ setLocalPoint()

None mrmeshpy.AngleMeasurementObject.setLocalPoint ( self,
Vector3f point )
Set the angle point in the local coordinates.

◆ setLocalRays()

None mrmeshpy.AngleMeasurementObject.setLocalRays ( self,
Vector3f a,
Vector3f b )
Set the two rays representing the angle in the local coordinates.
The lengths are preserved.

◆ setShouldVisualizeRay()

None mrmeshpy.AngleMeasurementObject.setShouldVisualizeRay ( self,
bool second,
bool enable )

◆ shallowClone()

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

Reimplemented from mrmeshpy.VisualObject.

◆ TypeName()

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

Reimplemented from mrmeshpy.VisualObject.

◆ typeName()

str mrmeshpy.AngleMeasurementObject.typeName ( self)

Reimplemented from mrmeshpy.VisualObject.


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