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

Public Member Functions

None __init__ (self)
 
Object clone (self)
 
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)
 
str getClassName (self)
 
str getClassNameInPlural (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)
 
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)
 
Object shallowClone (self)
 
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)
 
str typeName (self)
 
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 ()
 
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::VisualObject
Aliases:  ChangeVisualizePropertyAction.Obj, ChangeVertsColorMapAction.Obj, ChangeColoringType.Obj, ChangeObjectColorAction.Obj

Visual Object

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ _pybind11_conduit_v1_()

◆ clone()

◆ copyColors()

None mrmeshpy.VisualObject.copyColors ( self,
VisualObject src,
VertMap thisToSrc,
FaceMap thisToSrcFaces = '{}' )
copies point colors from given source object \\param src using given map \\param thisToSrc

Reimplemented in mrmeshpy.ObjectMeshHolder.

◆ getAllVisualizeProperties()

◆ getAmbientStrength()

float mrmeshpy.VisualObject.getAmbientStrength ( self)
returns intensity of non-directional light

◆ getBackColor()

Color mrmeshpy.VisualObject.getBackColor ( self,
ViewportId viewportId = '{}' )
returns backward color of object in given viewport

◆ getBackColorsForAllViewports()

ViewportProperty_Color mrmeshpy.VisualObject.getBackColorsForAllViewports ( self)
returns backward color of object in all viewports

◆ getBoundingBox()

Box3f mrmeshpy.VisualObject.getBoundingBox ( self)
returns cached bounding box of this object in local coordinates

◆ getClassName()

◆ getClassNameInPlural()

◆ getColoringType()

ColoringType mrmeshpy.VisualObject.getColoringType ( self)
returns the current coloring mode of the object

◆ getDirtyFlags()

int mrmeshpy.VisualObject.getDirtyFlags ( self)
returns current dirty flags for the object

◆ getFrontColor()

Color mrmeshpy.VisualObject.getFrontColor ( self,
bool selected = True,
ViewportId viewportId = '{}' )
returns color of object when it is selected/not-selected (depending on argument) in given viewport

◆ getFrontColorsForAllViewports()

ViewportProperty_Color mrmeshpy.VisualObject.getFrontColorsForAllViewports ( self,
bool selected = True )
returns color of object when it is selected/not-selected (depending on argument) in all viewports

◆ getGlobalAlpha()

int mrmeshpy.VisualObject.getGlobalAlpha ( self,
ViewportId viewportId = '{}' )
returns global transparency alpha of object in given viewport

◆ getGlobalAlphaForAllViewports()

ViewportProperty_unsigned_char mrmeshpy.VisualObject.getGlobalAlphaForAllViewports ( self)
returns global transparency alpha of object in all viewports

◆ getInfoLines()

std_vector_std_string mrmeshpy.VisualObject.getInfoLines ( self)

◆ getLabels()

std_vector_PositionedText mrmeshpy.VisualObject.getLabels ( self)

◆ getLabelsColor()

Color mrmeshpy.VisualObject.getLabelsColor ( self,
ViewportId viewportId = '{}' )

◆ getLabelsColorsForAllViewports()

ViewportProperty_Color mrmeshpy.VisualObject.getLabelsColorsForAllViewports ( self)

◆ getRedrawFlag()

bool mrmeshpy.VisualObject.getRedrawFlag ( self,
ViewportMask viewportMask )
returns true if the object must be redrawn (due to dirty flags) in one of specified viewports

Reimplemented from mrmeshpy.Object.

Reimplemented in mrmeshpy.ObjectMeshHolder.

◆ getShininess()

float mrmeshpy.VisualObject.getShininess ( self)
returns the current shininess visual value

◆ getSpecularStrength()

float mrmeshpy.VisualObject.getSpecularStrength ( self)
returns intensity of reflections

◆ getVertsColorMap()

VertColors mrmeshpy.VisualObject.getVertsColorMap ( self)
returns per-vertex colors of the object

◆ getVisualizeProperty()

bool mrmeshpy.VisualObject.getVisualizeProperty ( self,
AnyVisualizeMaskEnum type,
ViewportMask viewportMask )
returns true if the property is set at least in one viewport specified by the mask

◆ getVisualizePropertyMask()

◆ getWorldBox()

Box3f mrmeshpy.VisualObject.getWorldBox ( * args,
** kwargs )
static
returns bounding box of this object in given viewport in world coordinates,
to get world bounding box of the object with all child objects, please call Object::getWorldTreeBox method

Reimplemented from mrmeshpy.Object.

Reimplemented in mrmeshpy.ObjectLabel, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMeshHolder, and mrmeshpy.ObjectPointsHolder.

◆ heapBytes()

int mrmeshpy.VisualObject.heapBytes ( self)

◆ isPickable()

bool mrmeshpy.VisualObject.isPickable ( self,
ViewportMask viewportMask = 'ViewportMask::any()' )
whether the object can be picked (by mouse) in any of given viewports

◆ render()

bool mrmeshpy.VisualObject.render ( * args,
** kwargs )
static
draws this object for visualization
Returns true if something was drawn.

◆ renderForPicker()

None mrmeshpy.VisualObject.renderForPicker ( * args,
** kwargs )
static
draws this object for picking

◆ renderUi()

None mrmeshpy.VisualObject.renderUi ( self,
UiRenderParams params )
draws this object for 2d UI

◆ resetDirty()

None mrmeshpy.VisualObject.resetDirty ( self)
resets all dirty flags (except for cache flags that will be reset automatically on cache update)

◆ setAllVisualizeProperties()

None mrmeshpy.VisualObject.setAllVisualizeProperties ( self,
std_vector_ViewportMask properties )
set all visualize properties masks

◆ setAmbientStrength()

None mrmeshpy.VisualObject.setAmbientStrength ( self,
float ambientStrength )
sets intensity of non-directional light

◆ setBackColor()

None mrmeshpy.VisualObject.setBackColor ( self,
Color color,
ViewportId viewportId = '{}' )
sets backward color of object in given viewport

◆ setBackColorsForAllViewports()

None mrmeshpy.VisualObject.setBackColorsForAllViewports ( self,
ViewportProperty_Color val )
sets backward color of object in all viewports

◆ setColoringType()

None mrmeshpy.VisualObject.setColoringType ( self,
ColoringType coloringType )
sets coloring mode of the object with given argument

◆ setDirtyFlags()

None mrmeshpy.VisualObject.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 in mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, and mrmeshpy.ObjectVoxels.

◆ setFrontColor()

None mrmeshpy.VisualObject.setFrontColor ( self,
Color color,
bool selected,
ViewportId viewportId = '{}' )
sets color of object when it is selected/not-selected (depending on argument) in given viewport

Reimplemented in mrmeshpy.ObjectGcode.

◆ setFrontColorsForAllViewports()

None mrmeshpy.VisualObject.setFrontColorsForAllViewports ( self,
ViewportProperty_Color val,
bool selected = True )
sets color of object when it is selected/not-selected (depending on argument) in all viewports

◆ setGlobalAlpha()

None mrmeshpy.VisualObject.setGlobalAlpha ( self,
int alpha,
ViewportId viewportId = '{}' )
sets global transparency alpha of object in given viewport

◆ setGlobalAlphaForAllViewports()

None mrmeshpy.VisualObject.setGlobalAlphaForAllViewports ( self,
ViewportProperty_unsigned_char val )
sets global transparency alpha of object in all viewports

◆ setLabels()

None mrmeshpy.VisualObject.setLabels ( self,
std_vector_PositionedText labels )

◆ setLabelsColor()

None mrmeshpy.VisualObject.setLabelsColor ( self,
Color color,
ViewportId viewportId = '{}' )

◆ setLabelsColorsForAllViewports()

None mrmeshpy.VisualObject.setLabelsColorsForAllViewports ( self,
ViewportProperty_Color val )

◆ setPickable()

None mrmeshpy.VisualObject.setPickable ( self,
bool on,
ViewportMask viewportMask = 'ViewportMask::all()' )
sets the object as can/cannot be picked (by mouse) in all of given viewports

◆ setShininess()

None mrmeshpy.VisualObject.setShininess ( self,
float shininess )
sets shininess visual value of the object with given argument

◆ setSpecularStrength()

None mrmeshpy.VisualObject.setSpecularStrength ( self,
float specularStrength )
sets intensity of reflections

◆ setUseDefaultScenePropertiesOnDeserialization()

None mrmeshpy.VisualObject.setUseDefaultScenePropertiesOnDeserialization ( self,
bool useDefaultScenePropertiesOnDeserialization )
set whether the scene-related properties should get their values from SceneColors and SceneSettings instances
rather than from the input data on deserialization

◆ setVertsColorMap()

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

◆ setVisualizeProperty()

None mrmeshpy.VisualObject.setVisualizeProperty ( self,
bool value,
AnyVisualizeMaskEnum type,
ViewportMask viewportMask )
set visual property in all viewports specified by the mask

◆ setVisualizePropertyMask()

None mrmeshpy.VisualObject.setVisualizePropertyMask ( self,
AnyVisualizeMaskEnum type,
ViewportMask viewportMask )
set visual property mask

◆ shallowClone()

◆ showLabels() [1/2]

bool mrmeshpy.VisualObject.showLabels ( self)

◆ showLabels() [2/2]

None mrmeshpy.VisualObject.showLabels ( self,
bool on )
shows/hides labels

◆ showName() [1/2]

bool mrmeshpy.VisualObject.showName ( self)
returns whether object name is shown in any viewport

◆ showName() [2/2]

None mrmeshpy.VisualObject.showName ( self,
bool on )
shows/hides object name in all viewports

◆ supportsVisualizeProperty()

◆ toggleVisualizeProperty()

None mrmeshpy.VisualObject.toggleVisualizeProperty ( self,
AnyVisualizeMaskEnum type,
ViewportMask viewportMask )
toggle visual property in all viewports specified by the mask

◆ TypeName()

◆ typeName()

◆ updateVertsColorMap()

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

◆ useDefaultScenePropertiesOnDeserialization()

bool mrmeshpy.VisualObject.useDefaultScenePropertiesOnDeserialization ( self)
whether the scene-related properties should get their values from SceneColors and SceneSettings instances
rather than from the input data on deserialization

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