0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / FairCurve / FairCurve_BattenLaw.hxx
CommitLineData
42cf5bc1 1// Created on: 1996-01-26
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 _FairCurve_BattenLaw_HeaderFile
18#define _FairCurve_BattenLaw_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Real.hxx>
25#include <math_Function.hxx>
26#include <Standard_Boolean.hxx>
27
28
29//! This class compute the Heigth of an batten
30class FairCurve_BattenLaw : public math_Function
31{
32public:
33
34 DEFINE_STANDARD_ALLOC
35
36
37 //! Constructor of linear batten with
38 //! Heigth : the Heigth at the middle point
39 //! Slope : the geometric slope of the batten
40 //! Sliding : Active Length of the batten without extension
41 Standard_EXPORT FairCurve_BattenLaw(const Standard_Real Heigth, const Standard_Real Slope, const Standard_Real Sliding);
42
43 //! Change the value of sliding
44 void SetSliding (const Standard_Real Sliding);
45
46 //! Change the value of Heigth at the middle point.
47 void SetHeigth (const Standard_Real Heigth);
48
49 //! Change the value of the geometric slope.
50 void SetSlope (const Standard_Real Slope);
51
52 //! computes the value of the heigth for the parameter T
53 //! on the neutral fibber
54 virtual Standard_Boolean Value (const Standard_Real T, Standard_Real& THeigth) Standard_OVERRIDE;
55
56
57
58
59protected:
60
61
62
63
64
65private:
66
67
68
69 Standard_Real MiddleHeigth;
70 Standard_Real GeometricSlope;
71 Standard_Real LengthSliding;
72
73
74};
75
76
77#include <FairCurve_BattenLaw.lxx>
78
79
80
81
82
83#endif // _FairCurve_BattenLaw_HeaderFile