]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h
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 <boost/shared_ptr.hpp>
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 boost::shared_ptr<GeomAPI_Edge> line(boost::shared_ptr<GeomAPI_Pnt> theStart,
24                                               boost::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 boost::shared_ptr<GeomAPI_Edge> lineCircle(boost::shared_ptr<GeomAPI_Pnt> theCenter,
28                                                     boost::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 boost::shared_ptr<GeomAPI_Edge> lineCircleArc(boost::shared_ptr<GeomAPI_Pnt> theCenter,
33                                                        boost::shared_ptr<GeomAPI_Pnt> theStartPoint,
34                                                        boost::shared_ptr<GeomAPI_Pnt> theEndPoint,
35                                                        boost::shared_ptr<GeomAPI_Dir> theNormal);
36 };
37
38 #endif