Static Public Member Functions | |
str | TypeName () |
Box3f | getWorldBox (*args, **kwargs) |
bool | render (*args, **kwargs) |
None | renderForPicker (*args, **kwargs) |
![]() | |
Box3f | getWorldTreeBox (*args, **kwargs) |
Static Protected Member Functions | |
_pybind11_conduit_v1_ (*args, **kwargs) | |
![]() | |
ObjectChildrenHolder | _Equal (*args, **kwargs) |
ObjectChildrenHolder | _Equal (*args, **kwargs) |
Generated from: MR::VisualObject Aliases: ChangeVisualizePropertyAction.Obj, ChangeVertsColorMapAction.Obj, ChangeColoringType.Obj, ChangeObjectColorAction.Obj 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.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.PointObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, mrmeshpy.SphereObject, and mrmeshpy.SphereObject.
|
staticprotected |
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.FeatureObject, mrmeshpy.LineObject, mrmeshpy.MeasurementObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, 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.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
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.
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, and mrmeshpy.ObjectPointsHolder.
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
str mrmeshpy.VisualObject.getClassName | ( | self | ) |
return human readable name of subclass
Reimplemented from mrmeshpy.Object.
Reimplemented in mrmeshpy.AngleMeasurementObject, mrmeshpy.CircleObject, mrmeshpy.ConeObject, mrmeshpy.CylinderObject, mrmeshpy.DistanceMeasurementObject, mrmeshpy.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
str mrmeshpy.VisualObject.getClassNameInPlural | ( | self | ) |
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.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLines, mrmeshpy.ObjectMesh, mrmeshpy.ObjectPoints, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
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.
std_vector_PositionedText mrmeshpy.VisualObject.getLabels | ( | self | ) |
Color mrmeshpy.VisualObject.getLabelsColor | ( | self, | |
ViewportId | viewportId = '{}' ) |
ViewportProperty_Color mrmeshpy.VisualObject.getLabelsColorsForAllViewports | ( | self | ) |
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
VertColors mrmeshpy.VisualObject.getVertsColorMap | ( | self | ) |
returns per-vertex colors of the object
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, and mrmeshpy.ObjectPointsHolder.
|
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.
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.resetDirty | ( | self | ) |
resets all dirty flags (except for cache flags that will be reset automatically on cache update)
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.setLabels | ( | self, | |
std_vector_PositionedText | labels ) |
None mrmeshpy.VisualObject.setLabelsColor | ( | self, | |
Color | color, | ||
ViewportId | viewportId = '{}' ) |
None mrmeshpy.VisualObject.setLabelsColorsForAllViewports | ( | self, | |
ViewportProperty_Color | val ) |
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.setVertsColorMap | ( | self, | |
VertColors | vertsColorMap ) |
sets per-vertex colors of the object
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.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
bool mrmeshpy.VisualObject.showLabels | ( | self | ) |
None mrmeshpy.VisualObject.showLabels | ( | self, | |
bool | on ) |
shows/hides labels
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, and mrmeshpy.ObjectPointsHolder.
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.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, 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.LineObject, mrmeshpy.ObjectDistanceMap, mrmeshpy.ObjectGcode, mrmeshpy.ObjectLabel, mrmeshpy.ObjectLines, mrmeshpy.ObjectLinesHolder, mrmeshpy.ObjectMesh, mrmeshpy.ObjectMeshHolder, mrmeshpy.ObjectPoints, mrmeshpy.ObjectPointsHolder, mrmeshpy.ObjectVoxels, mrmeshpy.PlaneObject, mrmeshpy.PointObject, mrmeshpy.RadiusMeasurementObject, and mrmeshpy.SphereObject.
None mrmeshpy.VisualObject.updateVertsColorMap | ( | self, | |
VertColors | vertsColorMap ) |
swaps per-vertex colors of the object with given argument
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