Static Public Member Functions | |
str | TypeName () |
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) |
Generated from: MR::VisualObject Aliases: ChangeVisualizePropertyAction.Obj, ChangeVertsColorMapAction.Obj, ChangeColoringType.Obj, ChangeObjectColorAction.Obj Visual Object
None meshlib.mrmeshpy.VisualObject.__init__ | ( | self | ) |
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.MeasurementObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPointsHolder, meshlib.mrmeshpy.ObjectVoxels, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.RadiusMeasurementObject, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.SphereObject.
Object meshlib.mrmeshpy.VisualObject.clone | ( | self | ) |
clones this object only, without its children, making new object the owner of all copied resources
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPointsHolder, meshlib.mrmeshpy.ObjectVoxels, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.RadiusMeasurementObject, and meshlib.mrmeshpy.SphereObject.
None meshlib.mrmeshpy.VisualObject.copyColors | ( | self, | |
VisualObject | src, | ||
VertMap | thisToSrc, | ||
FaceMap | thisToSrcFaces = 'MR::FaceMap{}' ) |
copies point colors from given source object \\param src using given map \\param thisToSrc
Reimplemented in meshlib.mrmeshpy.ObjectMeshHolder.
std_vector_ViewportMask meshlib.mrmeshpy.VisualObject.getAllVisualizeProperties | ( | self | ) |
get all visualize properties masks
Reimplemented in meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, meshlib.mrmeshpy.FeatureObject, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, and meshlib.mrmeshpy.ObjectPointsHolder.
float meshlib.mrmeshpy.VisualObject.getAmbientStrength | ( | self | ) |
returns intensity of non-directional light
Color meshlib.mrmeshpy.VisualObject.getBackColor | ( | self, | |
ViewportId | viewportId = 'MR::ViewportId{}' ) |
returns backward color of object in given viewport
ViewportProperty_Color meshlib.mrmeshpy.VisualObject.getBackColorsForAllViewports | ( | self | ) |
returns backward color of object in all viewports
Box3f meshlib.mrmeshpy.VisualObject.getBoundingBox | ( | self | ) |
returns cached bounding box of this object in local coordinates
str meshlib.mrmeshpy.VisualObject.getClassName | ( | self | ) |
return human readable name of subclass
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectVoxels, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.RadiusMeasurementObject, and meshlib.mrmeshpy.SphereObject.
ColoringType meshlib.mrmeshpy.VisualObject.getColoringType | ( | self | ) |
returns the current coloring mode of the object
int meshlib.mrmeshpy.VisualObject.getDirtyFlags | ( | self | ) |
returns current dirty flags for the object
Color meshlib.mrmeshpy.VisualObject.getFrontColor | ( | self, | |
bool | selected = True, | ||
ViewportId | viewportId = 'MR::ViewportId{}' ) |
returns color of object when it is selected/not-selected (depending on argument) in given viewport
ViewportProperty_Color meshlib.mrmeshpy.VisualObject.getFrontColorsForAllViewports | ( | self, | |
bool | selected = True ) |
returns color of object when it is selected/not-selected (depending on argument) in all viewports
int meshlib.mrmeshpy.VisualObject.getGlobalAlpha | ( | self, | |
ViewportId | viewportId = 'MR::ViewportId{}' ) |
returns global transparency alpha of object in given viewport
ViewportProperty_unsigned_char meshlib.mrmeshpy.VisualObject.getGlobalAlphaForAllViewports | ( | self | ) |
returns global transparency alpha of object in all viewports
std_vector_std_string meshlib.mrmeshpy.VisualObject.getInfoLines | ( | self | ) |
return several info lines that can better describe the object in the UI
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectVoxels, and meshlib.mrmeshpy.RadiusMeasurementObject.
std_vector_PositionedText meshlib.mrmeshpy.VisualObject.getLabels | ( | self | ) |
Color meshlib.mrmeshpy.VisualObject.getLabelsColor | ( | self, | |
ViewportId | viewportId = 'MR::ViewportId{}' ) |
ViewportProperty_Color meshlib.mrmeshpy.VisualObject.getLabelsColorsForAllViewports | ( | self | ) |
bool meshlib.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 meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.ObjectMeshHolder.
float meshlib.mrmeshpy.VisualObject.getShininess | ( | self | ) |
returns the current shininess visual value
float meshlib.mrmeshpy.VisualObject.getSpecularStrength | ( | self | ) |
returns intensity of reflections
VertColors meshlib.mrmeshpy.VisualObject.getVertsColorMap | ( | self | ) |
returns per-vertex colors of the object
bool meshlib.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 meshlib.mrmeshpy.VisualObject.getVisualizePropertyMask | ( | self, | |
AnyVisualizeMaskEnum | type ) |
returns mask of viewports where given property is set
Reimplemented in meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, meshlib.mrmeshpy.FeatureObject, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, and meshlib.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 meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, and meshlib.mrmeshpy.ObjectPointsHolder.
int meshlib.mrmeshpy.VisualObject.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPointsHolder, and meshlib.mrmeshpy.ObjectVoxels.
bool meshlib.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 meshlib.mrmeshpy.VisualObject.renderUi | ( | self, | |
UiRenderParams | params ) |
draws this object for 2d UI
None meshlib.mrmeshpy.VisualObject.resetDirty | ( | self | ) |
resets all dirty flags (except for cache flags that will be reset automatically on cache update)
None meshlib.mrmeshpy.VisualObject.setAllVisualizeProperties | ( | self, | |
std_vector_ViewportMask | properties ) |
set all visualize properties masks
None meshlib.mrmeshpy.VisualObject.setAmbientStrength | ( | self, | |
float | ambientStrength ) |
sets intensity of non-directional light
None meshlib.mrmeshpy.VisualObject.setBackColor | ( | self, | |
Color | color, | ||
ViewportId | viewportId = 'MR::ViewportId{}' ) |
sets backward color of object in given viewport
None meshlib.mrmeshpy.VisualObject.setBackColorsForAllViewports | ( | self, | |
ViewportProperty_Color | val ) |
sets backward color of object in all viewports
None meshlib.mrmeshpy.VisualObject.setColoringType | ( | self, | |
ColoringType | coloringType ) |
sets coloring mode of the object with given argument
None meshlib.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 meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPointsHolder, and meshlib.mrmeshpy.ObjectVoxels.
None meshlib.mrmeshpy.VisualObject.setFrontColor | ( | self, | |
Color | color, | ||
bool | selected, | ||
ViewportId | viewportId = 'MR::ViewportId{}' ) |
sets color of object when it is selected/not-selected (depending on argument) in given viewport
Reimplemented in meshlib.mrmeshpy.ObjectGcode.
None meshlib.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 meshlib.mrmeshpy.VisualObject.setGlobalAlpha | ( | self, | |
int | alpha, | ||
ViewportId | viewportId = 'MR::ViewportId{}' ) |
sets global transparency alpha of object in given viewport
None meshlib.mrmeshpy.VisualObject.setGlobalAlphaForAllViewports | ( | self, | |
ViewportProperty_unsigned_char | val ) |
sets global transparency alpha of object in all viewports
None meshlib.mrmeshpy.VisualObject.setLabels | ( | self, | |
std_vector_PositionedText | labels ) |
None meshlib.mrmeshpy.VisualObject.setLabelsColor | ( | self, | |
Color | color, | ||
ViewportId | viewportId = 'MR::ViewportId{}' ) |
None meshlib.mrmeshpy.VisualObject.setLabelsColorsForAllViewports | ( | self, | |
ViewportProperty_Color | val ) |
None meshlib.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 meshlib.mrmeshpy.VisualObject.setShininess | ( | self, | |
float | shininess ) |
sets shininess visual value of the object with given argument
None meshlib.mrmeshpy.VisualObject.setSpecularStrength | ( | self, | |
float | specularStrength ) |
sets intensity of reflections
None meshlib.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 meshlib.mrmeshpy.VisualObject.setVertsColorMap | ( | self, | |
VertColors | vertsColorMap ) |
sets per-vertex colors of the object
None meshlib.mrmeshpy.VisualObject.setVisualizeProperty | ( | self, | |
bool | value, | ||
AnyVisualizeMaskEnum | type, | ||
ViewportMask | viewportMask ) |
set visual property in all viewports specified by the mask
None meshlib.mrmeshpy.VisualObject.setVisualizePropertyMask | ( | self, | |
AnyVisualizeMaskEnum | type, | ||
ViewportMask | viewportMask ) |
set visual property mask
Object meshlib.mrmeshpy.VisualObject.shallowClone | ( | self | ) |
clones this object only, without its children, making new object to share resources with this object
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPointsHolder, meshlib.mrmeshpy.ObjectVoxels, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.RadiusMeasurementObject, and meshlib.mrmeshpy.SphereObject.
bool meshlib.mrmeshpy.VisualObject.showLabels | ( | self | ) |
None meshlib.mrmeshpy.VisualObject.showLabels | ( | self, | |
bool | on ) |
shows/hides labels
bool meshlib.mrmeshpy.VisualObject.showName | ( | self | ) |
returns whether object name is shown in any viewport
None meshlib.mrmeshpy.VisualObject.showName | ( | self, | |
bool | on ) |
shows/hides object name in all viewports
bool meshlib.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 meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter, meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_angle_DimensionsVisualizePropertyType_length, meshlib.mrmeshpy.AddVisualProperties_FeatureObject_DimensionsVisualizePropertyType_diameter_DimensionsVisualizePropertyType_length, meshlib.mrmeshpy.FeatureObject, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, and meshlib.mrmeshpy.ObjectPointsHolder.
None meshlib.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 meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPointsHolder, meshlib.mrmeshpy.ObjectVoxels, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.RadiusMeasurementObject, and meshlib.mrmeshpy.SphereObject.
str meshlib.mrmeshpy.VisualObject.typeName | ( | self | ) |
Reimplemented from meshlib.mrmeshpy.Object.
Reimplemented in meshlib.mrmeshpy.AngleMeasurementObject, meshlib.mrmeshpy.CircleObject, meshlib.mrmeshpy.ConeObject, meshlib.mrmeshpy.CylinderObject, meshlib.mrmeshpy.DistanceMeasurementObject, meshlib.mrmeshpy.LineObject, meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLines, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMesh, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPoints, meshlib.mrmeshpy.ObjectPointsHolder, meshlib.mrmeshpy.ObjectVoxels, meshlib.mrmeshpy.PlaneObject, meshlib.mrmeshpy.PointObject, meshlib.mrmeshpy.RadiusMeasurementObject, and meshlib.mrmeshpy.SphereObject.
None meshlib.mrmeshpy.VisualObject.updateVertsColorMap | ( | self, | |
VertColors | vertsColorMap ) |
swaps per-vertex colors of the object with given argument
bool meshlib.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