Salome HOME
Win32 compilation.
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_WESCorrector.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 // File:        NMTAlgo_WESCorrector.hxx\r
24 // Created:     \r
25 // Author:      Peter KURNEV\r
26 //              <pkv@irinox>\r
27 //\r
28 #ifndef _GEOMAlgo_WESCorrector_HeaderFile\r
29 #define _GEOMAlgo_WESCorrector_HeaderFile\r
30 \r
31 #include <Standard.hxx>\r
32 #include <Standard_Macro.hxx>\r
33 #include <GEOMAlgo_PWireEdgeSet.hxx>\r
34 #include <GEOMAlgo_WireEdgeSet.hxx>\r
35 #include <BOP_ListOfConnexityBlock.hxx>\r
36 #include <GEOMAlgo_Algo.hxx>\r
37 \r
38 \r
39 //!  The algorithm to change the Wire Edges Set (WES) contents. <br>\r
40 //!   The NewWES will contain only wires instead of wires and edges. <br>\r
41 //=======================================================================\r
42 //class    : GEOMAlgo_WESCorrector\r
43 //purpose  : \r
44 //=======================================================================\r
45 class GEOMAlgo_WESCorrector  : public GEOMAlgo_Algo \r
46 {\r
47  public:\r
48   //! Empty constructor; <br>\r
49   //! <br>\r
50   Standard_EXPORT\r
51     GEOMAlgo_WESCorrector();\r
52 \r
53   Standard_EXPORT\r
54     virtual ~GEOMAlgo_WESCorrector();\r
55   \r
56   //! Modifier <br>\r
57   Standard_EXPORT\r
58     void SetWES(const GEOMAlgo_WireEdgeSet& aWES) ;\r
59   \r
60   //! Performs the algorithm that  consists  of  two  steps <br>\r
61   //! 1. Make conexity blocks (  DoConnexityBlocks()  ) <br>\r
62   //! 2. Make corrections     (  DoCorrections()  ) <br>\r
63   Standard_EXPORT   \r
64     virtual  void Perform() ;\r
65   \r
66   //! Selector <br>\r
67   Standard_EXPORT\r
68     GEOMAlgo_WireEdgeSet& WES() ;\r
69   \r
70   //! Selector <br>\r
71   Standard_EXPORT\r
72     GEOMAlgo_WireEdgeSet& NewWES() ;\r
73 \r
74 protected:\r
75   Standard_EXPORT\r
76     void DoConnexityBlocks() ;\r
77   \r
78   Standard_EXPORT\r
79     void DoCorrections() ;\r
80 \r
81 \r
82   GEOMAlgo_PWireEdgeSet myWES;\r
83   GEOMAlgo_WireEdgeSet myNewWES;\r
84   BOP_ListOfConnexityBlock myConnexityBlocks;\r
85 };\r
86 \r
87 #endif\r