Salome HOME
Added the system of reinitialization of attributes instead of re-creation of them...
[modules/shaper.git] / src / Model / Model_AttributeRefAttrList.h
index 2e666db26557e2cbab6388e40a6fbfa96574d990..6d877e3e75d2cb48b35a77674809871226268b88 100755 (executable)
@@ -11,6 +11,7 @@
 #include "ModelAPI_AttributeRefAttrList.h"
 #include "ModelAPI_Feature.h"
 
+#include <TDF_Label.hxx>
 #include <TDataStd_ReferenceList.hxx>
 #include <TDataStd_ExtStringList.hxx>
 
@@ -22,6 +23,7 @@
 
 class Model_AttributeRefAttrList : public ModelAPI_AttributeRefAttrList
 {
+  TDF_Label myLab; ///< the main label of this attribute
   Handle_TDataStd_ReferenceList myRef;  ///< references to the features labels
   Handle_TDataStd_ExtStringList myIDs;  ///< the referenced attributes IDs (empty for just object)
  public:
@@ -71,6 +73,8 @@ class Model_AttributeRefAttrList : public ModelAPI_AttributeRefAttrList
  protected:
   /// Objects are created for features automatically
   MODEL_EXPORT Model_AttributeRefAttrList(TDF_Label& theLabel);
+  /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
+  virtual void reinit();
 
   friend class Model_Data;
 };