Warning, file /include/opencascade/Contap_HCurve2dTool.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 _Contap_HCurve2dTool_HeaderFile
0018 #define _Contap_HCurve2dTool_HeaderFile
0019
0020 #include <Adaptor2d_Curve2d.hxx>
0021 #include <GeomAbs_Shape.hxx>
0022 #include <Standard.hxx>
0023 #include <Standard_Boolean.hxx>
0024 #include <Standard_DefineAlloc.hxx>
0025 #include <Standard_Handle.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <Standard_Real.hxx>
0028 #include <NCollection_Array1.hxx>
0029
0030 class gp_Pnt2d;
0031 class gp_Vec2d;
0032 class Geom2d_BezierCurve;
0033 class Geom2d_BSplineCurve;
0034
0035 class Contap_HCurve2dTool
0036 {
0037 public:
0038 DEFINE_STANDARD_ALLOC
0039
0040 static double FirstParameter(const occ::handle<Adaptor2d_Curve2d>& C);
0041
0042 static double LastParameter(const occ::handle<Adaptor2d_Curve2d>& C);
0043
0044 static GeomAbs_Shape Continuity(const occ::handle<Adaptor2d_Curve2d>& C);
0045
0046
0047
0048 static int NbIntervals(const occ::handle<Adaptor2d_Curve2d>& C, const GeomAbs_Shape S);
0049
0050
0051
0052
0053
0054
0055 static void Intervals(const occ::handle<Adaptor2d_Curve2d>& C,
0056 NCollection_Array1<double>& T,
0057 const GeomAbs_Shape S);
0058
0059 static bool IsClosed(const occ::handle<Adaptor2d_Curve2d>& C);
0060
0061 static bool IsPeriodic(const occ::handle<Adaptor2d_Curve2d>& C);
0062
0063 static double Period(const occ::handle<Adaptor2d_Curve2d>& C);
0064
0065
0066 static gp_Pnt2d Value(const occ::handle<Adaptor2d_Curve2d>& C, const double U);
0067
0068
0069 static void D0(const occ::handle<Adaptor2d_Curve2d>& C, const double U, gp_Pnt2d& P);
0070
0071
0072
0073
0074
0075 static void D1(const occ::handle<Adaptor2d_Curve2d>& C, const double U, gp_Pnt2d& P, gp_Vec2d& V);
0076
0077
0078
0079
0080
0081 static void D2(const occ::handle<Adaptor2d_Curve2d>& C,
0082 const double U,
0083 gp_Pnt2d& P,
0084 gp_Vec2d& V1,
0085 gp_Vec2d& V2);
0086
0087
0088
0089
0090
0091 static void D3(const occ::handle<Adaptor2d_Curve2d>& C,
0092 const double U,
0093 gp_Pnt2d& P,
0094 gp_Vec2d& V1,
0095 gp_Vec2d& V2,
0096 gp_Vec2d& V3);
0097
0098
0099
0100
0101
0102
0103 static gp_Vec2d DN(const occ::handle<Adaptor2d_Curve2d>& C, const double U, const int N);
0104
0105
0106
0107 static double Resolution(const occ::handle<Adaptor2d_Curve2d>& C, const double R3d);
0108
0109
0110
0111
0112 static GeomAbs_CurveType GetType(const occ::handle<Adaptor2d_Curve2d>& C);
0113
0114 static gp_Lin2d Line(const occ::handle<Adaptor2d_Curve2d>& C);
0115
0116 static gp_Circ2d Circle(const occ::handle<Adaptor2d_Curve2d>& C);
0117
0118 static gp_Elips2d Ellipse(const occ::handle<Adaptor2d_Curve2d>& C);
0119
0120 static gp_Hypr2d Hyperbola(const occ::handle<Adaptor2d_Curve2d>& C);
0121
0122 static gp_Parab2d Parabola(const occ::handle<Adaptor2d_Curve2d>& C);
0123
0124 static occ::handle<Geom2d_BezierCurve> Bezier(const occ::handle<Adaptor2d_Curve2d>& C);
0125
0126 static occ::handle<Geom2d_BSplineCurve> BSpline(const occ::handle<Adaptor2d_Curve2d>& C);
0127
0128 Standard_EXPORT static int NbSamples(const occ::handle<Adaptor2d_Curve2d>& C,
0129 const double U0,
0130 const double U1);
0131 };
0132
0133 #include <Contap_HCurve2dTool.lxx>
0134
0135 #endif