0026912: CLang 3.6.2 compiler warning [-Winconsistent-missing-override]
[occt.git] / src / Geom / Geom_SweptSurface.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-03-10
2// Created by: JCV
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 _Geom_SweptSurface_HeaderFile
18#define _Geom_SweptSurface_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <gp_Dir.hxx>
24#include <GeomAbs_Shape.hxx>
25#include <Geom_Surface.hxx>
26class Geom_Curve;
27class gp_Dir;
28
29
30class Geom_SweptSurface;
31DEFINE_STANDARD_HANDLE(Geom_SweptSurface, Geom_Surface)
32
33//! Describes the common behavior for surfaces
34//! constructed by sweeping a curve with another curve.
35//! The Geom package provides two concrete derived
36//! surfaces: surface of revolution (a revolved surface),
37//! and surface of linear extrusion (an extruded surface).
38class Geom_SweptSurface : public Geom_Surface
39{
40
41public:
42
43
44
45 //! returns the continuity of the surface :
46 //! C0 : only geometric continuity,
47 //! C1 : continuity of the first derivative all along the surface,
48 //! C2 : continuity of the second derivative all along the surface,
49 //! C3 : continuity of the third derivative all along the surface,
50 //! G1 : tangency continuity all along the surface,
51 //! G2 : curvature continuity all along the surface,
52 //! CN : the order of continuity is infinite.
79104795 53 Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE;
42cf5bc1 54
55
56 //! Returns the reference direction of the swept surface.
57 //! For a surface of revolution it is the direction of the
58 //! revolution axis, for a surface of linear extrusion it is
59 //! the direction of extrusion.
60 Standard_EXPORT const gp_Dir& Direction() const;
61
62
63 //! Returns the referenced curve of the surface.
64 //! For a surface of revolution it is the revolution curve,
65 //! for a surface of linear extrusion it is the extruded curve.
66 Standard_EXPORT Handle(Geom_Curve) BasisCurve() const;
67
68
69
70
71 DEFINE_STANDARD_RTTI(Geom_SweptSurface,Geom_Surface)
72
73protected:
74
75
76 Handle(Geom_Curve) basisCurve;
77 gp_Dir direction;
78 GeomAbs_Shape smooth;
79
80
81private:
82
83
84
85
86};
87
88
89
90
91
92
93
94#endif // _Geom_SweptSurface_HeaderFile