File indexing completed on 2026-05-12 08:46:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef _BOPAlgo_BuilderArea_HeaderFile
0019 #define _BOPAlgo_BuilderArea_HeaderFile
0020
0021 #include <Standard.hxx>
0022 #include <Standard_DefineAlloc.hxx>
0023 #include <Standard_Handle.hxx>
0024
0025 #include <BOPAlgo_Algo.hxx>
0026 #include <NCollection_BaseAllocator.hxx>
0027 #include <TopTools_ListOfShape.hxx>
0028 #include <TopTools_IndexedMapOfOrientedShape.hxx>
0029 class IntTools_Context;
0030
0031
0032
0033 class BOPAlgo_BuilderArea : public BOPAlgo_Algo
0034 {
0035 public:
0036 DEFINE_STANDARD_ALLOC
0037
0038
0039 void SetContext(const Handle(IntTools_Context)& theContext) { myContext = theContext; }
0040
0041
0042 const TopTools_ListOfShape& Shapes() const { return myShapes; }
0043
0044
0045 void SetShapes(const TopTools_ListOfShape& theLS) { myShapes = theLS; }
0046
0047
0048 const TopTools_ListOfShape& Loops() const { return myLoops; }
0049
0050
0051 const TopTools_ListOfShape& Areas() const { return myAreas; }
0052
0053
0054
0055 void SetAvoidInternalShapes(const Standard_Boolean theAvoidInternal)
0056 {
0057 myAvoidInternalShapes = theAvoidInternal;
0058 }
0059
0060
0061 Standard_Boolean IsAvoidInternalShapes() const { return myAvoidInternalShapes; }
0062
0063 protected:
0064 Standard_EXPORT BOPAlgo_BuilderArea();
0065 Standard_EXPORT virtual ~BOPAlgo_BuilderArea();
0066
0067 Standard_EXPORT BOPAlgo_BuilderArea(const Handle(NCollection_BaseAllocator)& theAllocator);
0068
0069 virtual void PerformShapesToAvoid(const Message_ProgressRange& theRange) = 0;
0070
0071 virtual void PerformLoops(const Message_ProgressRange& theRange) = 0;
0072
0073 virtual void PerformAreas(const Message_ProgressRange& theRange) = 0;
0074
0075 virtual void PerformInternalShapes(const Message_ProgressRange& theRange) = 0;
0076
0077 Handle(IntTools_Context) myContext;
0078 TopTools_ListOfShape myShapes;
0079 TopTools_ListOfShape myLoops;
0080 TopTools_ListOfShape myLoopsInternal;
0081 TopTools_ListOfShape myAreas;
0082 TopTools_IndexedMapOfOrientedShape myShapesToAvoid;
0083 Standard_Boolean myAvoidInternalShapes;
0084
0085 private:
0086 };
0087
0088 #endif