Salome HOME
Bug 0020413: Dump file has many GetMainShape instructions.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WireSplitter.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_WireSplitter.cdl
23 -- Created:     
24 -- Author:      Peter KURNEV
25 --              <pkv@irinox>
26 --
27 class WireSplitter from GEOMAlgo   
28         inherits Algo from GEOMAlgo  
29
30         ---Purpose: 
31         ---  the algorithm to split multiconnexed set of edges  
32         ---  wires on a face onto simple connexed wires 
33         ---  .
34 uses
35     Face   from TopoDS,  
36     Vertex from TopoDS, 
37     Edge   from TopoDS, 
38     
39     SequenceOfPnt2d  from TColgp, 
40     SequenceOfShape  from TopTools,   
41     ListOfShape      from TopTools, 
42     
43     ListOfListOfShape from BOPTColStd, 
44     
45     EdgeInfo                           from BOP,
46     IndexedDataMapOfVertexListEdgeInfo from BOP
47
48 --raises
49
50 is 
51     Create   
52         returns WireSplitter from GEOMAlgo; 
53     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_WireSplitter();" 
54         
55     SetFace  (me:out; 
56                 aF: Face from TopoDS); 
57          
58     SetEdges  (me:out; 
59                 aLE:ListOfShape from  TopTools);    
60
61     Edges  (me)
62          returns ListOfShape from  TopTools;  
63     ---C++:  return const &             
64      
65     Perform  (me:out) 
66         is redefined; 
67
68     IsNothingToDo (me) 
69         returns  Boolean from Standard;
70     
71     Face (me) 
72         returns Face from TopoDS; 
73     ---C++:  return const &              
74
75     Shapes (me) 
76         returns  ListOfListOfShape from BOPTColStd; 
77         ---C++:  return const &                  
78         
79 fields  
80     myFace       :  Face from TopoDS is protected; 
81     myIsDone     :  Boolean from Standard is protected;
82     myNothingToDo:  Boolean from Standard is protected;
83     myShapes     :  ListOfListOfShape from BOPTColStd is protected; 
84     mySmartMap   :  IndexedDataMapOfVertexListEdgeInfo from BOP is protected;  
85     myEdges      :  ListOfShape from  TopTools is protected; 
86     
87 end WireSplitter;
88