CR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]
[occt.git] / src / BRepSweep / BRepSweep_Revol.hxx
CommitLineData
42cf5bc1 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
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 _BRepSweep_Revol_HeaderFile
18#define _BRepSweep_Revol_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <BRepSweep_Rotation.hxx>
42cf5bc1 25#include <Standard_Boolean.hxx>
26#include <Standard_Real.hxx>
42cf5bc1 27class TopoDS_Shape;
28class gp_Ax1;
29class Sweep_NumShape;
30class TopLoc_Location;
31
32
33//! Provides natural constructors to build BRepSweep
34//! rotated swept Primitives.
35class BRepSweep_Revol
36{
37public:
38
39 DEFINE_STANDARD_ALLOC
40
41
42 //! Builds the Revol of meridian S axis A and angle D. If
43 //! C is true S is copied.
09324e85 44 Standard_EXPORT BRepSweep_Revol(const TopoDS_Shape& S, const gp_Ax1& A, const Standard_Real D, const Standard_Boolean C = Standard_False);
42cf5bc1 45
46 //! Builds the Revol of meridian S axis A and angle 2*Pi.
47 //! If C is true S is copied.
48 Standard_EXPORT BRepSweep_Revol(const TopoDS_Shape& S, const gp_Ax1& A, const Standard_Boolean C = Standard_False);
49
50 //! Returns the TopoDS Shape attached to the Revol.
51 Standard_EXPORT TopoDS_Shape Shape();
52
53 //! Returns the TopoDS Shape generated with aGenS
54 //! (subShape of the generating shape).
55 Standard_EXPORT TopoDS_Shape Shape (const TopoDS_Shape& aGenS);
56
57 //! Returns the first shape of the revol (coinciding with
58 //! the generating shape).
59 Standard_EXPORT TopoDS_Shape FirstShape();
60
61 //! Returns the first shape of the revol (coinciding with
62 //! the generating shape).
63 Standard_EXPORT TopoDS_Shape FirstShape (const TopoDS_Shape& aGenS);
64
65 //! Returns the TopoDS Shape of the top of the prism.
66 Standard_EXPORT TopoDS_Shape LastShape();
67
68 //! Returns the TopoDS Shape of the top of the prism.
69 //! generated with aGenS (subShape of the generating
70 //! shape).
71 Standard_EXPORT TopoDS_Shape LastShape (const TopoDS_Shape& aGenS);
72
73 //! returns the axis
74 Standard_EXPORT gp_Ax1 Axe() const;
75
76 //! returns the angle.
09324e85 77 Standard_EXPORT Standard_Real Angle() const;
42cf5bc1 78
80eeb3ce 79 //! Returns true if the aGenS is used in resulting Shape
80 Standard_EXPORT Standard_Boolean IsUsed(const TopoDS_Shape& aGenS) const;
81
82
42cf5bc1 83private:
84
42cf5bc1 85 //! builds the NumShape.
86 Standard_EXPORT Sweep_NumShape NumShape (const Standard_Real D) const;
87
88 //! Builds the Location
89 Standard_EXPORT TopLoc_Location Location (const gp_Ax1& Ax, const Standard_Real D) const;
90
91 //! Builds the axis
92 Standard_EXPORT gp_Ax1 Axe (const gp_Ax1& Ax, const Standard_Real D) const;
93
94 //! computes the angle.
95 Standard_EXPORT Standard_Real Angle (const Standard_Real D) const;
96
97
98 BRepSweep_Rotation myRotation;
99
100
101};
102
42cf5bc1 103#endif // _BRepSweep_Revol_HeaderFile