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