0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / BOPAlgo / BOPAlgo_BuilderArea.hxx
CommitLineData
42cf5bc1 1// Created by: Peter KURNEV
2// Copyright (c) 2010-2014 OPEN CASCADE SAS
3// Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4// Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5// EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6//
7// This file is part of Open CASCADE Technology software library.
8//
9// This library is free software; you can redistribute it and/or modify it under
10// the terms of the GNU Lesser General Public License version 2.1 as published
11// by the Free Software Foundation, with special exception defined in the file
12// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13// distribution for complete text of the license and disclaimer of any warranty.
14//
15// Alternatively, this file may be used under the terms of Open CASCADE
16// commercial license or contractual agreement.
17
18#ifndef _BOPAlgo_BuilderArea_HeaderFile
19#define _BOPAlgo_BuilderArea_HeaderFile
20
21#include <Standard.hxx>
22#include <Standard_DefineAlloc.hxx>
23#include <Standard_Handle.hxx>
24
25#include <BOPCol_ListOfShape.hxx>
26#include <BOPCol_MapOfOrientedShape.hxx>
27#include <BOPAlgo_Algo.hxx>
28#include <BOPCol_BaseAllocator.hxx>
29class IntTools_Context;
30
31
32//! The root class for algorithms to build
33//! faces/solids from set of edges/faces
34class BOPAlgo_BuilderArea : public BOPAlgo_Algo
35{
36public:
37
38 DEFINE_STANDARD_ALLOC
39
40
41 Standard_EXPORT void SetContext (const Handle(IntTools_Context)& theContext);
42
43 Standard_EXPORT const BOPCol_ListOfShape& Shapes() const;
44Standard_EXPORT void SetShapes(const BOPCol_ListOfShape& theLS);
45
46 Standard_EXPORT const BOPCol_ListOfShape& Loops() const;
47
48 Standard_EXPORT const BOPCol_ListOfShape& Areas() const;
49
50
51
52
53protected:
54
55
56 Standard_EXPORT BOPAlgo_BuilderArea();
57Standard_EXPORT virtual ~BOPAlgo_BuilderArea();
58
59 Standard_EXPORT BOPAlgo_BuilderArea(const BOPCol_BaseAllocator& theAllocator);
60
61 Standard_EXPORT virtual void PerformShapesToAvoid() = 0;
62
63 Standard_EXPORT virtual void PerformLoops() = 0;
64
65 Standard_EXPORT virtual void PerformAreas() = 0;
66
67 Standard_EXPORT virtual void PerformInternalShapes() = 0;
68
69
70 Handle(IntTools_Context) myContext;
71 BOPCol_ListOfShape myShapes;
72 BOPCol_ListOfShape myLoops;
73 BOPCol_ListOfShape myLoopsInternal;
74 BOPCol_ListOfShape myAreas;
75 BOPCol_MapOfOrientedShape myShapesToAvoid;
76
77
78private:
79
80
81
82
83
84};
85
86
87
88
89
90
91
92#endif // _BOPAlgo_BuilderArea_HeaderFile