Salome HOME
NPAL15298: geompy.KindOfShape(aShape) first version implemented.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WireSplitter.cdl
1 -- Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 -- 
4 -- This library is free software; you can redistribute it and/or
5 -- modify it under the terms of the GNU Lesser General Public
6 -- License as published by the Free Software Foundation; either 
7 -- version 2.1 of the License.
8 -- 
9 -- This library is distributed in the hope that it will be useful 
10 -- but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 -- Lesser General Public License for more details.
13 --
14 -- You should have received a copy of the GNU Lesser General Public  
15 -- License along with this library; if not, write to the Free Software 
16 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 --
18 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 -- 
20 -- File:        GEOMAlgo_WireSplitter.cdl
21 -- Created:     
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24
25
26 class WireSplitter from GEOMAlgo   
27         inherits Algo from GEOMAlgo  
28
29         ---Purpose: 
30         ---  the algorithm to split multiconnexed set of edges  
31         ---  wires on a face onto simple connexed wires 
32         ---  .
33 uses
34     Face   from TopoDS,  
35     Vertex from TopoDS, 
36     Edge   from TopoDS, 
37     
38     SequenceOfPnt2d  from TColgp, 
39     SequenceOfShape  from TopTools,   
40     ListOfShape      from TopTools, 
41     
42     ListOfListOfShape from BOPTColStd, 
43     
44     EdgeInfo                           from BOP,
45     IndexedDataMapOfVertexListEdgeInfo from BOP
46
47 --raises
48
49 is 
50     Create   
51         returns WireSplitter from GEOMAlgo; 
52     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_WireSplitter();" 
53         
54     SetFace  (me:out; 
55                 aF: Face from TopoDS); 
56          
57     SetEdges  (me:out; 
58                 aLE:ListOfShape from  TopTools);    
59
60     Edges  (me)
61          returns ListOfShape from  TopTools;  
62     ---C++:  return const &             
63      
64     Perform  (me:out) 
65         is redefined; 
66
67     IsNothingToDo (me) 
68         returns  Boolean from Standard;
69     
70     Face (me) 
71         returns Face from TopoDS; 
72     ---C++:  return const &              
73
74     Shapes (me) 
75         returns  ListOfListOfShape from BOPTColStd; 
76         ---C++:  return const &                  
77         
78 fields  
79     myFace       :  Face from TopoDS is protected; 
80     myIsDone     :  Boolean from Standard is protected;
81     myNothingToDo:  Boolean from Standard is protected;
82     myShapes     :  ListOfListOfShape from BOPTColStd is protected; 
83     mySmartMap   :  IndexedDataMapOfVertexListEdgeInfo from BOP is protected;  
84     myEdges      :  ListOfShape from  TopTools is protected; 
85     
86 end WireSplitter;
87