Salome HOME
Porting to OCCT6.5.1 development version
[modules/geom.git] / src / NMTDS / NMTDS_BndSphere.cdl
1 -- Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 --
3 -- This library is free software; you can redistribute it and/or
4 -- modify it under the terms of the GNU Lesser General Public
5 -- License as published by the Free Software Foundation; either
6 -- version 2.1 of the License.
7 --
8 -- This library is distributed in the hope that it will be useful,
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 -- Lesser General Public License for more details.
12 --
13 -- You should have received a copy of the GNU Lesser General Public
14 -- License along with this library; if not, write to the Free Software
15 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 --
17 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 --
19
20 -- File:        NMTDS_BndSphere.cdl
21 -- Created:     
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24 --
25 class BndSphere from NMTDS 
26
27         ---Purpose: 
28
29 uses
30     Pnt from gp
31
32 is 
33     Create 
34         returns BndSphere from NMTDS; 
35     ---C++: alias "Standard_EXPORT virtual ~NMTDS_BndSphere();"  
36      
37     SetCenter(me:out; 
38             theP:Pnt from gp); 
39     ---C++: inline 
40      
41     Center(me) 
42         returns Pnt from gp; 
43     ---C++:return const&        
44     ---C++: inline 
45      
46     SetRadius(me:out; 
47             theR:Real from Standard);     
48     ---C++: inline 
49     
50     Radius(me) 
51         returns Real from Standard; 
52     ---C++: inline 
53      
54     SetGap(me:out; 
55             theGap:Real from Standard);     
56     ---C++: inline
57
58     Gap(me) 
59         returns Real from Standard; 
60     ---C++: inline
61
62     Add(me:out;  
63             theOther: BndSphere from NMTDS); 
64     ---C++: inline           
65
66     IsOut(me;  
67             theOther: BndSphere from NMTDS)  
68         returns Boolean from Standard;  
69
70     SquareExtent(me)  
71         returns Real from Standard;
72     ---C++: inline
73 fields 
74     myCenter: Pnt from gp is protected;   
75     myRadius: Real from Standard is protected;   
76     myGap   : Real from Standard is protected;   
77
78 end BndSphere;