]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_Offset.h
Salome HOME
Sketcher Offset: API
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Offset.h
index f8a86036df6f80d8356ef4d3f870c95d20b4dc90..482a752457f0774aa98a0f844f7e0ba261247103 100644 (file)
@@ -70,6 +70,13 @@ public:
     return ID;
   }
 
+  /// attribute to store the created objects
+  inline static const std::string& CREATED_ID()
+  {
+    static const std::string ID("created");
+    return ID;
+  }
+
   /// name for add wire action
   inline static const std::string& ADD_WIRE_ACTION_ID()
   {
@@ -112,9 +119,12 @@ private:
   bool findWires();
 
   // Create sketch feature for each edge of theOffsetResult,
-  // and store it in myCreatedFeatures to remove on next execute()
+  // and store it in CREATED_ID()
   void addToSketch (const std::shared_ptr<GeomAPI_Shape>& theOffsetResult);
 
+  // Remove created features
+  void removeCreated ();
+
   // Create BSpline or BSplinePeriodic sketch feature from theEdge
   void mkBSpline (FeaturePtr& theResult, const GeomEdgePtr& theEdge);
 
@@ -133,9 +143,6 @@ private:
                        std::set<FeaturePtr>& theEdgesSet,
                        std::list<FeaturePtr>& theChain,
                        const bool isPrepend = false);
-
-  // tmp
-  std::set<FeaturePtr> myCreatedFeatures;
 };
 
 #endif