Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:05

0001 // Created by: Peter KURNEV
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef BOPTools_ConnexityBlock_HeaderFile
0016 #define BOPTools_ConnexityBlock_HeaderFile
0017 
0018 #include <NCollection_BaseAllocator.hxx>
0019 #include <TopTools_ListOfShape.hxx>
0020 
0021 //=======================================================================
0022 //class : ConnexityBlock
0023 //purpose  : 
0024 //=======================================================================
0025 class BOPTools_ConnexityBlock {
0026  public:
0027   BOPTools_ConnexityBlock()    : 
0028     myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
0029     myRegular(Standard_True),
0030     myShapes(myAllocator),
0031     myLoops(myAllocator)    {
0032   };
0033   //
0034   BOPTools_ConnexityBlock(const Handle(NCollection_BaseAllocator)& theAllocator):
0035     myAllocator(theAllocator),  
0036     myRegular(Standard_True),
0037     myShapes(myAllocator),
0038     myLoops(myAllocator)  {
0039   };
0040   //
0041   const TopTools_ListOfShape& Shapes()const {
0042     return myShapes;
0043   };
0044   //
0045   TopTools_ListOfShape& ChangeShapes() {
0046     return myShapes;
0047   };
0048   //
0049   void SetRegular(const Standard_Boolean theFlag) {
0050     myRegular=theFlag;
0051   }
0052   //
0053   Standard_Boolean IsRegular()const {
0054     return myRegular;
0055   }
0056   //
0057   const TopTools_ListOfShape& Loops()const {
0058     return myLoops;
0059   };
0060   //
0061   TopTools_ListOfShape& ChangeLoops() {
0062     return myLoops;
0063   };
0064   //
0065  protected:
0066   Handle(NCollection_BaseAllocator) myAllocator;
0067   Standard_Boolean myRegular;
0068   TopTools_ListOfShape myShapes;
0069   TopTools_ListOfShape myLoops;
0070 };
0071 
0072 
0073 #endif