Inheritance diagram for mrmeshpy.VisualObject:Static Public Member Functions | |
| str | ClassName () |
| str | ClassNameInPlural () |
| 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 Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder | |
| ObjectChildrenHolder | operator (*args, **kwargs) |
| ObjectChildrenHolder | operator (*args, **kwargs) |
Generated from: MR::VisualObject Aliases: ChangeVisualizePropertyAction.Obj, ChangeObjectColorAction.Obj, ChangeColoringType.Obj, std_shared_ptr_VisualObject Visual Object
| None mrmeshpy.VisualObject.__init__ | ( | self | ) |
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.LineObject, mrmeshpy.LineObject, mrmeshpy.MeasurementObject, mrmeshpy.MeasurementObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, mrmeshpy.SphereObject, and mrmeshpy.SphereObject.
|
static |
return human readable name of subclass
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| str mrmeshpy.VisualObject.className | ( | self | ) |
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
|
static |
return human readable name of subclass in plural form
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| str mrmeshpy.VisualObject.classNameInPlural | ( | self | ) |
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| Object mrmeshpy.VisualObject.clone | ( | self | ) |
clones this object only, without its children, making new object the owner of all copied resources
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| None mrmeshpy.VisualObject.copyAllSolidColors | ( | self, | |
| VisualObject | other ) |
set all object solid colors (front/back/etc.) from other object for all viewports
Reimplemented in mrmeshpy.ObjectMeshHolder, and mrmeshpy.ObjectPointsHolder.
| std_vector_ViewportMask mrmeshpy.VisualObject.getAllVisualizeProperties | ( | self | ) |
get all visualize properties masks
Reimplemented in mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, mrmeshpy.FeatureObject, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPointsHolder, and mrmeshpy.PointMeasurementObject.
| float mrmeshpy.VisualObject.getAmbientStrength | ( | self | ) |
returns intensity of non-directional light
| Color mrmeshpy.VisualObject.getBackColor | ( | self, | |
| ViewportId | viewportId = '{}' ) |
returns backward color of object in given viewport
| ViewportProperty_Color mrmeshpy.VisualObject.getBackColorsForAllViewports | ( | self | ) |
returns backward color of object in all viewports
| Box3f mrmeshpy.VisualObject.getBoundingBox | ( | self | ) |
returns cached bounding box of this object in local coordinates
| ColoringType mrmeshpy.VisualObject.getColoringType | ( | self | ) |
returns the current coloring mode of the object
| int mrmeshpy.VisualObject.getDirtyFlags | ( | self | ) |
returns current dirty flags for the object
| 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
| 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
| int mrmeshpy.VisualObject.getGlobalAlpha | ( | self, | |
| ViewportId | viewportId = '{}' ) |
returns global transparency alpha of object in given viewport
| ViewportProperty_unsigned_char mrmeshpy.VisualObject.getGlobalAlphaForAllViewports | ( | self | ) |
returns global transparency alpha of object in all viewports
| std_vector_std_string mrmeshpy.VisualObject.getInfoLines | ( | self | ) |
return several info lines that can better describe the object in the UI
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, and mrmeshpy.RadiusMeasurementObject.
| 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.
| float mrmeshpy.VisualObject.getShininess | ( | self | ) |
returns the current shininess visual value
| float mrmeshpy.VisualObject.getSpecularStrength | ( | self | ) |
returns intensity of reflections
| 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
| ViewportMask mrmeshpy.VisualObject.getVisualizePropertyMask | ( | self, | |
| AnyVisualizeMaskEnum | type ) |
returns mask of viewports where given property is set
Reimplemented in mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, mrmeshpy.FeatureObject, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPointsHolder, and mrmeshpy.PointMeasurementObject.
|
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.
| bool mrmeshpy.VisualObject.globalClippedByPlane | ( | self, | |
| ViewportMask | viewportMask = 'ViewportMask::any()' ) |
returns true if this object or any of its parents is clipped by plane in any of given viewports
| ViewportMask mrmeshpy.VisualObject.globalClippedByPlaneMask | ( | self | ) |
returns all viewports where this object or any of its parents is clipped by plane
| int mrmeshpy.VisualObject.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPointsHolder, and mrmeshpy.ObjectVoxels.
| bool mrmeshpy.VisualObject.isPickable | ( | self, | |
| ViewportMask | viewportMask = 'ViewportMask::any()' ) |
whether the object can be picked (by mouse) in any of given viewports
|
static |
draws this object for visualization Returns true if something was drawn.
|
static |
draws this object for picking
| None mrmeshpy.VisualObject.renderUi | ( | self, | |
| UiRenderParams | params ) |
draws this object for 2d UI
| None mrmeshpy.VisualObject.resetColors | ( | self | ) |
reset all object colors to their default values from the current theme
Reimplemented in mrmeshpy.ObjectMeshHolder, and mrmeshpy.ObjectPointsHolder.
| None mrmeshpy.VisualObject.resetDirty | ( | self | ) |
resets all dirty flags (except for cache flags that will be reset automatically on cache update)
| None mrmeshpy.VisualObject.resetDirtyExceptMask | ( | self, | |
| int | mask ) |
reset dirty flags without some specific bits (useful for lazy normals update)
| None mrmeshpy.VisualObject.resetFrontColor | ( | self | ) |
reset basic object colors to their default values from the current theme
Reimplemented in mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPointsHolder, and mrmeshpy.ObjectVoxels.
| None mrmeshpy.VisualObject.setAllVisualizeProperties | ( | self, | |
| std_vector_ViewportMask | properties ) |
set all visualize properties masks
| None mrmeshpy.VisualObject.setAmbientStrength | ( | self, | |
| float | ambientStrength ) |
sets intensity of non-directional light
| None mrmeshpy.VisualObject.setBackColor | ( | self, | |
| Color | color, | ||
| ViewportId | viewportId = '{}' ) |
sets backward color of object in given viewport
| None mrmeshpy.VisualObject.setBackColorsForAllViewports | ( | self, | |
| ViewportProperty_Color | val ) |
sets backward color of object in all viewports
| None mrmeshpy.VisualObject.setColoringType | ( | self, | |
| ColoringType | coloringType ) |
sets coloring mode of the object with given argument
| 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.
| 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.
| 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
| None mrmeshpy.VisualObject.setGlobalAlpha | ( | self, | |
| int | alpha, | ||
| ViewportId | viewportId = '{}' ) |
sets global transparency alpha of object in given viewport
| None mrmeshpy.VisualObject.setGlobalAlphaForAllViewports | ( | self, | |
| ViewportProperty_unsigned_char | val ) |
sets global transparency alpha of object in all viewports
| None mrmeshpy.VisualObject.setGlobalClippedByPlane | ( | self, | |
| bool | on, | ||
| ViewportMask | viewportMask = 'ViewportMask::all()' ) |
if false deactivates clipped-by-plane for this object and all of its parents, otherwise sets clipped-by-plane for this this object only
| 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
| None mrmeshpy.VisualObject.setShininess | ( | self, | |
| float | shininess ) |
sets shininess visual value of the object with given argument
| None mrmeshpy.VisualObject.setSpecularStrength | ( | self, | |
| float | specularStrength ) |
sets intensity of reflections
| 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
| None mrmeshpy.VisualObject.setVisualizeProperty | ( | self, | |
| bool | value, | ||
| AnyVisualizeMaskEnum | type, | ||
| ViewportMask | viewportMask ) |
set visual property in all viewports specified by the mask
| None mrmeshpy.VisualObject.setVisualizePropertyMask | ( | self, | |
| AnyVisualizeMaskEnum | type, | ||
| ViewportMask | viewportMask ) |
set visual property mask
| Object mrmeshpy.VisualObject.shallowClone | ( | self | ) |
clones this object only, without its children, making new object to share resources with this object
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| bool mrmeshpy.VisualObject.showName | ( | self | ) |
returns whether object name is shown in any viewport
| None mrmeshpy.VisualObject.showName | ( | self, | |
| bool | on ) |
shows/hides object name in all viewports
| bool mrmeshpy.VisualObject.supportsVisualizeProperty | ( | self, | |
| AnyVisualizeMaskEnum | type ) |
Returns true if this class supports the property `type`. Otherwise passing it to the functions below is illegal.
Reimplemented in mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, mrmeshpy.FeatureObject, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPointsHolder, and mrmeshpy.PointMeasurementObject.
| None mrmeshpy.VisualObject.toggleVisualizeProperty | ( | self, | |
| AnyVisualizeMaskEnum | type, | ||
| ViewportMask | viewportMask ) |
toggle visual property in all viewports specified by the mask
|
static |
return name of subtype for serialization purposes
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| str mrmeshpy.VisualObject.typeName | ( | self | ) |
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointMeasurementObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
| 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