Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_SurfaceTools.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_SurfaceTools.cdl
21 -- Created:     Thu Jan 27 11:03:49 2005
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24 ---Copyright:    Matra Datavision 2005
25
26
27 class SurfaceTools from GEOMAlgo 
28
29         ---Purpose: 
30
31 uses 
32     Pnt      from gp, 
33     Pln      from gp, 
34     Cylinder from gp, 
35     Sphere   from gp,
36     Surface  from Geom, 
37     Surface from GeomAdaptor, 
38     State    from TopAbs,       
39     State from GEOMAlgo
40
41 --raises
42
43 is 
44  
45
46     IsAnalytic(myclass;  
47             aS:Surface from Geom) 
48         returns Boolean from Standard; 
49     
50     IsCoaxial(myclass;  
51             aP1  :  Pnt from gp; 
52             aP2  :  Pnt from gp; 
53             aCyl :  Cylinder from gp; 
54             aTol :  Real from Standard)              
55         returns Boolean from Standard; 
56      
57     IsConformState(myclass;  
58             aST1:State from TopAbs; 
59             aST2:State from GEOMAlgo) 
60         returns Boolean from Standard;            
61
62     GetState(myclass; 
63             aP:Pnt from gp;          
64             aS:Surface from GeomAdaptor; 
65             aTol:Real from Standard; 
66             aSt:out State from TopAbs)
67         returns Integer from Standard; 
68         
69     GetState(myclass; 
70             aP:Pnt from gp;          
71             aS:Surface from Geom; 
72             aTol:Real from Standard; 
73             aSt:out State from TopAbs)
74         returns Integer from Standard;
75
76     Distance(myclass;  
77             aP:Pnt from gp;      
78             aPln:Pln from gp) 
79         returns Real from Standard; 
80
81     Distance(myclass;  
82             aP:Pnt from gp;      
83             aCyl:Cylinder from gp) 
84         returns Real from Standard; 
85          
86     Distance(myclass;  
87             aP:Pnt from gp;      
88             aSph:Sphere from gp) 
89         returns Real from Standard; 
90          
91     ReverseState(myclass; 
92             aSt: State from TopAbs) 
93         returns State from TopAbs; 
94          
95 --fields
96
97 end SurfaceTools;