|
SHAPER
9.15.0
|
Implementation of a node for object representation. More...

Public Types | |
| enum | VisibilityState { NoneState , Visible , SemiVisible , Hidden } |
Public Member Functions | |
| PartSet_ObjectNode (const ObjectPtr &theObj, ModuleBase_ITreeNode *theParent=0) | |
| virtual std::string | type () const |
| virtual QVariant | data (int theColumn, int theRole) const |
| Returns the node representation according to theRole. More... | |
| virtual Qt::ItemFlags | flags (int theColumn) const |
| Returns properties flag of the item. More... | |
| virtual ObjectPtr | object () const |
| Returns object referenced by the node (can be null) More... | |
| void | setObject (ObjectPtr theObj) |
| Sets an object to the node theObj a new object. More... | |
| virtual VisibilityState | visibilityState () const |
| Returns visibilitystate of the node in viewer 3d. More... | |
| virtual void | update () |
| Updates sub-nodes of the node. More... | |
| virtual QTreeNodesList | objectCreated (const QObjectPtrList &theObjects) |
| Process creation of objects. More... | |
| virtual QTreeNodesList | objectsDeleted (const DocumentPtr &theDoc, const QString &theGroup) |
| Process deletion of objects. More... | |
| virtual int | numberOfSubs () const |
| Returns number of sub-objects of the current object. More... | |
| virtual ObjectPtr | subObject (int theId) const |
| virtual QColor | activeItemColor () const |
| ModuleBase_ITreeNode * | parent () const |
| Returns parent node of the current node. More... | |
| QTreeNodesList | children () const |
| Returns list of the node children. More... | |
| ModuleBase_ITreeNode * | subNode (int theRow) const |
| Returns a children node according to given row (index) More... | |
| ModuleBase_ITreeNode * | subNode (const ObjectPtr &theObj, bool allLevels=true) const |
| Finds a node which contains the referenced object. More... | |
| bool | hasSubNode (ModuleBase_ITreeNode *theNode, bool allLevels=true) const |
| Returns true if the given node is found within children. More... | |
| int | childrenCount () const |
| Returns number of children. More... | |
| int | nodeRow (ModuleBase_ITreeNode *theNode) const |
| virtual ModuleBase_IWorkshop * | workshop () const |
| Returns workshop object. Has to be reimplemented in a root node. More... | |
| virtual DocumentPtr | document () const |
| Returns document object of the sub-tree. Has to be reimplemented in sub-tree root object. More... | |
| virtual ModuleBase_ITreeNode * | findParent (const DocumentPtr &theDoc, QString theGroup) |
| Returns a node which belongs to the given document and contains objects of the given group. More... | |
| virtual ModuleBase_ITreeNode * | findRoot (const DocumentPtr &theDoc) |
| Returns root node of a data tree of the given document. More... | |
Static Public Member Functions | |
| static std::string | typeId () |
Protected Member Functions | |
| virtual void | deleteChildren () |
| deletes all children nodes (called in destructor.) More... | |
| void | sortChildren () |
Protected Attributes | |
| ObjectPtr | myObject |
| ModuleBase_ITreeNode * | myParent |
| Parent of the node. More... | |
| QTreeNodesList | myChildren |
| Children of the node. More... | |
Implementation of a node for object representation.
|
virtual |
Returns the node representation according to theRole.
Reimplemented from PartSet_TreeNode.
Reimplemented in PartSet_StepNode, and PartSet_ObjectFolderNode.
|
virtual |
Returns properties flag of the item.
Reimplemented from ModuleBase_ITreeNode.
|
inlinevirtual |
Returns object referenced by the node (can be null)
Reimplemented from ModuleBase_ITreeNode.
|
inline |
Sets an object to the node theObj a new object.
|
virtual |
Returns visibilitystate of the node in viewer 3d.
Reimplemented from ModuleBase_ITreeNode.
Reimplemented in PartSet_StepNode.
|
virtual |
Updates sub-nodes of the node.
Reimplemented from ModuleBase_ITreeNode.
Reimplemented in PartSet_ObjectFolderNode.
|
virtual |
Process creation of objects.
| theObjects | a list of created objects |
Reimplemented from ModuleBase_ITreeNode.
Reimplemented in PartSet_ObjectFolderNode.
|
virtual |
Process deletion of objects.
| theDoc | a document where objects were deleted |
| theGroup | a name of group where objects were deleted |
Reimplemented from ModuleBase_ITreeNode.
Reimplemented in PartSet_ObjectFolderNode.
|
virtual |
Returns number of sub-objects of the current object.
|
inlineinherited |
Returns parent node of the current node.
|
inlineinherited |
Returns list of the node children.
|
inlineinherited |
Returns a children node according to given row (index)
|
inlineinherited |
Finds a node which contains the referenced object.
| theObj | an object to find |
| allLevels | if true then all sub-trees will be processed |
|
inlineinherited |
Returns true if the given node is found within children.
| theNode | a node to find |
| allLevels | if true then all sub-trees will be processed |
|
inlineinherited |
Returns number of children.
|
inlinevirtualinherited |
Returns workshop object. Has to be reimplemented in a root node.
Reimplemented in PartSet_RootNode.
|
inlinevirtualinherited |
Returns document object of the sub-tree. Has to be reimplemented in sub-tree root object.
Reimplemented in PartSet_PartRootNode, and PartSet_RootNode.
|
inlinevirtualinherited |
Returns a node which belongs to the given document and contains objects of the given group.
| theDoc | a document |
| theGroup | a name of objects group |
Reimplemented in PartSet_FeatureFolderNode, and PartSet_FolderNode.
|
inlinevirtualinherited |
Returns root node of a data tree of the given document.
| theDoc | a document |
|
inlineprotectedvirtualinherited |
deletes all children nodes (called in destructor.)
Reimplemented in PartSet_PartRootNode.
|
protectedinherited |
Parent of the node.
|
protectedinherited |
Children of the node.