0032630: Coding - get rid of unsused forward declarations [BinMDF to IFSelect]
[occt.git] / src / GeomLib / GeomLib_DenominatorMultiplier.hxx
1 // Created on: 1997-05-13
2 // Created by: Stagiaire Francois DUMONT
3 // Copyright (c) 1997-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 _GeomLib_DenominatorMultiplier_HeaderFile
18 #define _GeomLib_DenominatorMultiplier_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <TColStd_Array1OfReal.hxx>
25 #include <Standard_Real.hxx>
26 class Geom_BSplineSurface;
27
28
29 //! this defines an evaluator for a function of 2 variables
30 //! that will be used by CancelDenominatorDerivative in one
31 //! direction.
32 class GeomLib_DenominatorMultiplier 
33 {
34 public:
35
36   DEFINE_STANDARD_ALLOC
37
38   
39   //! if the surface is rational this will define the evaluator
40   //! of a real function of 2 variables a(u,v) such that
41   //! if we define a new surface by :
42   //! a(u,v) * N(u,v)
43   //! NewF(u,v) = ----------------
44   //! a(u,v) * D(u,v)
45   Standard_EXPORT GeomLib_DenominatorMultiplier(const Handle(Geom_BSplineSurface)& Surface, const TColStd_Array1OfReal& KnotVector);
46   
47   //! Returns the value of
48   //! a(UParameter,VParameter)=
49   //!
50   //! H0(UParameter)/Denominator(Umin,Vparameter)
51   //!
52   //! D Denominator(Umin,Vparameter)
53   //! - ------------------------------[H1(u)]/(Denominator(Umin,Vparameter)^2)
54   //! D U
55   //!
56   //! + H3(UParameter)/Denominator(Umax,Vparameter)
57   //!
58   //! D Denominator(Umax,Vparameter)
59   //! - ------------------------------[H2(u)]/(Denominator(Umax,Vparameter)^2)
60   //! D U
61   Standard_EXPORT Standard_Real Value (const Standard_Real UParameter, const Standard_Real VParameter) const;
62
63
64
65
66 protected:
67
68
69
70
71
72 private:
73
74
75
76   Handle(Geom_BSplineSurface) mySurface;
77   TColStd_Array1OfReal myKnotFlatVector;
78
79
80 };
81
82
83
84
85
86
87
88 #endif // _GeomLib_DenominatorMultiplier_HeaderFile