Salome HOME
Porting Salome to OCCT 7.7.0
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Prism.h
index 7d2d2dbddb6eb6710c7ccee7c1da79d7e1936565..08f64d27cdf7c7f9572625694451e5daba91cf2d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-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
 #ifndef GeomAlgoAPI_Prism_H_
 #define GeomAlgoAPI_Prism_H_
 
-#include "GeomAlgoAPI.h"
-
 #include "GeomAlgoAPI_MakeSweep.h"
 
-#include <GeomAPI_Dir.h>
 #include <GeomAPI_Shape.h>
 
 #include <memory>
 
+class GeomAPI_Dir;
+class GeomAPI_Pln;
+
 /// \class GeomAlgoAPI_Prism
 /// \ingroup DataAlgo
 /// \brief Allows to create the prism based on a given face and bounding planes.
@@ -55,13 +55,32 @@ public:
                                        const double                       theFromSize);
 
 private:
-  /// Builds resulting shape.
-  void build(const GeomShapePtr&                theBaseShape,
-             const std::shared_ptr<GeomAPI_Dir> theDirection,
-             const GeomShapePtr&                theToShape,
-             const double                       theToSize,
-             const GeomShapePtr&                theFromShape,
-             const double                       theFromSize);
+  /// Build extrusion by distances from the base shape.
+  void buildBySizes(const GeomShapePtr                 theBaseShape,
+                    const std::shared_ptr<GeomAPI_Dir> theDirection,
+                    const double                       theToSize,
+                    const double                       theFromSize,
+                    const GeomAPI_Shape::ShapeType     theTypeToExp);
+
+  /// Build extrusion from plane to plane.
+  void buildByPlanes(const GeomShapePtr                 theBaseShape,
+                     const std::shared_ptr<GeomAPI_Dir> theDirection,
+                     const std::shared_ptr<GeomAPI_Pln> theToPlane,
+                     const double                       theToSize,
+                     const std::shared_ptr<GeomAPI_Pln> theFromPlane,
+                     const double                       theFromSize,
+                     const GeomAPI_Shape::ShapeType     theTypeToExp);
+
+  /// Build extrusion from face to face.
+  void buildByFaces(const GeomShapePtr                 theBaseShape,
+                    const std::shared_ptr<GeomAPI_Dir> theDirection,
+                    const GeomShapePtr                 theToShape,
+                    const double                       theToSize,
+                    const bool                         theToIsPlanar,
+                    const GeomShapePtr                 theFromShape,
+                    const double                       theFromSize,
+                    const bool                         theFromIsPlanar,
+                    const GeomAPI_Shape::ShapeType     theTypeToExp);
 };
 
 #endif