Salome HOME
Revert "bos#35152 [EDF] (2023-T1) Sketch Circle should allow user to position constru...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_SketchEntity.h
index cae07149d584e95a8f10981f29115882bea2069e..3f3e7526a5d0d4c18f223a732f96f00d5cb1ae37 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -65,6 +65,13 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature //, public GeomAPI
     return MY_COPY_ID;
   }
 
+  /// Reference to the parent feature if exist
+  inline static const std::string& PARENT_ID()
+  {
+    static const std::string& MY_PARENT_ID("ParentFeature");
+    return MY_PARENT_ID;
+  }
+
   /// Width of the auxiliary line
   inline static const int SKETCH_LINE_WIDTH_AUXILIARY()
   {
@@ -172,7 +179,8 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature //, public GeomAPI
   //  }
   //  if (!aColor.empty()) {
   //    if (theResult.get() && ModelAPI_Session::get()->isOperation()) {
-  //      AttributeIntArrayPtr aColorAttr = theResult->data()->intArray(ModelAPI_Result::COLOR_ID());
+  //      AttributeIntArrayPtr aColorAttr =
+  //          theResult->data()->intArray(ModelAPI_Result::COLOR_ID());
   //      aColorAttr->setSize(3);
   //      // Set the color attribute in order do not use default colors in the presentation object
   //      for (int i = 0; i < 3; i++)
@@ -219,6 +227,9 @@ protected:
   /// \brief Initializes attributes of derived class.
   virtual void initDerivedClassAttributes(){};
 
+  /// \brief Initializes attributes of derived class which were added recently.
+  virtual void initDerivedClassAttributes2(){};
+
 };
 
 #endif