Salome HOME
Additional modifications for the "20494: EDF 1123 KERNEL/GUI : Improvment of 'About...
[modules/geom.git] / src / NMTDS / NMTDS_Tools.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_Tools.cdl
21 --  Created:    Tue Feb 20 14:56:14 2007
22 --  Author:     Peter KURNEV
23 --
24 class Tools from NMTDS 
25
26         ---Purpose: 
27
28 uses
29     ShapeEnum from TopAbs, 
30     Vertex    from TopoDS,
31     Shape     from TopoDS,
32     IndexedDataMapOfShapeShape from TopTools 
33     
34 --raises
35
36 is 
37     TypeToInteger(myclass; 
38             aT1: ShapeEnum from TopAbs; 
39             aT2: ShapeEnum from TopAbs) 
40         returns Integer from Standard; 
41          
42     HasBRep(myclass; 
43             aT: ShapeEnum from TopAbs) 
44         returns Boolean from Standard;  
45          
46     ComputeVV(myclass;  
47             aV1:Vertex from TopoDS;  
48             aV2:Vertex from TopoDS) 
49         returns Integer from Standard;  
50
51     CopyShape(myclass; 
52             aS:Shape from TopoDS;  
53             aSC:out Shape from TopoDS);  
54
55     CopyShape(myclass; 
56             aS:Shape from TopoDS;  
57             aSC  :out Shape from TopoDS; 
58             aMSS :out IndexedDataMapOfShapeShape from TopTools);
59 --fields
60
61 end Tools;