Salome HOME
Internal issue 0022865: Restructurization of Partition packages.
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_BuilderFace.hxx
1 \r
2 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
3 //\r
4 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
5 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS\r
6 //\r
7 // This library is free software; you can redistribute it and/or\r
8 // modify it under the terms of the GNU Lesser General Public\r
9 // License as published by the Free Software Foundation; either\r
10 // version 2.1 of the License.\r
11 //\r
12 // This library is distributed in the hope that it will be useful,\r
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
15 // Lesser General Public License for more details.\r
16 //\r
17 // You should have received a copy of the GNU Lesser General Public\r
18 // License along with this library; if not, write to the Free Software\r
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
20 //\r
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
22 //\r
23 \r
24 // File:        GEOMAlgo_BuilderFace.hxx\r
25 // Created:     \r
26 // Author:      Peter KURNEV\r
27 //\r
28 #ifndef _GEOMAlgo_BuilderFace_HeaderFile\r
29 #define _GEOMAlgo_BuilderFace_HeaderFile\r
30 \r
31 #include <Standard.hxx>\r
32 #include <Standard_Macro.hxx>\r
33 #include <TopoDS_Face.hxx>\r
34 #include <GEOMAlgo_BuilderArea.hxx>\r
35 \r
36 //! The algorithm to build faces from set of edges <br>\r
37 //=======================================================================\r
38 //class    : GEOMAlgo_BuilderFace\r
39 //purpose  : \r
40 //=======================================================================\r
41 class GEOMAlgo_BuilderFace  : public GEOMAlgo_BuilderArea \r
42 {\r
43  public:\r
44   \r
45   //!  Empty  constructor <br>\r
46   Standard_EXPORT\r
47     GEOMAlgo_BuilderFace();\r
48 \r
49   Standard_EXPORT\r
50     virtual ~GEOMAlgo_BuilderFace();\r
51   \r
52   //! Sets the face generatix <br>\r
53   Standard_EXPORT\r
54     void SetFace(const TopoDS_Face& theFace) ;\r
55   \r
56   //! Returns the face generatix <br>\r
57   Standard_EXPORT\r
58     const TopoDS_Face& Face() const;\r
59   \r
60   //!  Performs the algorithm <br>\r
61   Standard_EXPORT\r
62     virtual  void Perform() ;\r
63 \r
64  protected:\r
65   //!  Collect the edges that <br>\r
66   //!           a) are internal <br>\r
67   //!           b) are the same and have different orientation <br>\r
68   Standard_EXPORT\r
69     virtual  void PerformShapesToAvoid() ;\r
70   \r
71   //! Build draft wires <br>\r
72   //!          a)myLoops - draft wires that consist of <br>\r
73   //!                       boundary edges <br>\r
74   //!          b)myLoopsInternal - draft wires that contains <br>\r
75   //!                               inner edges <br>\r
76   Standard_EXPORT\r
77     virtual  void PerformLoops() ;\r
78   \r
79   //! Build draft faces that contains boundary edges <br>\r
80   Standard_EXPORT\r
81     virtual  void PerformAreas() ;\r
82   \r
83   //! Build finalized faces with internals <br>\r
84   Standard_EXPORT\r
85     virtual  void PerformInternalShapes() ;\r
86 \r
87 \r
88   TopoDS_Face myFace;\r
89 };\r
90 \r
91 #endif\r