Warning, file /include/opencascade/Law_Constant.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Law_Constant_HeaderFile
0018 #define _Law_Constant_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Real.hxx>
0024 #include <Law_Function.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <NCollection_Array1.hxx>
0028
0029
0030 class Law_Constant : public Law_Function
0031 {
0032
0033 public:
0034 Standard_EXPORT Law_Constant();
0035
0036
0037 Standard_EXPORT void Set(const double Radius, const double PFirst, const double PLast);
0038
0039
0040 Standard_EXPORT GeomAbs_Shape Continuity() const override;
0041
0042
0043 Standard_EXPORT int NbIntervals(const GeomAbs_Shape S) const override;
0044
0045 Standard_EXPORT void Intervals(NCollection_Array1<double>& T,
0046 const GeomAbs_Shape S) const override;
0047
0048
0049 Standard_EXPORT double Value(const double X) override;
0050
0051
0052 Standard_EXPORT void D1(const double X, double& F, double& D) override;
0053
0054
0055
0056 Standard_EXPORT void D2(const double X, double& F, double& D, double& D2) override;
0057
0058 Standard_EXPORT occ::handle<Law_Function> Trim(const double PFirst,
0059 const double PLast,
0060 const double Tol) const override;
0061
0062
0063 Standard_EXPORT void Bounds(double& PFirst, double& PLast) override;
0064
0065 DEFINE_STANDARD_RTTIEXT(Law_Constant, Law_Function)
0066
0067 private:
0068 double radius;
0069 double first;
0070 double last;
0071 };
0072
0073 #endif