Warning, file /include/opencascade/Law_Composite.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_Composite_HeaderFile
0018 #define _Law_Composite_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Law_Function.hxx>
0024 #include <NCollection_List.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <NCollection_Array1.hxx>
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 class Law_Composite : public Law_Function
0039 {
0040
0041 public:
0042
0043 Standard_EXPORT Law_Composite();
0044
0045
0046 Standard_EXPORT Law_Composite(const double First, const double Last, const double Tol);
0047
0048 Standard_EXPORT GeomAbs_Shape Continuity() const override;
0049
0050
0051
0052 Standard_EXPORT int NbIntervals(const GeomAbs_Shape S) const override;
0053
0054
0055
0056
0057 Standard_EXPORT void Intervals(NCollection_Array1<double>& T,
0058 const GeomAbs_Shape S) const override;
0059
0060
0061 Standard_EXPORT double Value(const double X) override;
0062
0063
0064 Standard_EXPORT void D1(const double X, double& F, double& D) override;
0065
0066
0067
0068 Standard_EXPORT void D2(const double X, double& F, double& D, double& D2) override;
0069
0070
0071
0072
0073
0074
0075
0076 Standard_EXPORT occ::handle<Law_Function> Trim(const double PFirst,
0077 const double PLast,
0078 const double Tol) const override;
0079
0080
0081 Standard_EXPORT void Bounds(double& PFirst, double& PLast) override;
0082
0083
0084
0085 Standard_EXPORT occ::handle<Law_Function>& ChangeElementaryLaw(const double W);
0086
0087 Standard_EXPORT NCollection_List<occ::handle<Law_Function>>& ChangeLaws();
0088
0089 Standard_EXPORT bool IsPeriodic() const;
0090
0091 Standard_EXPORT void SetPeriodic();
0092
0093 DEFINE_STANDARD_RTTIEXT(Law_Composite, Law_Function)
0094
0095 private:
0096
0097 Standard_EXPORT void Prepare(double& W);
0098
0099 double first;
0100 double last;
0101 occ::handle<Law_Function> curfunc;
0102 NCollection_List<occ::handle<Law_Function>> funclist;
0103 bool periodic;
0104 double TFirst;
0105 double TLast;
0106 double PTol;
0107 };
0108
0109 #endif