1 // Created on: 1993-06-22
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRepSweep_Revol_HeaderFile
18 #define _BRepSweep_Revol_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <BRepSweep_Rotation.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_Real.hxx>
27 class Standard_ConstructionError;
31 class TopLoc_Location;
34 //! Provides natural constructors to build BRepSweep
35 //! rotated swept Primitives.
43 //! Builds the Revol of meridian S axis A and angle D. If
44 //! C is true S is copied.
45 Standard_EXPORT BRepSweep_Revol(const TopoDS_Shape& S, const gp_Ax1& A, const Standard_Real D, const Standard_Boolean C = Standard_False);
47 //! Builds the Revol of meridian S axis A and angle 2*Pi.
48 //! If C is true S is copied.
49 Standard_EXPORT BRepSweep_Revol(const TopoDS_Shape& S, const gp_Ax1& A, const Standard_Boolean C = Standard_False);
51 //! Returns the TopoDS Shape attached to the Revol.
52 Standard_EXPORT TopoDS_Shape Shape();
54 //! Returns the TopoDS Shape generated with aGenS
55 //! (subShape of the generating shape).
56 Standard_EXPORT TopoDS_Shape Shape (const TopoDS_Shape& aGenS);
58 //! Returns the first shape of the revol (coinciding with
59 //! the generating shape).
60 Standard_EXPORT TopoDS_Shape FirstShape();
62 //! Returns the first shape of the revol (coinciding with
63 //! the generating shape).
64 Standard_EXPORT TopoDS_Shape FirstShape (const TopoDS_Shape& aGenS);
66 //! Returns the TopoDS Shape of the top of the prism.
67 Standard_EXPORT TopoDS_Shape LastShape();
69 //! Returns the TopoDS Shape of the top of the prism.
70 //! generated with aGenS (subShape of the generating
72 Standard_EXPORT TopoDS_Shape LastShape (const TopoDS_Shape& aGenS);
75 Standard_EXPORT gp_Ax1 Axe() const;
77 //! returns the angle.
78 Standard_EXPORT Standard_Real Angle() const;
80 //! Returns true if the aGenS is used in resulting Shape
81 Standard_EXPORT Standard_Boolean IsUsed(const TopoDS_Shape& aGenS) const;
86 //! builds the NumShape.
87 Standard_EXPORT Sweep_NumShape NumShape (const Standard_Real D) const;
89 //! Builds the Location
90 Standard_EXPORT TopLoc_Location Location (const gp_Ax1& Ax, const Standard_Real D) const;
93 Standard_EXPORT gp_Ax1 Axe (const gp_Ax1& Ax, const Standard_Real D) const;
95 //! computes the angle.
96 Standard_EXPORT Standard_Real Angle (const Standard_Real D) const;
99 BRepSweep_Rotation myRotation;
104 #endif // _BRepSweep_Revol_HeaderFile