Static Public Member Functions | |
str | TypeName () |
bool | getRedrawFlag (*args, **kwargs) |
Box3f | getWorldBox (*args, **kwargs) |
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::Object Aliases: ChangeObjectVisibilityAction.Obj, ObjectPtr, ChangeObjectSelectedAction.Obj named object in the data model
None meshlib.mrmeshpy.Object.__init__ | ( | self | ) |
Reimplemented from meshlib.mrmeshpy.ObjectChildrenHolder.
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.SceneRootObject, meshlib.mrmeshpy.SphereObject, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.VisualObject.
bool meshlib.mrmeshpy.Object.addChild | ( | self, | |
Object | child, | ||
bool | recognizedChild = True ) |
adds given object at the end of children (recognized or not); returns false if it was already child of this, of if given pointer is empty; child object will always report this as parent after the call; \\param recognizedChild if set to false then child object will be excluded from children() and it will be stored by weak_ptr
adds given object in the recognized children before existingChild; if newChild was already among this children then moves it just before existingChild keeping the order of other children intact; returns false if newChild is nullptr, or existingChild is not a child of this
None meshlib.mrmeshpy.Object.applyScale | ( | self, | |
float | scaleFactor ) |
scale object size (all point positions)
Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPointsHolder, and meshlib.mrmeshpy.ObjectVoxels.
VisualObject meshlib.mrmeshpy.Object.asType_VisualObject | ( | self | ) |
VisualObject meshlib.mrmeshpy.Object.asType_VisualObject | ( | self | ) |
std_vector_std_shared_ptr_Object meshlib.mrmeshpy.Object.children | ( | self | ) |
an object can hold other sub-objects
std_vector_std_shared_ptr_Object_const meshlib.mrmeshpy.Object.children | ( | self | ) |
Object meshlib.mrmeshpy.Object.clone | ( | self | ) |
clones current object only, without parent and/or children
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, meshlib.mrmeshpy.SceneRootObject, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.VisualObject.
Object meshlib.mrmeshpy.Object.cloneTree | ( | self | ) |
clones all tree of this object (except ancillary and unrecognized children)
bool meshlib.mrmeshpy.Object.detachFromParent | ( | self | ) |
removes this from its parent children list returns false if it was already orphan
Object meshlib.mrmeshpy.Object.find | ( | self, | |
str | name ) |
finds a direct child by name
Object meshlib.mrmeshpy.Object.find | ( | self, | |
str | name ) |
Find a common ancestor between this object and the other one. Returns null on failure (which is impossible if both are children of the scene root). Will return `this` if `other` matches `this`.
str meshlib.mrmeshpy.Object.getClassName | ( | self | ) |
return human readable name of subclass
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, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.VisualObject.
std_vector_std_string meshlib.mrmeshpy.Object.getInfoLines | ( | self | ) |
return several info lines that can better describe object in the UI
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, meshlib.mrmeshpy.RadiusMeasurementObject, and meshlib.mrmeshpy.VisualObject.
|
static |
this method virtual because others data model types could have dirty flags or something
Reimplemented in meshlib.mrmeshpy.ObjectMeshHolder, and meshlib.mrmeshpy.VisualObject.
|
static |
returns bounding box of this object in world coordinates for default or specific viewport
Reimplemented in meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPointsHolder, and meshlib.mrmeshpy.VisualObject.
|
static |
empty box returns bounding box of this object and all children visible in given (or default) viewport in world coordinates
bool meshlib.mrmeshpy.Object.globalVisibility | ( | self, | |
ViewportMask | viewportMask = 'ViewportMask::any()' ) |
returns true if this object is visible together with all its parents in any of given viewports
ViewportMask meshlib.mrmeshpy.Object.globalVisibilityMask | ( | self | ) |
returns all viewports where this object is visible together with all its parents
bool meshlib.mrmeshpy.Object.hasModel | ( | self | ) |
does the object have any model available (but possibly empty), e.g. ObjectMesh has valid mesh() or ObjectPoints has valid pointCloud()
Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPointsHolder, and meshlib.mrmeshpy.ObjectVoxels.
bool meshlib.mrmeshpy.Object.hasVisualRepresentation | ( | self | ) |
does the object have any visual representation (visible points, triangles, edges, etc.), no considering child objects
Reimplemented in meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPointsHolder, and meshlib.mrmeshpy.ObjectVoxels.
int meshlib.mrmeshpy.Object.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
Reimplemented from meshlib.mrmeshpy.ObjectChildrenHolder.
Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectGcode, meshlib.mrmeshpy.ObjectLabel, meshlib.mrmeshpy.ObjectLinesHolder, meshlib.mrmeshpy.ObjectMeshHolder, meshlib.mrmeshpy.ObjectPointsHolder, meshlib.mrmeshpy.ObjectVoxels, and meshlib.mrmeshpy.VisualObject.
bool meshlib.mrmeshpy.Object.isAncestor | ( | self, | |
Object | ancestor ) |
return true if given object is ancestor of this one, false otherwise
bool meshlib.mrmeshpy.Object.isAncillary | ( | self | ) |
bool meshlib.mrmeshpy.Object.isLocked | ( | self | ) |
object properties lock for UI
bool meshlib.mrmeshpy.Object.isParentLocked | ( | self | ) |
If true, the scene tree GUI doesn't allow you to drag'n'drop this object into a different parent. Defaults to false.
bool meshlib.mrmeshpy.Object.isSelected | ( | self | ) |
bool meshlib.mrmeshpy.Object.isVisible | ( | self, | |
ViewportMask | viewportMask = 'ViewportMask::any()' ) |
checks whether the object is visible in any of the viewports specified by the mask (by default in any viewport)
str meshlib.mrmeshpy.Object.name | ( | self | ) |
Object meshlib.mrmeshpy.Object.parent | ( | self | ) |
returns parent object in the tree
Object meshlib.mrmeshpy.Object.parent | ( | self | ) |
None meshlib.mrmeshpy.Object.removeAllChildren | ( | self | ) |
detaches all recognized children from this, keeping all unrecognized ones
bool meshlib.mrmeshpy.Object.removeChild | ( | self, | |
Object | child ) |
returns false if it was not child of this
bool meshlib.mrmeshpy.Object.removeChild | ( | self, | |
Object | child ) |
None meshlib.mrmeshpy.Object.resetRedrawFlag | ( | self | ) |
None meshlib.mrmeshpy.Object.resetXf | ( | self, | |
ViewportId | id = 'MR::ViewportId{}' ) |
forgets specific transform in given viewport (or forgets all specific transforms for {} input)
Reimplemented in meshlib.mrmeshpy.FeatureObject.
bool meshlib.mrmeshpy.Object.select | ( | self, | |
bool | on ) |
selects the object, returns true if value changed, otherwise returns false
Reimplemented in meshlib.mrmeshpy.ObjectGcode, and meshlib.mrmeshpy.SceneRootObject.
None meshlib.mrmeshpy.Object.setAncillary | ( | self, | |
bool | ancillary ) |
ancillary object is an object hidden (in scene menu) from a regular user such objects cannot be selected, and if it has been selected, it is unselected when turn ancillary
Reimplemented in meshlib.mrmeshpy.SceneRootObject.
None meshlib.mrmeshpy.Object.setGlobalVisibility | ( | self, | |
bool | on, | ||
ViewportMask | viewportMask = 'ViewportMask::any()' ) |
if true sets all predecessors visible, otherwise sets this object invisible
None meshlib.mrmeshpy.Object.setLocked | ( | self, | |
bool | on ) |
None meshlib.mrmeshpy.Object.setName | ( | self, | |
str | name ) |
Reimplemented in meshlib.mrmeshpy.SceneRootObject.
None meshlib.mrmeshpy.Object.setParentLocked | ( | self, | |
bool | lock ) |
None meshlib.mrmeshpy.Object.setVisibilityMask | ( | self, | |
ViewportMask | viewportMask ) |
specifies object visibility as bitmask of viewports
None meshlib.mrmeshpy.Object.setVisible | ( | self, | |
bool | on, | ||
ViewportMask | viewportMask = 'ViewportMask::all()' ) |
sets the object visible in the viewports specified by the mask (by default in all viewports)
None meshlib.mrmeshpy.Object.setWorldXf | ( | self, | |
AffineXf3f | xf, | ||
ViewportId | id = 'MR::ViewportId{}' ) |
None meshlib.mrmeshpy.Object.setXf | ( | self, | |
AffineXf3f | xf, | ||
ViewportId | id = 'MR::ViewportId{}' ) |
Reimplemented in meshlib.mrmeshpy.FeatureObject.
None meshlib.mrmeshpy.Object.setXfsForAllViewports | ( | self, | |
ViewportProperty_AffineXf3f | xf ) |
modifies xfs for all viewports at once
Object meshlib.mrmeshpy.Object.shallowClone | ( | self | ) |
clones current object only, without parent and/or children clones only pointers to mesh, points or voxels
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, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.VisualObject.
Object meshlib.mrmeshpy.Object.shallowCloneTree | ( | self | ) |
clones all tree of this object (except ancillary and unrecognied children) clones only pointers to mesh, points or voxels
None meshlib.mrmeshpy.Object.sortChildren | ( | self | ) |
sort recognized children by name
None meshlib.mrmeshpy.Object.swap | ( | self, | |
Object | other ) |
swaps this object with other note: do not swap object signals, so listeners will get notifications from swapped object requires implementation of `swapBase_` and `swapSignals_` (if type has signals)
|
static |
return name of subtype for serialization purposes
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, meshlib.mrmeshpy.SceneRootObject, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.VisualObject.
str meshlib.mrmeshpy.Object.typeName | ( | self | ) |
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, meshlib.mrmeshpy.SceneRootObject, meshlib.mrmeshpy.SphereObject, and meshlib.mrmeshpy.VisualObject.
ViewportMask meshlib.mrmeshpy.Object.visibilityMask | ( | self | ) |
gets object visibility as bitmask of viewports
AffineXf3f meshlib.mrmeshpy.Object.worldXf | ( | self, | |
ViewportId | id = 'MR::ViewportId{}', | ||
bool_output | isDef = None ) |
this space to world space transformation for default or specific viewport \\param isDef receives true if the object has default transformation in this viewport (same as worldXf() returns)
AffineXf3f meshlib.mrmeshpy.Object.xf | ( | self, | |
ViewportId | id = 'MR::ViewportId{}', | ||
bool_output | isDef = None ) |
this space to parent space transformation (to world space if no parent) for default or given viewport \\param isDef receives true if the object has default transformation in this viewport (same as xf() returns)
ViewportProperty_AffineXf3f meshlib.mrmeshpy.Object.xfsForAllViewports | ( | self | ) |
returns xfs for all viewports, combined into a single object