Salome HOME
Update copyright
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_SurfaceTools.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_SurfaceTools.cdl
24 --  Created:    Thu Jan 27 11:03:49 2005
25 --  Author:     Peter KURNEV
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;