Salome HOME
Porting to SALOME_8.2.0 : Debug visualization selection for AIS_Trihedron axes.
[modules/shaper.git] / src / ModelAPI / ModelAPI_CompositeFeature.h
index bc31a21eb80cc57f014b44c3e9478cf2843aaf4d..945e88dafe7eb2077fcd9c9f3d44aa82bbf3bc10 100644 (file)
@@ -28,7 +28,8 @@ public:
   virtual int numberOfSubs(bool forTree = false) const = 0;
 
   /// Returns the sub-feature by zero-base index
-  virtual std::shared_ptr<ModelAPI_Feature> subFeature(const int theIndex, bool forTree = false) = 0;
+  virtual std::shared_ptr<ModelAPI_Feature> subFeature(const int theIndex,
+                                                       bool forTree = false) = 0;
 
   /// Returns the sub-feature unique identifier in this composite feature by zero-base index
   virtual int subFeatureId(const int theIndex) const = 0;
@@ -43,6 +44,9 @@ public:
   /// Exchanges IDs of two given features: needed for more correct naming in some cases (issue 769)
   MODELAPI_EXPORT virtual void exchangeIDs(std::shared_ptr<ModelAPI_Feature> theFeature1,
     std::shared_ptr<ModelAPI_Feature> theFeature2);
+
+  /// in addition removes all subs
+  MODELAPI_EXPORT virtual void erase();
 };
 
 //! Pointer on the composite feature object