This is the ViewProvider base class addProperty(type, name, group, doc, attr=0, ro=False, hd=False) -> ViewProvider Add a generic property. type : str Property type. name : str Property name. Optional. group : str Property group. Optional. attr : int Property attributes. ro : bool Read only property. hd : bool Hidden property. removeProperty(name) -> bool Remove a generic property. Only user-defined properties can be removed, not built-in ones. name : str Property name. supportedProperties() -> list A list of supported property types. show() -> None Show the object. show() -> None Hide the object. isVisible() -> bool Check if the object is visible. canDragObject(obj=None) -> bool Check whether the child object can be removed by dragging. If 'obj' is not given, check without filter by any particular object. obj : App.DocumentObject Object to be dragged. dragObject(obj) -> None Remove a child object by dropping. obj : App.DocumentObject Object to be dragged. canDropObject(obj=None, owner=None, subname, elem=None) -> bool Check whether the child object can be added by dropping. If 'obj' is not given, check without filter by any particular object. obj : App.DocumentObject Object to be dropped. owner : App.DocumentObject Parent object of the dropping object. subname : str Subname reference to the dropping object. Optional. elem : sequence of str Non-objects subelements selected when the object is being dropped. dropObject(obj, owner=None, subname, elem=None) -> str Add a child object by dropping. obj : App.DocumentObject Object to be dropped. owner : App.DocumentObject Parent object of the dropping object. subname : str Subname reference to the dropping object. Optional. elem : sequence of str Non-objects subelements selected when the object is being dropped. canDragAndDropObject(obj) -> bool Check whether the child object can be removed from other parent and added here by drag and drop. obj : App.DocumentObject Object to be dragged and dropped. replaceObject(oldObj, newObj) -> int Replace a child object. Returns 1 if succeeded, 0 if not found, -1 if not supported. oldObj : App.DocumentObject Old object. newObj : App.DocumentObject New object. doubleClicked() -> bool Trigger double clicking the corresponding tree item of this view object. addDisplayMode(obj, mode) -> None Add a new display mode to the view provider. obj : coin.SoNode Display mode. mode : str Name of the display mode. listDisplayModes() -> list Show a list of all display modes. toString() -> str Return a string representation of the Inventor node. setTransformation(trans) -> None Set a transformation on the Inventor node. trans : Base.Placement, Base.Matrix claimChildren() -> list Returns list of objects that are to be grouped in tree under this object. partialRender(sub=None, clear=False) -> int Render only part of the object. sub: None, str, sequence of str Refer to the subelement. If it is None then reset the partial rendering. clear: bool True to add, or False to remove the subelement(s) for rendering. getElementColors(elementName) -> dict Get a dictionary of the form {elementName : (r,g,b,a)}. If no element name is given a dictionary with all the elements is returned. elementName : str Name of the element. Optional. setElementColors(colors) -> None Set element colors. colors: dict Color dictionary of the form {elementName:(r,g,b,a)}. getElementPicked(pickPoint) -> str Return the picked subelement. pickPoint : coin.SoPickedPoint getDetailPath(subelement, path, append=True) -> coin.SoDetail or None Return Coin detail and path of an subelement. subname: str Dot separated string reference to the sub element. pPath: coin.SoPath Output coin path leading to the returned element detail. append: bool If True, path will be first appended with the root node and the mode switch node of this view provider. signalChangeIcon() -> None Trigger icon changed signal. getBoundingBox(subName, transform=True, view) -> Base.BoundBox Obtain the bounding box of this view object. subName : str Name referring a sub-object. Optional. transform: bool Whether to apply the transformation matrix of this view provider. view: View3DInventorPy Default to active view. Optional. A pivy Separator to add a custom scenegraph to this ViewProvider. The icon of this ViewProvider. A pivy Separator with the root of this ViewProvider. A pivy SoSwitch for the display mode switch of this ViewProvider. Get/Set the default display mode in turns of coin node index. Represents the whole ViewProvider as an Inventor string. Tells the tree view whether to remove the children item from root or not. Get/set visibilities of all links to this view object. Subname referencing the sub-object for holding dropped object.