Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_EdgeBuilder.h
1 // File:        GeomAlgoAPI_EdgeBuilder.h
2 // Created:     23 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef GeomAlgoAPI_EdgeBuilder_H_
6 #define GeomAlgoAPI_EdgeBuilder_H_
7
8 #include <GeomAlgoAPI.h>
9 #include <GeomAPI_Edge.h>
10 #include <GeomAPI_Pnt.h>
11 #include <GeomAPI_Dir.h>
12 #include <memory>
13
14 /**\class GeomAlgoAPI_EdgeBuilder
15  * \ingroup DataAlgo
16  * \brief Allows to create face-shapes by different parameters
17  */
18
19 class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder
20 {
21  public:
22   /// Creates linear edge by two points
23   static std::shared_ptr<GeomAPI_Edge> line(std::shared_ptr<GeomAPI_Pnt> theStart,
24                                               std::shared_ptr<GeomAPI_Pnt> theEnd);
25
26   /// Creates linear edge in a form of a circle by a point and a circle radius
27   static std::shared_ptr<GeomAPI_Edge> lineCircle(std::shared_ptr<GeomAPI_Pnt> theCenter,
28                                                     std::shared_ptr<GeomAPI_Dir> theNormal,
29                                                     double theRadius);
30
31   /// Creates linear edge in a form of a circle arc by a three points
32   static std::shared_ptr<GeomAPI_Edge> lineCircleArc(std::shared_ptr<GeomAPI_Pnt> theCenter,
33                                                        std::shared_ptr<GeomAPI_Pnt> theStartPoint,
34                                                        std::shared_ptr<GeomAPI_Pnt> theEndPoint,
35                                                        std::shared_ptr<GeomAPI_Dir> theNormal);
36 };
37
38 #endif