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