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