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 #ifndef BOPTools_ConnexityBlock_HeaderFile
16 #define BOPTools_ConnexityBlock_HeaderFile
18 #include <NCollection_BaseAllocator.hxx>
19 #include <BOPCol_ListOfShape.hxx>
21 //=======================================================================
22 //class : ConnexityBlock
24 //=======================================================================
25 class BOPTools_ConnexityBlock {
27 BOPTools_ConnexityBlock() :
28 myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
29 myRegular(Standard_True),
30 myShapes(myAllocator),
31 myLoops(myAllocator) {
34 BOPTools_ConnexityBlock(const Handle(NCollection_BaseAllocator)& theAllocator):
35 myAllocator(theAllocator),
36 myRegular(Standard_True),
37 myShapes(myAllocator),
38 myLoops(myAllocator) {
41 const BOPCol_ListOfShape& Shapes()const {
45 BOPCol_ListOfShape& ChangeShapes() {
49 void SetRegular(const Standard_Boolean theFlag) {
53 Standard_Boolean IsRegular()const {
57 const BOPCol_ListOfShape& Loops()const {
61 BOPCol_ListOfShape& ChangeLoops() {
66 Handle(NCollection_BaseAllocator) myAllocator;
67 Standard_Boolean myRegular;
68 BOPCol_ListOfShape myShapes;
69 BOPCol_ListOfShape myLoops;