Salome HOME
44be83e18cba8b61c7710ff379491bc28bb7a002
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_FinderShapeOn.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_FinderShapeOn.cdl
23 --  Created:    Tue Jan 11 14:35:52 2005
24 --  Author:     Peter KURNEV
25 --
26 class FinderShapeOn from GEOMAlgo 
27     inherits ShapeAlgo from GEOMAlgo 
28     
29         ---Purpose: 
30
31 uses
32     Surface from Geom, 
33     ShapeEnum from TopAbs, 
34     ListOfShape from TopTools, 
35     DataMapOfShapeShape from TopTools, 
36     Shape from TopoDS, 
37     State from GEOMAlgo, 
38     IndexedDataMapOfShapeState from GEOMAlgo 
39     
40 --raises
41
42 is 
43     Create   
44         returns FinderShapeOn from GEOMAlgo; 
45     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn();" 
46      
47     Perform(me:out) 
48         is redefined;  
49          
50     SetSurface(me:out; 
51             aS:Surface from Geom); 
52          
53     SetShapeType(me:out; 
54             aST:ShapeEnum from TopAbs); 
55          
56     SetState(me:out; 
57             aSF:State from GEOMAlgo);      
58      
59     Surface(me) 
60         returns Surface from Geom; 
61     ---C++: return const & 
62      
63     ShapeType(me) 
64         returns ShapeEnum from TopAbs; 
65          
66     State(me)
67         returns State from GEOMAlgo;  
68      
69     Shapes(me)
70         returns ListOfShape from TopTools; 
71     ---C++: return const &  
72      
73     -- 
74     --  protected  methods
75     -- 
76     CheckData(me:out) 
77         is redefined protected; 
78
79     MakeArgument1(me:out) 
80         is protected;  
81
82     MakeArgument2(me:out) 
83         is protected;
84      
85     Find(me:out) 
86         is protected; 
87
88     Find(me:out; 
89             aS:Shape from TopoDS) 
90         is protected; 
91
92     FindVertices(me:out) 
93         is protected; 
94          
95     CopySource(myclass; 
96         aS  :Shape from TopoDS; 
97         aImages   : out DataMapOfShapeShape from TopTools;       
98         aOriginals: out DataMapOfShapeShape from TopTools;       
99         aSC : out Shape from TopoDS); 
100         
101                                         
102
103 fields 
104     mySurface    : Surface from Geom is protected;  
105     myShapeType  : ShapeEnum from TopAbs is protected;  
106     myState      : State from GEOMAlgo is protected; 
107     myArg1       : Shape from TopoDS is protected;  
108     myArg2       : Shape from TopoDS is protected;  
109     myLS         : ListOfShape from TopTools is protected;
110     myImages     : DataMapOfShapeShape from TopTools is protected; 
111     myMSS        : IndexedDataMapOfShapeState from GEOMAlgo is protected; 
112     myIsAnalytic : Boolean from Standard is protected; 
113      
114 end FinderShapeOn;