1 -- Created by: Peter KURNEV
2 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
4 -- This file is part of Open CASCADE Technology software library.
6 -- This library is free software; you can redistribute it and/or modify it under
7 -- the terms of the GNU Lesser General Public License version 2.1 as published
8 -- by the Free Software Foundation, with special exception defined in the file
9 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 -- distribution for complete text of the license and disclaimer of any warranty.
12 -- Alternatively, this file may be used under the terms of Open CASCADE
13 -- commercial license or contractual agreement.
15 class CommonBlock from BOPDS
16 inherits TShared from MMgt
20 -- The class BOPDS_CommonBlock is to store
21 -- the information about pave blocks that have
22 -- geometry coincidence (in terms of a tolerance) with
23 -- a) other pave block(s)
27 ListOfInteger from BOPCol,
28 BaseAllocator from BOPCol,
30 ListOfPaveBlock from BOPDS
36 returns CommonBlock from BOPDS;
41 Create (theAllocator: BaseAllocator from BOPCol)
42 returns CommonBlock from BOPDS;
45 --- <theAllocator> - the allocator to manage the memory
48 AddPaveBlock(me:mutable;
49 aPB : PaveBlock from BOPDS);
52 --- Adds the pave block <aPB> to the list of pave blocks
53 --- of the common block
55 AddPaveBlocks(me:mutable;
56 aLPB:ListOfPaveBlock from BOPDS);
59 --- Adds the list of pave blocks <aLPB>
60 --- to the list of pave blocks
61 --- of the common block
64 aF : Integer from Standard);
67 --- Adds the index of the face <aF>
68 --- to the list of indices of faces
69 --- of the common block
72 aLF:ListOfInteger from BOPCol);
75 --- Adds the list of indices of faces <aLF>
76 --- to the list of indices of faces
77 --- of the common block
80 returns ListOfPaveBlock from BOPDS;
81 ---C++: return const &
84 --- Returns the list of pave blocks
85 --- of the common block
88 returns ListOfInteger from BOPCol;
89 ---C++: return const &
92 --- Returns the list of indices of faces
93 --- of the common block
96 returns PaveBlock from BOPDS;
97 ---C++: return const &
100 --- Returns the first pave block
101 --- of the common block
103 PaveBlockOnEdge (me:mutable;
104 theIndex: Integer from Standard)
105 returns PaveBlock from BOPDS;
109 --- Returns the pave block that belongs
110 --- to the edge with index <theIx>
112 IsPaveBlockOnFace (me;
113 theIndex: Integer from Standard)
114 returns Boolean from Standard;
117 --- Returns true if the common block contains
118 -- a pave block that belongs
119 --- to the face with index <theIx>
121 IsPaveBlockOnEdge (me;
122 theIndex: Integer from Standard)
123 returns Boolean from Standard;
126 --- Returns true if the common block contains
127 -- a pave block that belongs
128 --- to the edge with index <theIx>
131 thePB:PaveBlock from BOPDS)
132 returns Boolean from Standard;
135 --- Returns true if the common block contains
136 -- a pave block that is equal to <thePB>
139 theF: Integer from Standard)
140 returns Boolean from Standard;
143 --- Returns true if the common block contains
144 -- the face with index equal to <theF>
147 theEdge:Integer from Standard);
150 --- Assign the index <theEdge> as the edge index
151 --- to all pave blocks of the common block
154 returns Integer from Standard;
157 --- Returns the index of the edge
158 --- of all pave blocks of the common block
163 myPaveBlocks: ListOfPaveBlock from BOPDS is protected;
164 myFaces : ListOfInteger from BOPCol is protected;