From ed9b49bac1cebe8e128d24b35d7fe5d30baf57db Mon Sep 17 00:00:00 2001 From: snn Date: Tue, 18 Apr 2017 17:09:14 +0300 Subject: [PATCH] refs #314: Get notes attached to sub-shapes/attributes of an assembly item --- src/XCAFDoc/XCAFDoc_NotesTool.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/XCAFDoc/XCAFDoc_NotesTool.hxx b/src/XCAFDoc/XCAFDoc_NotesTool.hxx index 6fbcffc122..29303da0b8 100644 --- a/src/XCAFDoc/XCAFDoc_NotesTool.hxx +++ b/src/XCAFDoc/XCAFDoc_NotesTool.hxx @@ -127,7 +127,7 @@ public: //! \param [in] theItemId - assembly item ID. //! \return annotated item label if it is found, otherwise - null label. Standard_EXPORT TDF_Label FindAnnotatedItem(const XCAFDoc_AssemblyItemId& theItemId) const; - Standard_EXPORT TDF_Label FindAnnotatedItemGUID(const XCAFDoc_AssemblyItemId& theItemId, + Standard_EXPORT TDF_Label FindAnnotatedItemAttr(const XCAFDoc_AssemblyItemId& theItemId, const Standard_GUID& theGUID) const; Standard_EXPORT TDF_Label FindAnnotatedItemSubshape(const XCAFDoc_AssemblyItemId& theItemId, Standard_Integer theSubshapeIndex) const; @@ -235,6 +235,12 @@ public: //! \return number of added labels. Standard_EXPORT Standard_Integer GetNotes(const XCAFDoc_AssemblyItemId& theItemId, TDF_LabelSequence& theNoteLabels) const; + Standard_EXPORT Standard_Integer GetAttrNotes(const XCAFDoc_AssemblyItemId& theItemId, + const Standard_GUID& theGUID, + TDF_LabelSequence& theNoteLabels) const; + Standard_EXPORT Standard_Integer GetSubshapeNotes(const XCAFDoc_AssemblyItemId& theItemId, + Standard_Integer theSubshapeIndex, + TDF_LabelSequence& theNoteLabels) const; //! Gets all note labels of the labeled item. //! Notes linked to item's attributes aren't -- 2.39.5