Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / NMTTools / NMTTools_CommonBlock.cdl
1 -- Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 -- 
4 -- This library is free software; you can redistribute it and/or
5 -- modify it under the terms of the GNU Lesser General Public
6 -- License as published by the Free Software Foundation; either 
7 -- version 2.1 of the License.
8 -- 
9 -- This library is distributed in the hope that it will be useful 
10 -- but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 -- Lesser General Public License for more details.
13 --
14 -- You should have received a copy of the GNU Lesser General Public  
15 -- License along with this library; if not, write to the Free Software 
16 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 --
18 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 --  
20 -- File:        NMTTools_CommonBlock.cdl
21 -- Created:     Tue Dec  9 12:11:48 2003
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24
25
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