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