42cf5bc1 |
1 | // Created on: 1992-10-08 |
2 | // Created by: Isabelle GRIGNON |
3 | // Copyright (c) 1992-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 | |
6b84c3f7 |
17 | #ifndef _GeomAdaptor_HSurfaceOfLinearExtrusion_HeaderFile |
18 | #define _GeomAdaptor_HSurfaceOfLinearExtrusion_HeaderFile |
42cf5bc1 |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
6b84c3f7 |
23 | #include <GeomAdaptor_SurfaceOfLinearExtrusion.hxx> |
42cf5bc1 |
24 | #include <Adaptor3d_HSurface.hxx> |
25 | class Standard_OutOfRange; |
26 | class Standard_NoSuchObject; |
27 | class Standard_DomainError; |
6b84c3f7 |
28 | class GeomAdaptor_SurfaceOfLinearExtrusion; |
42cf5bc1 |
29 | class Adaptor3d_Surface; |
30 | |
31 | |
6b84c3f7 |
32 | class GeomAdaptor_HSurfaceOfLinearExtrusion; |
33 | DEFINE_STANDARD_HANDLE(GeomAdaptor_HSurfaceOfLinearExtrusion, Adaptor3d_HSurface) |
42cf5bc1 |
34 | |
35 | |
6b84c3f7 |
36 | class GeomAdaptor_HSurfaceOfLinearExtrusion : public Adaptor3d_HSurface |
42cf5bc1 |
37 | { |
38 | |
39 | public: |
40 | |
41 | |
36b9ff75 |
42 | //! Creates an empty GenHSurface. |
6b84c3f7 |
43 | Standard_EXPORT GeomAdaptor_HSurfaceOfLinearExtrusion(); |
42cf5bc1 |
44 | |
36b9ff75 |
45 | //! Creates a GenHSurface from a Surface. |
6b84c3f7 |
46 | Standard_EXPORT GeomAdaptor_HSurfaceOfLinearExtrusion(const GeomAdaptor_SurfaceOfLinearExtrusion& S); |
42cf5bc1 |
47 | |
36b9ff75 |
48 | //! Sets the field of the GenHSurface. |
6b84c3f7 |
49 | Standard_EXPORT void Set (const GeomAdaptor_SurfaceOfLinearExtrusion& S); |
42cf5bc1 |
50 | |
36b9ff75 |
51 | //! Returns a reference to the Surface inside the HSurface. |
52 | //! This is redefined from HSurface, cannot be inline. |
79104795 |
53 | Standard_EXPORT const Adaptor3d_Surface& Surface() const Standard_OVERRIDE; |
42cf5bc1 |
54 | |
36b9ff75 |
55 | //! Returns the surface used to create the GenHSurface. |
6b84c3f7 |
56 | GeomAdaptor_SurfaceOfLinearExtrusion& ChangeSurface(); |
42cf5bc1 |
57 | |
58 | |
59 | |
60 | |
92efcf78 |
61 | DEFINE_STANDARD_RTTI_INLINE(GeomAdaptor_HSurfaceOfLinearExtrusion,Adaptor3d_HSurface) |
42cf5bc1 |
62 | |
63 | protected: |
64 | |
65 | |
6b84c3f7 |
66 | GeomAdaptor_SurfaceOfLinearExtrusion mySurf; |
42cf5bc1 |
67 | |
68 | |
69 | private: |
70 | |
71 | |
72 | |
73 | |
74 | }; |
75 | |
6b84c3f7 |
76 | #define TheSurface GeomAdaptor_SurfaceOfLinearExtrusion |
77 | #define TheSurface_hxx <GeomAdaptor_SurfaceOfLinearExtrusion.hxx> |
78 | #define Adaptor3d_GenHSurface GeomAdaptor_HSurfaceOfLinearExtrusion |
79 | #define Adaptor3d_GenHSurface_hxx <GeomAdaptor_HSurfaceOfLinearExtrusion.hxx> |
80 | #define Handle_Adaptor3d_GenHSurface Handle(GeomAdaptor_HSurfaceOfLinearExtrusion) |
42cf5bc1 |
81 | |
82 | #include <Adaptor3d_GenHSurface.lxx> |
83 | |
84 | #undef TheSurface |
85 | #undef TheSurface_hxx |
86 | #undef Adaptor3d_GenHSurface |
87 | #undef Adaptor3d_GenHSurface_hxx |
88 | #undef Handle_Adaptor3d_GenHSurface |
89 | |
90 | |
91 | |
92 | |
6b84c3f7 |
93 | #endif // _GeomAdaptor_HSurfaceOfLinearExtrusion_HeaderFile |