0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / AppBlend / AppBlend_Approx.hxx
CommitLineData
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>
25#include <Standard_Integer.hxx>
26#include <TColgp_Array2OfPnt.hxx>
27#include <TColStd_Array2OfReal.hxx>
28#include <TColStd_Array1OfReal.hxx>
29#include <TColStd_Array1OfInteger.hxx>
30#include <TColgp_Array1OfPnt2d.hxx>
31#include <Standard_Real.hxx>
32class StdFail_NotDone;
33class Standard_DomainError;
34class Standard_OutOfRange;
35
36
37//! Bspline approximation of a surface.
38class AppBlend_Approx
39{
40public:
41
42 DEFINE_STANDARD_ALLOC
43
44
45 Standard_EXPORT virtual Standard_Boolean IsDone() const = 0;
46
47 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;
48
49 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;
50
51 Standard_EXPORT virtual Standard_Integer UDegree() const = 0;
52
53 Standard_EXPORT virtual Standard_Integer VDegree() const = 0;
54
55 Standard_EXPORT virtual const TColgp_Array2OfPnt& SurfPoles() const = 0;
56
57 Standard_EXPORT virtual const TColStd_Array2OfReal& SurfWeights() const = 0;
58
59 Standard_EXPORT virtual const TColStd_Array1OfReal& SurfUKnots() const = 0;
60
61 Standard_EXPORT virtual const TColStd_Array1OfReal& SurfVKnots() const = 0;
62
63 Standard_EXPORT virtual const TColStd_Array1OfInteger& SurfUMults() const = 0;
64
65 Standard_EXPORT virtual const TColStd_Array1OfInteger& SurfVMults() const = 0;
66
67 Standard_EXPORT virtual Standard_Integer NbCurves2d() const = 0;
68
69 Standard_EXPORT virtual void Curves2dShape (Standard_Integer& Degree, Standard_Integer& NbPoles, Standard_Integer& NbKnots) const = 0;
70
71 Standard_EXPORT virtual void Curve2d (const Standard_Integer Index, TColgp_Array1OfPnt2d& TPoles, TColStd_Array1OfReal& TKnots, TColStd_Array1OfInteger& TMults) const = 0;
72
73 Standard_EXPORT virtual Standard_Integer Curves2dDegree() const = 0;
74
75 Standard_EXPORT virtual const TColgp_Array1OfPnt2d& Curve2dPoles (const Standard_Integer Index) const = 0;
76
77 Standard_EXPORT virtual const TColStd_Array1OfReal& Curves2dKnots() const = 0;
78
79 Standard_EXPORT virtual const TColStd_Array1OfInteger& Curves2dMults() const = 0;
80
81 Standard_EXPORT virtual void TolReached (Standard_Real& Tol3d, Standard_Real& Tol2d) const = 0;
82
83 Standard_EXPORT virtual Standard_Real TolCurveOnSurf (const Standard_Integer Index) const = 0;
84 Standard_EXPORT virtual ~AppBlend_Approx();
85
86
87
88
89protected:
90
91
92
93
94
95private:
96
97
98
99
100
101};
102
103
104
105
106
107
108
109#endif // _AppBlend_Approx_HeaderFile