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

Public Member Functions

 __init__ (self, *args, **kwargs)
str className (self)
str classNameInPlural (self)
Object clone (self)
float computeAngle (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)
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 showName (self)
bool supportsVisualizeProperty (self, ConstAnyVisualizeMaskEnum type)
bool useDefaultScenePropertiesOnDeserialization (self)
Public Member Functions inherited from mrmeshpy.ConstObject
 __init__ (self, *args, **kwargs)
ConstVisualObject asType (self)
Const_std_vector_std_shared_ptr_Object_const children (self)
Object cloneTree (self)
ConstChildren constChildren (self)
ConstObject find (self, str name)
ConstObject findCommonAncestor (self, ConstObject other)
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)
ConstObject parent (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)

Static Public Member Functions

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)

Detailed Description

Generated from:  MR::AngleMeasurementObject

Represents an angle measurement.

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstAngleMeasurementObject.__init__ ( self,
* args,
** kwargs )
__init__(self: meshlib.mrmeshpy.ConstAngleMeasurementObject) -> None

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.

Member Function Documentation

◆ className()

str mrmeshpy.ConstAngleMeasurementObject.className ( self)

Reimplemented from mrmeshpy.ConstVisualObject.

◆ classNameInPlural()

str mrmeshpy.ConstAngleMeasurementObject.classNameInPlural ( self)

Reimplemented from mrmeshpy.ConstVisualObject.

◆ clone()

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

Reimplemented from mrmeshpy.ConstVisualObject.

◆ computeAngle()

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

◆ getInfoLines()

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

Reimplemented from mrmeshpy.ConstVisualObject.

◆ getIsConical()

bool mrmeshpy.ConstAngleMeasurementObject.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.ConstAngleMeasurementObject.getLocalPoint ( self)
Get the angle point in local coordinates.

◆ getLocalRay()

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

◆ getShouldVisualizeRay()

bool mrmeshpy.ConstAngleMeasurementObject.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.ConstAngleMeasurementObject.getWorldPoint ( self)
Get the angle point in world coordinates.

◆ getWorldRay()

Vector3f mrmeshpy.ConstAngleMeasurementObject.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.

◆ shallowClone()

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

Reimplemented from mrmeshpy.ConstVisualObject.

◆ StaticClassName()

str mrmeshpy.ConstAngleMeasurementObject.StaticClassName ( )
static
return human readable name of subclass

Reimplemented from mrmeshpy.ConstVisualObject.

◆ StaticClassNameInPlural()

str mrmeshpy.ConstAngleMeasurementObject.StaticClassNameInPlural ( )
static
return human readable name of subclass in plural form

Reimplemented from mrmeshpy.ConstVisualObject.

◆ StaticTypeName()

str mrmeshpy.ConstAngleMeasurementObject.StaticTypeName ( )
static
return name of subtype for serialization purposes

Reimplemented from mrmeshpy.ConstVisualObject.

◆ typeName()

str mrmeshpy.ConstAngleMeasurementObject.typeName ( self)

Reimplemented from mrmeshpy.ConstVisualObject.


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