SHAPER  9.12.0
GeomAlgoAPI_Pipe.h
1 // Copyright (C) 2014-2023 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef GeomAlgoAPI_Pipe_H_
21 #define GeomAlgoAPI_Pipe_H_
22 
23 #include "GeomAlgoAPI.h"
24 
25 #include "GeomAlgoAPI_MakeSweep.h"
26 
27 #include <GeomAPI_Shape.h>
28 
38 {
39  GeomAPI_DataMapOfShapeShape myMovedPath;
40 public:
44  GEOMALGOAPI_EXPORT GeomAlgoAPI_Pipe(const GeomShapePtr theBaseShape,
45  const GeomShapePtr thePathShape);
46 
52  GEOMALGOAPI_EXPORT GeomAlgoAPI_Pipe(const GeomShapePtr theBaseShape,
53  const GeomShapePtr thePathShape,
54  const GeomShapePtr theBiNormal);
55 
61  GEOMALGOAPI_EXPORT GeomAlgoAPI_Pipe(const ListOfShape& theBaseShapes,
62  const ListOfShape& theLocations,
63  const GeomShapePtr thePathShape);
64 
68  GEOMALGOAPI_EXPORT void generated(const GeomShapePtr theShape,
69  ListOfShape& theHistory);
70 
71 private:
72  void build(const GeomShapePtr theBaseShape,
73  const GeomShapePtr thePathShape);
74 
75  void build(const GeomShapePtr theBaseShape,
76  const GeomShapePtr thePathShape,
77  const GeomShapePtr theBiNormal);
78 
79  void build(const ListOfShape& theBaseShapes,
80  const ListOfShape& theLocations,
81  const GeomShapePtr thePathShape);
83  void addMovedPath(GeomShapePtr thePath, GeomShapePtr theMoved);
84 };
85 
86 #endif
DataMap of Shape - Shape defined by TopoDS_Shapes.
Definition: GeomAPI_DataMapOfShapeShape.h:33
virtual GEOMALGOAPI_EXPORT void build()
Execute the algorithm.
Definition: GeomAlgoAPI_MakeShape.h:76
The abstract class MakeSweep is the root class of swept primitives.
Definition: GeomAlgoAPI_MakeSweep.h:41
Allows to create extrusion of objects along a path.
Definition: GeomAlgoAPI_Pipe.h:38
GeomAlgoAPI_Pipe(const GeomShapePtr theBaseShape, const GeomShapePtr thePathShape)
Creates extrusion for the given shape along a path.
Definition: GeomAlgoAPI_Pipe.cpp:56
void generated(const GeomShapePtr theShape, ListOfShape &theHistory)
Definition: GeomAlgoAPI_Pipe.cpp:387