]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Selector/Selector_NExplode.h
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / Selector / Selector_NExplode.h
index 412620b8cf4629f902389e91907ee95bc9d41347..c796285fecb036780174dce351138c47c37f15be 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2017-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -24,7 +24,9 @@
 
 #include <TopoDS_Shape.hxx>
 
-#include <vector>
+#include <memory>
+
+class GeomAlgoAPI_NExplode;
 
 /// \class Selector_NExplode
 /// \ingroup DataModel
@@ -48,12 +50,8 @@ class Selector_NExplode
    /// Recompute the index if the old order was used. The value will contain the new ordered index.
    SELECTOR_EXPORT TopoDS_Shape shape(int& theIndex);
 
-private:
-  /// Reorder list of shapes.
-  void reorder();
-
 protected:
-  std::vector<TopoDS_Shape> mySorted; ///< keep the ordered list of shapes
+  std::shared_ptr<GeomAlgoAPI_NExplode> mySorted; ///< keep the ordered list of shapes
   bool myToBeReordered; ///< the list has to be reordered
 };