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