0027067: Avoid use of virtual methods for implementation of destructors in legacy...
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_SolidBuilder.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-12-21
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1995-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _TopOpeBRepBuild_SolidBuilder_HeaderFile
18#define _TopOpeBRepBuild_SolidBuilder_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TopOpeBRepBuild_LoopSet.hxx>
25#include <TopOpeBRepBuild_BlockIterator.hxx>
26#include <TopOpeBRepBuild_BlockBuilder.hxx>
27#include <TopOpeBRepBuild_SolidAreaBuilder.hxx>
28#include <Standard_Boolean.hxx>
29#include <Standard_Integer.hxx>
30class TopOpeBRepBuild_ShellFaceSet;
31class TopoDS_Shape;
32class TopOpeBRepBuild_ShapeSet;
33
34
35
36class TopOpeBRepBuild_SolidBuilder
37{
38public:
39
40 DEFINE_STANDARD_ALLOC
41
42
43 Standard_EXPORT TopOpeBRepBuild_SolidBuilder();
44
45 //! Create a SolidBuilder to build the areas on
46 //! the shapes (shells, blocks of faces) described by <LS>.
47 Standard_EXPORT TopOpeBRepBuild_SolidBuilder(TopOpeBRepBuild_ShellFaceSet& FS, const Standard_Boolean ForceClass = Standard_False);
48
49 Standard_EXPORT void InitSolidBuilder (TopOpeBRepBuild_ShellFaceSet& FS, const Standard_Boolean ForceClass);
50
51 Standard_EXPORT Standard_Integer InitSolid();
52
53 Standard_EXPORT Standard_Boolean MoreSolid() const;
54
55 Standard_EXPORT void NextSolid();
56
57 Standard_EXPORT Standard_Integer InitShell();
58
59 Standard_EXPORT Standard_Boolean MoreShell() const;
60
61 Standard_EXPORT void NextShell();
62
63 Standard_EXPORT Standard_Boolean IsOldShell() const;
64
65 //! Returns current shell
66 //! This shell may be :
67 //! * an old shell OldShell(), which has not been reconstructed;
68 //! * a new shell made of faces described by ...NewFace() methods.
69 Standard_EXPORT const TopoDS_Shape& OldShell() const;
70
71 Standard_EXPORT Standard_Integer InitFace();
72
73 Standard_EXPORT Standard_Boolean MoreFace() const;
74
75 Standard_EXPORT void NextFace();
76
77 //! Returns current new face of current new shell.
78 Standard_EXPORT const TopoDS_Shape& Face() const;
79
80
81
82
83protected:
84
85
86
87
88
89private:
90
91
92 Standard_EXPORT void MakeLoops (TopOpeBRepBuild_ShapeSet& SS);
93
94
95 TopOpeBRepBuild_LoopSet myLoopSet;
96 TopOpeBRepBuild_BlockIterator myBlockIterator;
97 TopOpeBRepBuild_BlockBuilder myBlockBuilder;
98 TopOpeBRepBuild_SolidAreaBuilder mySolidAreaBuilder;
99
100
101};
102
103
104
105
106
107
108
109#endif // _TopOpeBRepBuild_SolidBuilder_HeaderFile