Salome HOME
Preparation of intermediate revision
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_FinderShapeOn2.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_FinderShapeOn1.cdl
23 -- Created:     Fri Mar  4 10:26:54 2005
24 -- Author:      Peter KURNEV
25 --              <pkv@irinox>
26 --
27 class FinderShapeOn2 from GEOMAlgo  
28     inherits ShapeAlgo from GEOMAlgo 
29
30         ---Purpose: 
31
32 uses 
33     Pnt from gp,
34     ShapeEnum from TopAbs, 
35     State from TopAbs,
36     Face from TopoDS, 
37     Edge from TopoDS, 
38     ListOfShape from TopTools,  
39      
40     State from GEOMAlgo, 
41     ListOfPnt from GEOMAlgo, 
42     IndexedDataMapOfShapeState from GEOMAlgo, 
43     Clsf from GEOMAlgo 
44     
45 --raises
46
47 is 
48     Create   
49         returns FinderShapeOn2 from GEOMAlgo; 
50     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn2();" 
51
52     SetClsf(me:out; 
53             aClsf:Clsf from GEOMAlgo); 
54          
55     Clsf(me) 
56         returns Clsf from GEOMAlgo;  
57     ---C++: return const &  
58      
59     SetShapeType(me:out; 
60             aST:ShapeEnum from TopAbs); 
61          
62     ShapeType(me) 
63         returns ShapeEnum from TopAbs; 
64      
65     SetState(me:out; 
66             aSF:State from GEOMAlgo);      
67      
68     State(me)
69         returns State from GEOMAlgo;        
70      
71     SetNbPntsMin(me:out; 
72             aNb:Integer from Standard);   
73
74     NbPntsMin(me) 
75         returns Integer from Standard; 
76          
77     SetNbPntsMax(me:out; 
78             aNb:Integer from Standard);   
79
80     NbPntsMax(me) 
81         returns Integer from Standard; 
82          
83     Perform(me:out) 
84         is redefined; 
85          
86     Shapes(me)
87         returns ListOfShape from TopTools; 
88     ---C++: return const &  
89     -- 
90     --  protected  methods
91     -- 
92     CheckData(me:out) 
93         is redefined protected; 
94          
95     ProcessVertices(me:out) 
96         is protected; 
97      
98     ProcessEdges(me:out) 
99         is protected; 
100   
101     ProcessFaces(me:out) 
102         is protected; 
103          
104     ProcessSolids(me:out) 
105         is protected; 
106           
107     InnerPoints(me:out; 
108             aF :Face from TopoDS;            
109             aLP:out ListOfPnt from GEOMAlgo) 
110         is protected;  
111          
112     InnerPoints(me:out; 
113             aE :Edge from TopoDS;            
114             aLP:out ListOfPnt from GEOMAlgo) 
115         is protected; 
116          
117     InnerPoints(me:out; 
118             aE :Edge from TopoDS;            
119             aNbPnts: Integer from Standard;     
120             aLP:out ListOfPnt from GEOMAlgo) 
121         is protected;  
122       
123     MSS (me)  
124         returns IndexedDataMapOfShapeState from GEOMAlgo; 
125     ---C++:return const &       
126     
127     
128 fields
129     myShapeType : ShapeEnum from TopAbs is protected;  
130     myState     : State from GEOMAlgo is protected;  
131     myNbPntsMin : Integer from Standard is protected;   
132     myNbPntsMax : Integer from Standard is protected; 
133     myClsf      : Clsf    from GEOMAlgo is protected;   
134     -- 
135     myLS        : ListOfShape from TopTools is protected; 
136     --     
137     myMSS       : IndexedDataMapOfShapeState from GEOMAlgo is protected;
138  
139 end FinderShapeOn2;