0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / BOPTools / BOPTools_ConnexityBlock.hxx
1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
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.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #ifndef BOPTools_ConnexityBlock_HeaderFile
16 #define BOPTools_ConnexityBlock_HeaderFile
17
18 #include <NCollection_BaseAllocator.hxx>
19 #include <TopTools_ListOfShape.hxx>
20
21 //=======================================================================
22 //class : ConnexityBlock
23 //purpose  : 
24 //=======================================================================
25 class 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):
35         myAllocator(theAllocator),  
36         myRegular(Standard_True),
37     myShapes(myAllocator),
38     myLoops(myAllocator)  {
39   };
40   //
41   const TopTools_ListOfShape& Shapes()const {
42     return myShapes;
43   };
44   //
45   TopTools_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 TopTools_ListOfShape& Loops()const {
58     return myLoops;
59   };
60   //
61   TopTools_ListOfShape& ChangeLoops() {
62     return myLoops;
63   };
64   //
65  protected:
66   Handle(NCollection_BaseAllocator) myAllocator;
67   Standard_Boolean myRegular;
68   TopTools_ListOfShape myShapes;
69   TopTools_ListOfShape myLoops;
70 };
71
72
73 #endif