Salome HOME
406208a05c0738fc82c8d635c7657b0442010d2b
[modules/geom.git] / src / NMTTools / NMTTools_CommonBlock.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:        NMTTools_CommonBlock.cdl
23 -- Created:     Tue Dec  9 12:11:48 2003
24 -- Author:      Peter KURNEV
25 --              <pkv@irinox>
26 --
27 class CommonBlock from NMTTools 
28
29         ---Purpose: 
30
31 uses 
32     ListOfInteger   from TColStd, 
33     PaveBlock       from BOPTools,
34     ListOfPaveBlock from BOPTools
35
36 --raises
37
38 is 
39     Create 
40         returns CommonBlock from NMTTools; 
41          
42     AddPaveBlock(me:out; 
43             aPB : PaveBlock from BOPTools); 
44              
45     AddFace(me:out; 
46             aF : Integer from Standard); 
47          
48     AddFaces(me:out; 
49             aLF:  ListOfInteger from TColStd);    
50              
51     PaveBlocks(me) 
52         returns ListOfPaveBlock from BOPTools; 
53     ---C++:  return const &  
54     
55     Faces (me) 
56         returns ListOfInteger from TColStd; 
57     ---C++:  return const &  
58      
59     PaveBlock1  (me) 
60         returns  PaveBlock from BOPTools; 
61     ---C++:  return const &     
62          
63     PaveBlock1  (me:out; 
64             anIx: Integer from Standard) 
65         returns  PaveBlock from BOPTools; 
66     ---C++:  return & 
67      
68     PaveBlockOnEdge  (me:out;  
69             anIndex: Integer from Standard) 
70         returns  PaveBlock from BOPTools; 
71     ---C++:  return  &    
72      
73     IsPaveBlockOnFace  (me;  
74             anIndex: Integer from Standard) 
75         returns  Boolean from Standard; 
76      
77     IsPaveBlockOnEdge  (me;  
78             anIndex: Integer from Standard) 
79         returns  Boolean from Standard;   
80         
81     IsEqual  (me; 
82             aCB:CommonBlock from NMTTools) 
83         returns Boolean from Standard; 
84          
85     Contains(me; 
86             aPB:PaveBlock from BOPTools) 
87         returns  Boolean from Standard; 
88          
89 --    SetEdge (me:out;   
90 --          anEdge:Integer from Standard);  
91
92 --    Edge (me) 
93 --      returns Integer from Standard;  
94
95 fields 
96     myPaveBlocks: ListOfPaveBlock from BOPTools is protected;  
97     myFaces     : ListOfInteger   from TColStd  is protected;  
98             
99 end CommonBlock;
100
101
102
103
104
105
106
107