Warning, /include/opencascade/BRepBlend_HCurveTool.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-10-22
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <GeomAbs_CurveType.hxx>
0018 #include <GeomAbs_Shape.hxx>
0019
0020 #include <gp_Vec.hxx>
0021 #include <gp_Lin.hxx>
0022 #include <gp_Circ.hxx>
0023 #include <gp_Elips.hxx>
0024 #include <gp_Parab.hxx>
0025 #include <gp_Hypr.hxx>
0026
0027 #include <Geom_BezierCurve.hxx>
0028 #include <Geom_BSplineCurve.hxx>
0029
0030 #include <TColStd_Array1OfReal.hxx>
0031
0032 //============================================================
0033 inline Standard_Real BRepBlend_HCurveTool::FirstParameter(const Handle(Adaptor3d_Curve)& C)
0034 {
0035 return (C->FirstParameter());
0036 }
0037
0038 //============================================================
0039 inline Standard_Real BRepBlend_HCurveTool::LastParameter(const Handle(Adaptor3d_Curve)& C)
0040 {
0041 return (C->LastParameter());
0042 }
0043
0044 //============================================================
0045 inline GeomAbs_Shape BRepBlend_HCurveTool::Continuity(const Handle(Adaptor3d_Curve)& C)
0046 {
0047 return (C->Continuity());
0048 }
0049
0050 //============================================================
0051 inline Standard_Integer BRepBlend_HCurveTool::NbIntervals(const Handle(Adaptor3d_Curve)& C,
0052 const GeomAbs_Shape Sh)
0053 {
0054 return (C->NbIntervals(Sh));
0055 }
0056
0057 //============================================================
0058 inline void BRepBlend_HCurveTool::Intervals(const Handle(Adaptor3d_Curve)& C,
0059 TColStd_Array1OfReal& Tab,
0060 const GeomAbs_Shape Sh)
0061 {
0062 C->Intervals(Tab, Sh);
0063 }
0064
0065 //============================================================
0066 inline Standard_Boolean BRepBlend_HCurveTool::IsClosed(const Handle(Adaptor3d_Curve)& C)
0067 {
0068 return (C->IsClosed());
0069 }
0070
0071 //============================================================
0072 inline Standard_Boolean BRepBlend_HCurveTool::IsPeriodic(const Handle(Adaptor3d_Curve)& C)
0073 {
0074 return (C->IsPeriodic());
0075 }
0076
0077 //============================================================
0078 inline Standard_Real BRepBlend_HCurveTool::Period(const Handle(Adaptor3d_Curve)& C)
0079 {
0080 return (C->Period());
0081 }
0082
0083 //============================================================
0084 inline gp_Pnt BRepBlend_HCurveTool::Value(const Handle(Adaptor3d_Curve)& C, const Standard_Real U)
0085 {
0086 return (C->Value(U));
0087 }
0088
0089 //============================================================
0090 inline void BRepBlend_HCurveTool::D0(const Handle(Adaptor3d_Curve)& C,
0091 const Standard_Real U,
0092 gp_Pnt& P)
0093 {
0094 C->D0(U, P);
0095 }
0096
0097 //============================================================
0098 inline void BRepBlend_HCurveTool::D1(const Handle(Adaptor3d_Curve)& C,
0099 const Standard_Real U,
0100 gp_Pnt& P,
0101 gp_Vec& T)
0102 {
0103 C->D1(U, P, T);
0104 }
0105
0106 //============================================================
0107 inline void BRepBlend_HCurveTool::D2(const Handle(Adaptor3d_Curve)& C,
0108 const Standard_Real U,
0109 gp_Pnt& P,
0110 gp_Vec& T,
0111 gp_Vec& N)
0112 {
0113
0114 C->D2(U, P, T, N);
0115 }
0116
0117 //============================================================
0118 inline void BRepBlend_HCurveTool::D3(const Handle(Adaptor3d_Curve)& C,
0119 const Standard_Real U,
0120 gp_Pnt& P,
0121 gp_Vec& V1,
0122 gp_Vec& V2,
0123 gp_Vec& V3)
0124 {
0125
0126 C->D3(U, P, V1, V2, V3);
0127 }
0128
0129 //============================================================
0130 inline gp_Vec BRepBlend_HCurveTool::DN(const Handle(Adaptor3d_Curve)& C,
0131 const Standard_Real U,
0132 const Standard_Integer N)
0133 {
0134
0135 return (C->DN(U, N));
0136 }
0137
0138 //============================================================
0139 inline Standard_Real BRepBlend_HCurveTool::Resolution(const Handle(Adaptor3d_Curve)& C,
0140 const Standard_Real R3d)
0141 {
0142 return (C->Resolution(R3d));
0143 }
0144
0145 //============================================================
0146 inline GeomAbs_CurveType BRepBlend_HCurveTool::GetType(const Handle(Adaptor3d_Curve)& C)
0147 {
0148 return (C->GetType());
0149 }
0150
0151 //============================================================
0152 inline gp_Lin BRepBlend_HCurveTool::Line(const Handle(Adaptor3d_Curve)& C)
0153 {
0154 return (C->Line());
0155 }
0156
0157 //============================================================
0158 inline gp_Circ BRepBlend_HCurveTool::Circle(const Handle(Adaptor3d_Curve)& C)
0159 {
0160 return (C->Circle());
0161 }
0162
0163 //============================================================
0164 inline gp_Elips BRepBlend_HCurveTool::Ellipse(const Handle(Adaptor3d_Curve)& C)
0165 {
0166 return (C->Ellipse());
0167 }
0168
0169 //============================================================
0170 inline gp_Parab BRepBlend_HCurveTool::Parabola(const Handle(Adaptor3d_Curve)& C)
0171 {
0172 return (C->Parabola());
0173 }
0174
0175 //============================================================
0176 inline gp_Hypr BRepBlend_HCurveTool::Hyperbola(const Handle(Adaptor3d_Curve)& C)
0177 {
0178 return (C->Hyperbola());
0179 }
0180
0181 //============================================================
0182 inline Handle(Geom_BezierCurve) BRepBlend_HCurveTool::Bezier(const Handle(Adaptor3d_Curve)& C)
0183 {
0184 return (C->Bezier());
0185 }
0186
0187 //============================================================
0188 inline Handle(Geom_BSplineCurve) BRepBlend_HCurveTool::BSpline(const Handle(Adaptor3d_Curve)& C)
0189 {
0190 return (C->BSpline());
0191 }
0192
0193 //============================================================