Salome HOME
Preparation of intermediate revision
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WESCorrector.cdl
1 --  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 --
3 --  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 --  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 --
6 --  This library is free software; you can redistribute it and/or
7 --  modify it under the terms of the GNU Lesser General Public
8 --  License as published by the Free Software Foundation; either
9 --  version 2.1 of the License.
10 --
11 --  This library is distributed in the hope that it will be useful,
12 --  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 --  Lesser General Public License for more details.
15 --
16 --  You should have received a copy of the GNU Lesser General Public
17 --  License along with this library; if not, write to the Free Software
18 --  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 --
20 --  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 --
22 -- File:        GEOMAlgo_WESCorrector.cdl
23 -- Created:     
24 -- Author:      Peter KURNEV
25 --
26 class WESCorrector from GEOMAlgo  
27     inherits Algo from GEOMAlgo
28
29         ---Purpose: 
30         ---  The algorithm to change the Wire Edges Set (WES) contents.
31         --   The NewWES will contain only wires instead of wires and edges. 
32         --
33 uses
34     WireEdgeSet          from GEOMAlgo,
35     PWireEdgeSet         from GEOMAlgo,
36     ListOfConnexityBlock from BOP 
37     
38 is 
39     Create   
40         returns WESCorrector from GEOMAlgo; 
41     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_WESCorrector();"  
42     ---Purpose:  
43     -- Empty constructor; 
44     -- 
45     
46     SetWES  (me:out; 
47                 aWES: WireEdgeSet from GEOMAlgo);  
48     ---Purpose: 
49     -- Modifier 
50     --
51     Perform (me:out) 
52         is redefined; 
53     ---Purpose: 
54     --- Performs the algorithm that  consists  of  two  steps 
55     --- 1. Make conexity blocks (  DoConnexityBlocks()  )     
56     --- 2. Make corrections     (  DoCorrections()  )        
57     ---
58       
59     WES     (me:out) 
60         returns WireEdgeSet from GEOMAlgo; 
61     ---C++:  return &  
62     ---Purpose: 
63     --- Selector 
64     ---
65     NewWES  (me:out) 
66         returns WireEdgeSet from GEOMAlgo; 
67     ---C++:  return &   
68     ---Purpose: 
69     --- Selector 
70     ---
71     DoConnexityBlocks(me:out) 
72         is protected; 
73        
74     DoCorrections(me:out) 
75         is protected; 
76
77 fields 
78
79     myWES             : PWireEdgeSet         from GEOMAlgo is protected; 
80     myNewWES          : WireEdgeSet          from GEOMAlgo is protected;  
81     myConnexityBlocks : ListOfConnexityBlock from BOP is protected;  
82
83 end WESCorrector;