0031821: Coding - Uninitialized variables in TKFillet project
[occt.git] / src / BlendFunc / BlendFunc_GenChamfInv.hxx
CommitLineData
1d54b807 1// Created by: Julia GERASIMOVA
2// Copyright (c) 2015 OPEN CASCADE SAS
3//
4// This file is part of Open CASCADE Technology software library.
5//
6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
11//
12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
14
15#ifndef _BlendFunc_GenChamfInv_HeaderFile
16#define _BlendFunc_GenChamfInv_HeaderFile
17
18#include <Standard.hxx>
19#include <Standard_DefineAlloc.hxx>
20#include <Standard_Handle.hxx>
21
22#include <Standard_Integer.hxx>
23#include <Standard_Boolean.hxx>
24#include <BlendFunc_Corde.hxx>
25#include <Blend_FuncInv.hxx>
26#include <math_Vector.hxx>
27#include <Standard_Real.hxx>
28class Adaptor3d_HSurface;
29class Adaptor3d_HCurve;
30class Adaptor2d_HCurve2d;
31class math_Matrix;
32
33
34
35//! Deferred class for a function used to compute a general chamfer on a surface's boundary
36class BlendFunc_GenChamfInv : public Blend_FuncInv
37{
38public:
39
40 DEFINE_STANDARD_ALLOC
41
42 Standard_EXPORT BlendFunc_GenChamfInv(const Handle(Adaptor3d_HSurface)& S1,
43 const Handle(Adaptor3d_HSurface)& S2,
44 const Handle(Adaptor3d_HCurve)& C);
45
46 Standard_EXPORT virtual void Set (const Standard_Boolean OnFirst,
47 const Handle(Adaptor2d_HCurve2d)& COnSurf) Standard_OVERRIDE;
48
49 Standard_EXPORT void GetTolerance (math_Vector& Tolerance,
50 const Standard_Real Tol) const Standard_OVERRIDE;
51
52 Standard_EXPORT void GetBounds (math_Vector& InfBound,
53 math_Vector& SupBound) const Standard_OVERRIDE;
54
55 //! returns the number of equations of the function.
56 Standard_EXPORT Standard_Integer NbEquations() const Standard_OVERRIDE;
57
58 //! returns the values <F> of the functions and the derivatives
59 //! <D> for the variable <X>.
60 //! Returns True if the computation was done successfully,
61 //! False otherwise.
62 Standard_EXPORT Standard_Boolean Values (const math_Vector& X,
63 math_Vector& F,
64 math_Matrix& D) Standard_OVERRIDE;
65
66 Standard_EXPORT virtual void Set (const Standard_Real Dist1,
67 const Standard_Real Dist2,
68 const Standard_Integer Choix) = 0;
69
70
71
72
73protected:
74
75 Handle(Adaptor3d_HSurface) surf1;
76 Handle(Adaptor3d_HSurface) surf2;
77 Handle(Adaptor3d_HCurve) curv;
78 Handle(Adaptor2d_HCurve2d) csurf;
79 Standard_Integer choix;
80 Standard_Boolean first;
81
82
83private:
84
85
86};
87
88
89
90
91
92
93
94#endif // _BlendFunc_GenChamfInv_HeaderFile