Salome HOME
Remove extra files
[modules/shaper.git] / src / Model / Model_AttributeRefAttr.h
index 1833d3eb9f255c165b533f4966a01b1c16b0c298..f0e1495631cfb5ac678d29acb31a123ba88563b6 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        Model_AttributeRefAttr.h
 // Created:     8 May 2014
 // Author:      Mikhail PONIKAROV
@@ -20,7 +22,8 @@
 class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr
 {
   Handle_TDF_Reference myRef;  ///< reference to the feature label
-  ///< ID of the referenced attirbute (empty if this is a reference to a feature)
+  TDF_Label myLab; ///< the main label of this attribute
+  ///< ID of the referenced attribute (empty if this is a reference to a feature)
   Handle_TDataStd_Comment myID;
  public:
   /// Returns true if this attribute references to a object (not to the attribute)
@@ -38,9 +41,14 @@ class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr
   /// Returns object referenced from this attribute
   MODEL_EXPORT virtual ObjectPtr object();
 
+  /// Returns true if attribute was  initialized by some value
+  MODEL_EXPORT virtual bool isInitialized();
+
  protected:
   /// Objects are created for features automatically
   MODEL_EXPORT Model_AttributeRefAttr(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;
 };