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

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='MR::ViewportId{}')
 
Vector3f getCenter (self, ViewportId id='MR::ViewportId{}')
 
str getClassName (self)
 
Vector3f getDirection (self, ViewportId id='MR::ViewportId{}')
 
float getLength (self, ViewportId id='MR::ViewportId{}')
 
float getRadius (self, ViewportId id='MR::ViewportId{}')
 
FeatureObjectProjectPointResult projectPoint (self, Vector3f point, ViewportId id='MR::ViewportId{}')
 
None setCenter (self, Vector3f center, ViewportId id='MR::ViewportId{}')
 
None setDirection (self, Vector3f normal, ViewportId id='MR::ViewportId{}')
 
None setLength (self, float length, ViewportId id='MR::ViewportId{}')
 
None setRadius (self, float radius, ViewportId id='MR::ViewportId{}')
 
Object shallowClone (self)
 
str typeName (self)
 
- Public Member Functions inherited from meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length
std_vector_ViewportMask getAllVisualizeProperties (self)
 
ViewportMask getVisualizePropertyMask (self, AnyVisualizeMaskEnum type)
 
bool supportsVisualizeProperty (self, AnyVisualizeMaskEnum type)
 
- Public Member Functions inherited from meshlib.mrmeshpy.FeatureObject
Color getDecorationsColor (self, bool selected, ViewportId viewportId='MR::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='MR::ViewportId{}', bool_output isDef=None)
 
Matrix3f getScaleShearMatrix (self, ViewportId id='MR::ViewportId{}', bool_output isDef=None)
 
float getSubfeatureAlphaLines (self)
 
float getSubfeatureAlphaMesh (self)
 
float getSubfeatureAlphaPoints (self)
 
float getSubfeatureLineWidth (self)
 
float getSubfeaturePointSize (self)
 
None resetXf (self, ViewportId id='MR::ViewportId{}')
 
None setDecorationsColor (self, Color color, bool selected, ViewportId viewportId='MR::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='MR::ViewportId{}')
 
- Public Member Functions inherited from meshlib.mrmeshpy.VisualObject
None copyColors (self, VisualObject src, VertMap thisToSrc, FaceMap thisToSrcFaces='MR::FaceMap{}')
 
float getAmbientStrength (self)
 
Color getBackColor (self, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_Color getBackColorsForAllViewports (self)
 
Box3f getBoundingBox (self)
 
ColoringType getColoringType (self)
 
int getDirtyFlags (self)
 
Color getFrontColor (self, bool selected=True, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_Color getFrontColorsForAllViewports (self, bool selected=True)
 
int getGlobalAlpha (self, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_unsigned_char getGlobalAlphaForAllViewports (self)
 
std_vector_std_string getInfoLines (self)
 
std_vector_PositionedText getLabels (self)
 
Color getLabelsColor (self, ViewportId viewportId='MR::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='MR::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='MR::ViewportId{}')
 
None setFrontColorsForAllViewports (self, ViewportProperty_Color val, bool selected=True)
 
None setGlobalAlpha (self, int alpha, ViewportId viewportId='MR::ViewportId{}')
 
None setGlobalAlphaForAllViewports (self, ViewportProperty_unsigned_char val)
 
None setLabels (self, std_vector_PositionedText labels)
 
None setLabelsColor (self, Color color, ViewportId viewportId='MR::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 meshlib.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='MR::ViewportId{}')
 
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='MR::ViewportId{}', bool_output isDef=None)
 
AffineXf3f xf (self, ViewportId id='MR::ViewportId{}', bool_output isDef=None)
 
ViewportProperty_AffineXf3f xfsForAllViewports (self)
 
- Public Member Functions inherited from meshlib.mrmeshpy.ObjectChildrenHolder
Object getSharedPtr (self)
 

Static Public Member Functions

str TypeName ()
 
- Static Public Member Functions inherited from meshlib.mrmeshpy.VisualObject
Box3f getWorldBox (*args, **kwargs)
 
bool render (*args, **kwargs)
 
None renderForPicker (*args, **kwargs)
 
- Static Public Member Functions inherited from meshlib.mrmeshpy.Object
Box3f getWorldTreeBox (*args, **kwargs)
 

Additional Inherited Members

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

Detailed Description

Generated from:  MR::CylinderObject
Aliases:  ObjKindTraits_FeaturesObjectKind_Cylinder.type

Object to show Cylinder feature, position and radius are controlled by xf
\\ingroup FeaturesGroup

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.CylinderObject.__init__ ( self)
Creates simple Cylinder object with center in zero and radius - 1

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ __init__() [2/2]

None meshlib.mrmeshpy.CylinderObject.__init__ ( self,
std_vector_Vector3_float pointsToApprox )
Finds best Cylinder to approx given points

Reimplemented from meshlib.mrmeshpy.VisualObject.

Member Function Documentation

◆ clone()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ getAllSharedProperties()

std_vector_FeatureObjectSharedProperty meshlib.mrmeshpy.CylinderObject.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 meshlib.mrmeshpy.FeatureObject.

◆ getBasePoint()

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

Reimplemented from meshlib.mrmeshpy.FeatureObject.

◆ getCenter()

Vector3f meshlib.mrmeshpy.CylinderObject.getCenter ( self,
ViewportId id = 'MR::ViewportId{}' )
calculates center from xf

◆ getClassName()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ getDirection()

Vector3f meshlib.mrmeshpy.CylinderObject.getDirection ( self,
ViewportId id = 'MR::ViewportId{}' )
calculates main axis direction from xf

◆ getLength()

float meshlib.mrmeshpy.CylinderObject.getLength ( self,
ViewportId id = 'MR::ViewportId{}' )
calculates cylinder length from xf

◆ getRadius()

float meshlib.mrmeshpy.CylinderObject.getRadius ( self,
ViewportId id = 'MR::ViewportId{}' )
calculates radius from xf

◆ projectPoint()

FeatureObjectProjectPointResult meshlib.mrmeshpy.CylinderObject.projectPoint ( self,
Vector3f point,
ViewportId id = 'MR::ViewportId{}' )
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 meshlib.mrmeshpy.FeatureObject.

◆ setCenter()

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

◆ setDirection()

None meshlib.mrmeshpy.CylinderObject.setDirection ( self,
Vector3f normal,
ViewportId id = 'MR::ViewportId{}' )
updates xf to fit main axis

◆ setLength()

None meshlib.mrmeshpy.CylinderObject.setLength ( self,
float length,
ViewportId id = 'MR::ViewportId{}' )
updates xf to fit cylinder length

◆ setRadius()

None meshlib.mrmeshpy.CylinderObject.setRadius ( self,
float radius,
ViewportId id = 'MR::ViewportId{}' )
updates xf to fit given radius

◆ shallowClone()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ TypeName()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ typeName()

str meshlib.mrmeshpy.CylinderObject.typeName ( self)

Reimplemented from meshlib.mrmeshpy.VisualObject.


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