0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / src / BOPTools / BOPTools_ConnexityBlock.hxx
CommitLineData
4e57c75e 1// Created by: Peter KURNEV
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
4e57c75e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
4e57c75e 5//
d5f74e42 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
973c2be1 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.
4e57c75e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
4e57c75e 14
15#ifndef BOPTools_ConnexityBlock_HeaderFile
16#define BOPTools_ConnexityBlock_HeaderFile
17
4e57c75e 18#include <NCollection_BaseAllocator.hxx>
1155d05a 19#include <TopTools_ListOfShape.hxx>
4e57c75e 20
21//=======================================================================
22//class : ConnexityBlock
23//purpose :
24//=======================================================================
25class BOPTools_ConnexityBlock {
26 public:
27 BOPTools_ConnexityBlock() :
28 myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
29 myRegular(Standard_True),
30 myShapes(myAllocator),
31 myLoops(myAllocator) {
32 };
33 //
34 BOPTools_ConnexityBlock(const Handle(NCollection_BaseAllocator)& theAllocator):
2f6cb3ac 35 myAllocator(theAllocator),
36 myRegular(Standard_True),
4e57c75e 37 myShapes(myAllocator),
38 myLoops(myAllocator) {
39 };
40 //
1155d05a 41 const TopTools_ListOfShape& Shapes()const {
4e57c75e 42 return myShapes;
43 };
44 //
1155d05a 45 TopTools_ListOfShape& ChangeShapes() {
4e57c75e 46 return myShapes;
47 };
48 //
49 void SetRegular(const Standard_Boolean theFlag) {
50 myRegular=theFlag;
51 }
52 //
53 Standard_Boolean IsRegular()const {
54 return myRegular;
55 }
56 //
1155d05a 57 const TopTools_ListOfShape& Loops()const {
4e57c75e 58 return myLoops;
59 };
60 //
1155d05a 61 TopTools_ListOfShape& ChangeLoops() {
4e57c75e 62 return myLoops;
63 };
64 //
65 protected:
4e57c75e 66 Handle(NCollection_BaseAllocator) myAllocator;
eafb234b 67 Standard_Boolean myRegular;
1155d05a 68 TopTools_ListOfShape myShapes;
69 TopTools_ListOfShape myLoops;
4e57c75e 70};
71
72
73#endif