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

Public Member Functions

None __init__ (self)
 
None __init__ (self, std_vector_Vector3_float pointsToApprox)
 
Object clone (self)
 
std_vector_FeatureObjectSharedProperty getAllSharedProperties (self)
 
Vector3f getBasePoint (self, ViewportId id='{}')
 
Vector3f getCenter (self, ViewportId id='{}')
 
str getClassName (self)
 
str getClassNameInPlural (self)
 
Vector3f getDirection (self, ViewportId id='{}')
 
float getLength (self, ViewportId id='{}')
 
Vector3f getPointA (self, ViewportId id='{}')
 
Vector3f getPointB (self, ViewportId id='{}')
 
FeatureObjectProjectPointResult projectPoint (self, Vector3f point, ViewportId id='{}')
 
None setCenter (self, Vector3f center, ViewportId id='{}')
 
None setDirection (self, Vector3f normal, ViewportId id='{}')
 
None setLength (self, float size, ViewportId id='{}')
 
None setSize (self, float halfLen, ViewportId id='{}')
 
Object shallowClone (self)
 
str typeName (self)
 
- Public Member Functions inherited from mrmeshpy.FeatureObject
std_vector_ViewportMask getAllVisualizeProperties (self)
 
Color getDecorationsColor (self, bool selected, ViewportId viewportId='{}', bool_output isDef=None)
 
ViewportProperty_Color getDecorationsColorForAllViewports (self, bool selected)
 
float getLineWidth (self)
 
float getMainFeatureAlpha (self)
 
Vector3f getNormal (self, Vector3f point)
 
float getPointSize (self)
 
Matrix3f getRotationMatrix (self, ViewportId id='{}', bool_output isDef=None)
 
Matrix3f getScaleShearMatrix (self, ViewportId id='{}', bool_output isDef=None)
 
float getSubfeatureAlphaLines (self)
 
float getSubfeatureAlphaMesh (self)
 
float getSubfeatureAlphaPoints (self)
 
float getSubfeatureLineWidth (self)
 
float getSubfeaturePointSize (self)
 
ViewportMask getVisualizePropertyMask (self, AnyVisualizeMaskEnum type)
 
None resetXf (self, ViewportId id='{}')
 
None setDecorationsColor (self, Color color, bool selected, ViewportId viewportId='{}')
 
None setDecorationsColorForAllViewports (self, ViewportProperty_Color val, bool selected)
 
None setLineWidth (self, float lineWidth)
 
None setMainFeatureAlpha (self, float alpha)
 
None setPointSize (self, float pointSize)
 
None setSubfeatureAlphaLines (self, float alpha)
 
None setSubfeatureAlphaMesh (self, float alpha)
 
None setSubfeatureAlphaPoints (self, float alpha)
 
None setSubfeatureLineWidth (self, float lineWidth)
 
None setSubfeaturePointSize (self, float pointSize)
 
None setXf (self, AffineXf3f xf, ViewportId id='{}')
 
bool supportsVisualizeProperty (self, AnyVisualizeMaskEnum type)
 
- Public Member Functions inherited from mrmeshpy.VisualObject
None copyColors (self, VisualObject src, VertMap thisToSrc, FaceMap thisToSrcFaces='{}')
 
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)
 
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)
 
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)
 
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)
 
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 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::LineObject
Aliases:  ObjKindTraits_FeaturesObjectKind_Line.type

Object to show plane feature
\\ingroup FeaturesGroup

Constructor & Destructor Documentation

◆ __init__() [1/2]

None mrmeshpy.LineObject.__init__ ( self)
Creates simple plane object

Reimplemented from mrmeshpy.VisualObject.

◆ __init__() [2/2]

None mrmeshpy.LineObject.__init__ ( self,
std_vector_Vector3_float pointsToApprox )
Finds best plane to approx given points

Reimplemented from mrmeshpy.VisualObject.

Member Function Documentation

◆ _pybind11_conduit_v1_()

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

Reimplemented from mrmeshpy.FeatureObject.

◆ clone()

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

Reimplemented from mrmeshpy.VisualObject.

◆ getAllSharedProperties()

std_vector_FeatureObjectSharedProperty mrmeshpy.LineObject.getAllSharedProperties ( self)
Create and generate list of bounded getters and setters for the main properties of feature object, together with prop. name for display and edit into UI.

Reimplemented from mrmeshpy.FeatureObject.

◆ getBasePoint()

Vector3f mrmeshpy.LineObject.getBasePoint ( self,
ViewportId id = '{}' )
Returns point considered as base for the feature

Reimplemented from mrmeshpy.FeatureObject.

◆ getCenter()

Vector3f mrmeshpy.LineObject.getCenter ( self,
ViewportId id = '{}' )
calculates center from xf

◆ getClassName()

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

Reimplemented from mrmeshpy.VisualObject.

◆ getClassNameInPlural()

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

Reimplemented from mrmeshpy.VisualObject.

◆ getDirection()

Vector3f mrmeshpy.LineObject.getDirection ( self,
ViewportId id = '{}' )
calculates direction from xf

◆ getLength()

float mrmeshpy.LineObject.getLength ( self,
ViewportId id = '{}' )
calculates line size from xf

◆ getPointA()

Vector3f mrmeshpy.LineObject.getPointA ( self,
ViewportId id = '{}' )
Returns the starting point, aka `center - dir * len/2`.

◆ getPointB()

Vector3f mrmeshpy.LineObject.getPointB ( self,
ViewportId id = '{}' )
Returns the finishing point, aka `center + dir * len/2`.

◆ projectPoint()

FeatureObjectProjectPointResult mrmeshpy.LineObject.projectPoint ( self,
Vector3f point,
ViewportId id = '{}' )
Since a point on an abstract feature is difficult to uniquely parameterize,
the projection function simultaneously returns the normal to the surface at the projection point.

Reimplemented from mrmeshpy.FeatureObject.

◆ setCenter()

None mrmeshpy.LineObject.setCenter ( self,
Vector3f center,
ViewportId id = '{}' )
updates xf to fit given center

◆ setDirection()

None mrmeshpy.LineObject.setDirection ( self,
Vector3f normal,
ViewportId id = '{}' )
updates xf to fit given normal

◆ setLength()

None mrmeshpy.LineObject.setLength ( self,
float size,
ViewportId id = '{}' )
updates xf to scale size

◆ setSize()

None mrmeshpy.LineObject.setSize ( self,
float halfLen,
ViewportId id = '{}' )

◆ shallowClone()

Object mrmeshpy.LineObject.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.LineObject.TypeName ( )
static
return name of subtype for serialization purposes

Reimplemented from mrmeshpy.VisualObject.

◆ typeName()

str mrmeshpy.LineObject.typeName ( self)

Reimplemented from mrmeshpy.VisualObject.


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