Salome HOME
Make SHAPER STUDY fields exported in SMESH into MED file
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_SketchEntity.h
index cae07149d584e95a8f10981f29115882bea2069e..4d85894e574e9a695de5d7f2e9ccab3c9474f43e 100644 (file)
@@ -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++)