0024002: Overall code and build procedure refactoring -- automatic
[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>
19#include <BOPCol_ListOfShape.hxx>
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 //
41 const BOPCol_ListOfShape& Shapes()const {
42 return myShapes;
43 };
44 //
45 BOPCol_ListOfShape& ChangeShapes() {
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 //
57 const BOPCol_ListOfShape& Loops()const {
58 return myLoops;
59 };
60 //
61 BOPCol_ListOfShape& ChangeLoops() {
62 return myLoops;
63 };
64 //
65 protected:
4e57c75e 66 Handle(NCollection_BaseAllocator) myAllocator;
eafb234b 67 Standard_Boolean myRegular;
4e57c75e 68 BOPCol_ListOfShape myShapes;
69 BOPCol_ListOfShape myLoops;
70};
71
72
73#endif