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