-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
/// Returns the node representation according to theRole.
virtual QVariant data(int theColumn, int theRole) const;
+
+ // Returns color of the Item when it is active
+ virtual QColor activeItemColor() const;
};
/**
virtual ObjectPtr subObject(int theId) const;
+ // Returns color of the Item when it is active
+ virtual QColor activeItemColor() const;
+
protected:
ObjectPtr myObject;
};
/// \param theDoc a document where objects were deleted
/// \param theGroup a name of group where objects were deleted
virtual QTreeNodesList objectsDeleted(const DocumentPtr& theDoc, const QString& theGroup);
+
+ /// Returns the node representation according to theRole.
+ virtual QVariant data(int theColumn, int theRole) const;
};
* \ingroup Modules
* Implementation of a node for compsolid representation
*/
-class PartSet_StepNode : public PartSet_TreeNode
+class PartSet_StepNode : public PartSet_ObjectNode
{
public:
- PartSet_StepNode(ModelAPI_Entity* theEnt, ModuleBase_ITreeNode* theParent) :
- PartSet_TreeNode(theParent), myEntity(theEnt) {}
+ PartSet_StepNode(const ObjectPtr& theObj, ModuleBase_ITreeNode* theParent) :
+ PartSet_ObjectNode(theObj, theParent) {}
static std::string typeId()
{
/// Returns the node representation according to theRole.
virtual QVariant data(int theColumn, int theRole) const;
- ModelAPI_Entity* entity() const {
- return myEntity;
- }
-
- void setEntity(ModelAPI_Entity* theEnt) {
- myEntity = theEnt;
- }
-
-private:
- ModelAPI_Entity* myEntity;
+ virtual VisibilityState visibilityState() const;
};
#endif