0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / BRepPrimAPI / BRepPrimAPI_MakeSweep.hxx
1 // Created on: 1994-02-18
2 // Created by: Remi LEQUETTE
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 _BRepPrimAPI_MakeSweep_HeaderFile
18 #define _BRepPrimAPI_MakeSweep_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <BRepBuilderAPI_MakeShape.hxx>
25 class TopoDS_Shape;
26
27
28 //! The abstract class MakeSweep is
29 //! the root class of swept primitives.
30 //! Sweeps are objects you obtain by sweeping a profile along a path.
31 //! The profile can be any topology and the path is usually a curve or
32 //! a wire. The profile generates objects according to the following rules:
33 //! -      Vertices generate Edges
34 //! -      Edges generate Faces.
35 //! -      Wires generate Shells.
36 //! -      Faces generate Solids.
37 //! -      Shells generate Composite  Solids.
38 //! You are not allowed to sweep Solids and Composite Solids.
39 //! Two kinds of sweeps are implemented in the BRepPrimAPI package:
40 //! -      The linear sweep called a   Prism
41 //! -      The rotational sweep    called a Revol
42 //! Swept constructions along complex profiles such as BSpline curves
43 //! are also available in the BRepOffsetAPI package..
44 class BRepPrimAPI_MakeSweep  : public BRepBuilderAPI_MakeShape
45 {
46 public:
47
48   DEFINE_STANDARD_ALLOC
49
50   
51   //! Returns the  TopoDS  Shape of the bottom of the sweep.
52   Standard_EXPORT virtual TopoDS_Shape FirstShape() = 0;
53   
54   //! Returns the TopoDS Shape of the top of the sweep.
55   Standard_EXPORT virtual TopoDS_Shape LastShape() = 0;
56
57
58
59
60 protected:
61
62
63
64
65
66 private:
67
68
69
70
71
72 };
73
74
75
76
77
78
79
80 #endif // _BRepPrimAPI_MakeSweep_HeaderFile