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