0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / Adaptor3d / Adaptor3d_HSurface.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-02-14
2// Created by: model
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 _Adaptor3d_HSurface_HeaderFile
18#define _Adaptor3d_HSurface_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <MMgt_TShared.hxx>
24#include <Standard_Real.hxx>
25#include <GeomAbs_Shape.hxx>
26#include <Standard_Integer.hxx>
27#include <TColStd_Array1OfReal.hxx>
28#include <Standard_Boolean.hxx>
29#include <gp_Pnt.hxx>
30#include <gp_Vec.hxx>
31#include <GeomAbs_SurfaceType.hxx>
32#include <gp_Pln.hxx>
33#include <gp_Cylinder.hxx>
34#include <gp_Cone.hxx>
35#include <gp_Sphere.hxx>
36#include <gp_Torus.hxx>
37#include <gp_Ax1.hxx>
38#include <gp_Dir.hxx>
39class Standard_OutOfRange;
40class Standard_NoSuchObject;
41class Standard_DomainError;
42class Standard_NotImplemented;
43class Adaptor3d_Surface;
44class gp_Pnt;
45class gp_Vec;
46class Geom_BezierSurface;
47class Geom_BSplineSurface;
48class Adaptor3d_HCurve;
49
50
51class Adaptor3d_HSurface;
52DEFINE_STANDARD_HANDLE(Adaptor3d_HSurface, MMgt_TShared)
53
54//! Root class for surfaces manipulated by handles, on
55//! which geometric algorithms work.
56//! An adapted surface is an interface between the
57//! services provided by a surface and those required of
58//! the surface by algorithms which use it.
59//! A derived concrete class is provided:
60//! GeomAdaptor_HSurface for a surface from the Geom package.
61class Adaptor3d_HSurface : public MMgt_TShared
62{
63
64public:
65
66
67 //! Returns a reference to the Surface inside the HSurface.
68 Standard_EXPORT virtual const Adaptor3d_Surface& Surface() const = 0;
69
70 Standard_Real FirstUParameter() const;
71
72 Standard_Real LastUParameter() const;
73
74 Standard_Real FirstVParameter() const;
75
76 Standard_Real LastVParameter() const;
77
78 GeomAbs_Shape UContinuity() const;
79
80 GeomAbs_Shape VContinuity() const;
81
82 Standard_Integer NbUIntervals (const GeomAbs_Shape S) const;
83
84 Standard_Integer NbVIntervals (const GeomAbs_Shape S) const;
85
86 void UIntervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const;
87
88 void VIntervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const;
89
90 Handle(Adaptor3d_HSurface) UTrim (const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const;
91
92 Handle(Adaptor3d_HSurface) VTrim (const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const;
93
94 Standard_Boolean IsUClosed() const;
95
96 Standard_Boolean IsVClosed() const;
97
98 Standard_Boolean IsUPeriodic() const;
99
100 Standard_Real UPeriod() const;
101
102 Standard_Boolean IsVPeriodic() const;
103
104 Standard_Real VPeriod() const;
105
106 gp_Pnt Value (const Standard_Real U, const Standard_Real V) const;
107
108 void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const;
109
110 void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const;
111
112 void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const;
113
114 void D3 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const;
115
116 gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const;
117
118 Standard_Real UResolution (const Standard_Real R3d) const;
119
120 Standard_Real VResolution (const Standard_Real R3d) const;
121
122 GeomAbs_SurfaceType GetType() const;
123
124 gp_Pln Plane() const;
125
126 gp_Cylinder Cylinder() const;
127
128 gp_Cone Cone() const;
129
130 gp_Sphere Sphere() const;
131
132 gp_Torus Torus() const;
133
134 Standard_Integer UDegree() const;
135
136 Standard_Integer NbUPoles() const;
137
138 Standard_Integer VDegree() const;
139
140 Standard_Integer NbVPoles() const;
141
142 Standard_Integer NbUKnots() const;
143
144 Standard_Integer NbVKnots() const;
145
146 Standard_Boolean IsURational() const;
147
148 Standard_Boolean IsVRational() const;
149
150 Handle(Geom_BezierSurface) Bezier() const;
151
152 Handle(Geom_BSplineSurface) BSpline() const;
153
154 gp_Ax1 AxeOfRevolution() const;
155
156 gp_Dir Direction() const;
157
158 Handle(Adaptor3d_HCurve) BasisCurve() const;
159
160 Handle(Adaptor3d_HSurface) BasisSurface() const;
161
162 Standard_Real OffsetValue() const;
163
164
165
166
167 DEFINE_STANDARD_RTTI(Adaptor3d_HSurface,MMgt_TShared)
168
169protected:
170
171
172
173
174private:
175
176
177
178
179};
180
181
182#include <Adaptor3d_HSurface.lxx>
183
184
185
186
187
188#endif // _Adaptor3d_HSurface_HeaderFile