Salome HOME
updated copyright message
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Solid.h
index 549ee49d0299de8eb144b5abb0920ce10a5c7c64..2620bbbf53a3a3a097da2172a05c9e898f9453c6 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-20xx  CEA/DEN, EDF R&D
+// Copyright (C) 2017-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
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef BuildPlugin_Solid_H_
 #define BuildPlugin_Solid_H_
 
 #include "BuildPlugin.h"
-
-#include <GeomAPI_Shape.h>
-#include <ModelAPI_Feature.h>
-
-class GeomAlgoAPI_MakeShape;
+#include "BuildPlugin_Shape.h"
 
 /// \class BuildPlugin_Solid
 /// \ingroup Plugins
 /// \brief Feature for creation of solid from faces or shells.
-class BuildPlugin_Solid: public ModelAPI_Feature
+class BuildPlugin_Solid: public BuildPlugin_Shape
 {
 public:
   /// Use plugin manager for features creation
@@ -65,24 +60,8 @@ public:
   BUILDPLUGIN_EXPORT virtual void execute();
 
 protected:
-  /// Build result
-  /// \param[out] theOriginalShapes list of original shapes
-  /// \param[out] theAlgorithm      algorithm to build result
-  /// \return \c true if algorithm finished without errors
-  bool build(ListOfShape& theOriginalShapes, std::shared_ptr<GeomAlgoAPI_MakeShape>& theAlgorithm);
-
-  /// Store result of algorithm
-  void storeResult(const ListOfShape& theOriginalShapes,
-                   const GeomShapePtr& theResultShape,
-                   const std::shared_ptr<GeomAlgoAPI_MakeShape>& theAlgorithm);
-
-  /// Check the algorithm is failed
-  bool isAlgorithmFailed(const std::shared_ptr<GeomAlgoAPI_MakeShape>& theAlgorithm);
-
-  /// Explode compound to get single shape of specified type
-  /// \return Empty shape if there is more than one shape in compound
-  GeomShapePtr getSingleSubshape(const GeomShapePtr& theCompound,
-                                 const GeomAPI_Shape::ShapeType theShapeType);
+  /// Explode compound to get single shape
+  GeomShapePtr getSingleSubshape(const GeomShapePtr& theCompound);
 };
 
 #endif