42cf5bc1 |
1 | // Created on: 1996-08-27 |
2 | // Created by: Philippe MANGIN |
3 | // Copyright (c) 1996-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 _AppBlend_Approx_HeaderFile |
18 | #define _AppBlend_Approx_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
42cf5bc1 |
25 | #include <TColgp_Array2OfPnt.hxx> |
26 | #include <TColStd_Array2OfReal.hxx> |
27 | #include <TColStd_Array1OfReal.hxx> |
28 | #include <TColStd_Array1OfInteger.hxx> |
29 | #include <TColgp_Array1OfPnt2d.hxx> |
42cf5bc1 |
30 | |
31 | |
32 | //! Bspline approximation of a surface. |
33 | class AppBlend_Approx |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
40 | Standard_EXPORT virtual Standard_Boolean IsDone() const = 0; |
41 | |
42 | Standard_EXPORT virtual void SurfShape (Standard_Integer& UDegree, Standard_Integer& VDegree, Standard_Integer& NbUPoles, Standard_Integer& NbVPoles, Standard_Integer& NbUKnots, Standard_Integer& NbVKnots) const = 0; |
43 | |
44 | Standard_EXPORT virtual void Surface (TColgp_Array2OfPnt& TPoles, TColStd_Array2OfReal& TWeights, TColStd_Array1OfReal& TUKnots, TColStd_Array1OfReal& TVKnots, TColStd_Array1OfInteger& TUMults, TColStd_Array1OfInteger& TVMults) const = 0; |
45 | |
46 | Standard_EXPORT virtual Standard_Integer UDegree() const = 0; |
47 | |
48 | Standard_EXPORT virtual Standard_Integer VDegree() const = 0; |
49 | |
50 | Standard_EXPORT virtual const TColgp_Array2OfPnt& SurfPoles() const = 0; |
51 | |
52 | Standard_EXPORT virtual const TColStd_Array2OfReal& SurfWeights() const = 0; |
53 | |
54 | Standard_EXPORT virtual const TColStd_Array1OfReal& SurfUKnots() const = 0; |
55 | |
56 | Standard_EXPORT virtual const TColStd_Array1OfReal& SurfVKnots() const = 0; |
57 | |
58 | Standard_EXPORT virtual const TColStd_Array1OfInteger& SurfUMults() const = 0; |
59 | |
60 | Standard_EXPORT virtual const TColStd_Array1OfInteger& SurfVMults() const = 0; |
61 | |
62 | Standard_EXPORT virtual Standard_Integer NbCurves2d() const = 0; |
63 | |
64 | Standard_EXPORT virtual void Curves2dShape (Standard_Integer& Degree, Standard_Integer& NbPoles, Standard_Integer& NbKnots) const = 0; |
65 | |
66 | Standard_EXPORT virtual void Curve2d (const Standard_Integer Index, TColgp_Array1OfPnt2d& TPoles, TColStd_Array1OfReal& TKnots, TColStd_Array1OfInteger& TMults) const = 0; |
67 | |
68 | Standard_EXPORT virtual Standard_Integer Curves2dDegree() const = 0; |
69 | |
70 | Standard_EXPORT virtual const TColgp_Array1OfPnt2d& Curve2dPoles (const Standard_Integer Index) const = 0; |
71 | |
72 | Standard_EXPORT virtual const TColStd_Array1OfReal& Curves2dKnots() const = 0; |
73 | |
74 | Standard_EXPORT virtual const TColStd_Array1OfInteger& Curves2dMults() const = 0; |
75 | |
76 | Standard_EXPORT virtual void TolReached (Standard_Real& Tol3d, Standard_Real& Tol2d) const = 0; |
77 | |
78 | Standard_EXPORT virtual Standard_Real TolCurveOnSurf (const Standard_Integer Index) const = 0; |
79 | Standard_EXPORT virtual ~AppBlend_Approx(); |
80 | |
81 | |
82 | |
83 | |
84 | protected: |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | private: |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | }; |
97 | |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | #endif // _AppBlend_Approx_HeaderFile |