File indexing completed on 2025-01-18 10:03:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_Curve2dTool_HeaderFile
0018 #define _Extrema_Curve2dTool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Real.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <TColStd_Array1OfReal.hxx>
0028 #include <TColStd_HArray1OfReal.hxx>
0029 #include <Standard_Boolean.hxx>
0030 #include <GeomAbs_CurveType.hxx>
0031 #include <gp_Lin2d.hxx>
0032 #include <gp_Circ2d.hxx>
0033 #include <gp_Elips2d.hxx>
0034 #include <gp_Hypr2d.hxx>
0035 #include <gp_Parab2d.hxx>
0036 class Adaptor2d_Curve2d;
0037 class gp_Pnt2d;
0038 class gp_Vec2d;
0039 class Geom2d_BezierCurve;
0040 class Geom2d_BSplineCurve;
0041
0042
0043
0044 class Extrema_Curve2dTool
0045 {
0046 public:
0047
0048 DEFINE_STANDARD_ALLOC
0049
0050
0051 static Standard_Real FirstParameter (const Adaptor2d_Curve2d& C);
0052
0053 static Standard_Real LastParameter (const Adaptor2d_Curve2d& C);
0054
0055 static GeomAbs_Shape Continuity (const Adaptor2d_Curve2d& C);
0056
0057
0058
0059
0060 static Standard_Integer NbIntervals (const Adaptor2d_Curve2d& C, const GeomAbs_Shape S);
0061
0062
0063
0064 static void Intervals (const Adaptor2d_Curve2d& C, TColStd_Array1OfReal& T, const GeomAbs_Shape S);
0065
0066
0067
0068
0069 Standard_EXPORT static Handle(TColStd_HArray1OfReal) DeflCurvIntervals(const Adaptor2d_Curve2d& C);
0070
0071 static Standard_Boolean IsClosed (const Adaptor2d_Curve2d& C);
0072
0073 static Standard_Boolean IsPeriodic (const Adaptor2d_Curve2d& C);
0074
0075 static Standard_Real Period (const Adaptor2d_Curve2d& C);
0076
0077
0078 static gp_Pnt2d Value (const Adaptor2d_Curve2d& C, const Standard_Real U);
0079
0080
0081 static void D0 (const Adaptor2d_Curve2d& C, const Standard_Real U, gp_Pnt2d& P);
0082
0083
0084
0085 static void D1 (const Adaptor2d_Curve2d& C, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V);
0086
0087
0088
0089
0090 static void D2 (const Adaptor2d_Curve2d& C, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
0091
0092
0093
0094
0095 static void D3 (const Adaptor2d_Curve2d& C, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3);
0096
0097
0098
0099
0100 static gp_Vec2d DN (const Adaptor2d_Curve2d& C, const Standard_Real U, const Standard_Integer N);
0101
0102
0103
0104 static Standard_Real Resolution (const Adaptor2d_Curve2d& C, const Standard_Real R3d);
0105
0106
0107
0108
0109 static GeomAbs_CurveType GetType (const Adaptor2d_Curve2d& C);
0110
0111 static gp_Lin2d Line (const Adaptor2d_Curve2d& C);
0112
0113 static gp_Circ2d Circle (const Adaptor2d_Curve2d& C);
0114
0115 static gp_Elips2d Ellipse (const Adaptor2d_Curve2d& C);
0116
0117 static gp_Hypr2d Hyperbola (const Adaptor2d_Curve2d& C);
0118
0119 static gp_Parab2d Parabola (const Adaptor2d_Curve2d& C);
0120
0121 static Standard_Integer Degree (const Adaptor2d_Curve2d& C);
0122
0123 static Standard_Boolean IsRational (const Adaptor2d_Curve2d& C);
0124
0125 static Standard_Integer NbPoles (const Adaptor2d_Curve2d& C);
0126
0127 static Standard_Integer NbKnots (const Adaptor2d_Curve2d& C);
0128
0129 static Handle(Geom2d_BezierCurve) Bezier (const Adaptor2d_Curve2d& C);
0130
0131 static Handle(Geom2d_BSplineCurve) BSpline (const Adaptor2d_Curve2d& C);
0132
0133
0134
0135
0136 protected:
0137
0138
0139
0140
0141
0142 private:
0143
0144
0145
0146
0147
0148 };
0149
0150
0151 #include <Extrema_Curve2dTool.lxx>
0152
0153
0154
0155
0156
0157 #endif