0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / BRepFill / BRepFill_Generator.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-03-07
2// Created by: Joelle CHAUVET
3// Copyright (c) 1994-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 _BRepFill_Generator_HeaderFile
18#define _BRepFill_Generator_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TopTools_SequenceOfShape.hxx>
25#include <TopoDS_Shell.hxx>
26#include <TopTools_DataMapOfShapeListOfShape.hxx>
27#include <TopTools_ListOfShape.hxx>
28class TopoDS_Wire;
29class TopoDS_Shell;
30class TopoDS_Shape;
31
32
33//! Compute a topological surface ( a shell) using
34//! generating wires. The face of the shell will be
35//! ruled surfaces passing by the wires.
36//! The wires must have the same number of edges.
37class BRepFill_Generator
38{
39public:
40
41 DEFINE_STANDARD_ALLOC
42
43
44 Standard_EXPORT BRepFill_Generator();
45
46 Standard_EXPORT void AddWire (const TopoDS_Wire& Wire);
47
48 //! Compute the shell.
49 Standard_EXPORT void Perform();
50
51 const TopoDS_Shell& Shell() const;
52
53 //! Returns all the shapes created
54 Standard_EXPORT const TopTools_DataMapOfShapeListOfShape& Generated() const;
55
56 //! Returns the shapes created from a subshape
57 //! <SSection> of a section.
58 Standard_EXPORT const TopTools_ListOfShape& GeneratedShapes (const TopoDS_Shape& SSection) const;
59
60
61
62
63protected:
64
65
66
67
68
69private:
70
71
72
73 TopTools_SequenceOfShape myWires;
74 TopoDS_Shell myShell;
75 TopTools_DataMapOfShapeListOfShape myMap;
76
77
78};
79
80
81#include <BRepFill_Generator.lxx>
82
83
84
85
86
87#endif // _BRepFill_Generator_HeaderFile