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

Public Member Functions

None __init__ (self)
None applyScale (self, float scaleFactor)
None copyColors (self, ConstObjectLinesHolder src, ConstVertMap thisToSrc)
None resetFrontColor (self)
None setDashPattern (self, ConstVector4_unsigned_char pattern, ConstViewportId vpId=...)
None setDirtyFlags (self, int mask, bool invalidateCaches=True)
None setLineWidth (self, float width)
None setLinesColorMap (self, ConstUndirectedEdgeColors linesColorMap)
None setPointSize (self, float size)
None setVertsColorMap (self, ConstVertColors vertsColorMap)
None updateLinesColorMap (self, UndirectedEdgeColors updated)
None updateVertsColorMap (self, VertColors vertsColorMap)
Polyline3 varPolylinePtr (self)
Public Member Functions inherited from mrmeshpy.ConstObjectLinesHolder
 __init__ (self, *args, **kwargs)
float avgEdgeLen (self)
Object clone (self)
std_vector_ViewportMask getAllVisualizeProperties (self)
ConstVector4_unsigned_char getDashPattern (self, ConstViewportId vpId=..., bool_output isDef=None)
float getLineWidth (self)
ConstUndirectedEdgeColors getLinesColorMap (self)
float getPointSize (self)
ConstVertColors getVertsColorMap (self)
ConstViewportMask getVisualizePropertyMask (self, ConstAnyVisualizeMaskEnum type)
bool hasModel (self)
bool hasVisualRepresentation (self)
int heapBytes (self)
int numComponents (self)
int numUndirectedEdges (self)
ConstPolyline3 polyline (self)
ConstPolyline3 polylinePtr (self)
Object shallowClone (self)
bool supportsVisualizeProperty (self, ConstAnyVisualizeMaskEnum type)
float totalLength (self)
str typeName (self)
Public Member Functions inherited from mrmeshpy.ConstVisualObject
 __init__ (self, *args, **kwargs)
str className (self)
str classNameInPlural (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)
std_vector_std_string getInfoLines (self)
bool getRedrawFlag (self, ConstViewportMask viewportMask)
float getShininess (self)
float getSpecularStrength (self)
bool getVisualizeProperty (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
bool globalClippedByPlane (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
ViewportMask globalClippedByPlaneMask (self)
bool isPickable (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
None renderUi (self, ConstUiRenderParams params)
None resetDirty (self)
None resetDirtyExceptMask (self, int mask)
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 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.VisualObject
None __init__ (self)
None copyAllSolidColors (self, ConstVisualObject other)
None resetColors (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 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)
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)

Additional Inherited Members

Static Public Member Functions inherited from mrmeshpy.ConstObjectLinesHolder
str StaticTypeName ()
Box3f getWorldBox (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstVisualObject
str StaticClassName ()
str StaticClassNameInPlural ()
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.ObjectChildrenHolder
None __init__ (*args, **kwargs)

Detailed Description

Generated from:  MR::ObjectLinesHolder
Aliases:  ChangeLinesColorMapAction.Obj, std_shared_ptr_ObjectLinesHolder

an object that stores a lines

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.ObjectLinesHolder.__init__ ( self)

Member Function Documentation

◆ applyScale()

None mrmeshpy.ObjectLinesHolder.applyScale ( self,
float scaleFactor )
scale object size (all point positions)

Reimplemented from mrmeshpy.Object.

◆ copyColors()

None mrmeshpy.ObjectLinesHolder.copyColors ( self,
ConstObjectLinesHolder src,
ConstVertMap thisToSrc )
copies vertex colors from given source object \\param src using given map \\param thisToSrc

◆ resetFrontColor()

None mrmeshpy.ObjectLinesHolder.resetFrontColor ( self)
reset basic object colors to their default values from the current theme

Reimplemented from mrmeshpy.VisualObject.

◆ setDashPattern()

None mrmeshpy.ObjectLinesHolder.setDashPattern ( self,
ConstVector4_unsigned_char pattern,
ConstViewportId vpId = ... )
specify dash pattern in pixels
[0] - dash
[1] - space
[2] - dash
[3] - space

◆ setDirtyFlags()

None mrmeshpy.ObjectLinesHolder.setDirtyFlags ( self,
int mask,
bool invalidateCaches = True )
sets some dirty flags for the object (to force its visual update)
\\param mask is a union of DirtyFlags flags
\\param invalidateCaches whether to automatically invalidate model caches (pass false here if you manually update the caches)

Reimplemented from mrmeshpy.VisualObject.

Reimplemented in mrmeshpy.ObjectGcode.

◆ setLinesColorMap()

None mrmeshpy.ObjectLinesHolder.setLinesColorMap ( self,
ConstUndirectedEdgeColors linesColorMap )

◆ setLineWidth()

None mrmeshpy.ObjectLinesHolder.setLineWidth ( self,
float width )

◆ setPointSize()

None mrmeshpy.ObjectLinesHolder.setPointSize ( self,
float size )

◆ setVertsColorMap()

None mrmeshpy.ObjectLinesHolder.setVertsColorMap ( self,
ConstVertColors vertsColorMap )
sets per-vertex colors of the object

◆ updateLinesColorMap()

None mrmeshpy.ObjectLinesHolder.updateLinesColorMap ( self,
UndirectedEdgeColors updated )

◆ updateVertsColorMap()

None mrmeshpy.ObjectLinesHolder.updateVertsColorMap ( self,
VertColors vertsColorMap )
swaps per-vertex colors of the object with given argument

◆ varPolylinePtr()

Polyline3 mrmeshpy.ObjectLinesHolder.varPolylinePtr ( self)
returns the polyline of this object for modification, or nullptr if it is not set

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