]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTDS/NMTDS_BndSphere.cdl
Salome HOME
Mantis issue 0020626: EDF 1200 GEOM: the discretisation of the circles in the OCC...
[modules/geom.git] / src / NMTDS / NMTDS_BndSphere.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:        NMTDS_BndSphere.cdl
23 -- Created:     
24 -- Author:      Peter KURNEV
25 --              <pkv@irinox>
26
27
28 class BndSphere from NMTDS 
29
30         ---Purpose: 
31
32 uses
33     Pnt from gp
34
35 is 
36     Create 
37         returns BndSphere from NMTDS; 
38     ---C++: alias "Standard_EXPORT virtual ~NMTDS_BndSphere();"  
39      
40     SetCenter(me:out; 
41             theP:Pnt from gp); 
42     ---C++: inline 
43      
44     Center(me) 
45         returns Pnt from gp; 
46     ---C++:return const&        
47     ---C++: inline 
48      
49     SetRadius(me:out; 
50             theR:Real from Standard);     
51     ---C++: inline 
52     
53     Radius(me) 
54         returns Real from Standard; 
55     ---C++: inline 
56      
57     SetGap(me:out; 
58             theGap:Real from Standard);     
59     ---C++: inline
60
61     Gap(me) 
62         returns Real from Standard; 
63     ---C++: inline
64
65     Add(me:out;  
66             theOther: BndSphere from NMTDS); 
67     ---C++: inline           
68
69     IsOut(me;  
70             theOther: BndSphere from NMTDS)  
71         returns Boolean from Standard;  
72
73     SquareExtent(me)  
74         returns Real from Standard;
75     ---C++: inline
76 fields 
77     myCenter: Pnt from gp is protected;   
78     myRadius: Real from Standard is protected;   
79     myGap   : Real from Standard is protected;   
80
81 end BndSphere;