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
0028 #include <Geom_BezierCurve.hxx>
0029 #include <Geom_BSplineCurve.hxx>
0030
0031 #include <TColStd_Array1OfReal.hxx>
0032
0033 //============================================================
0034 inline Standard_Real BRepBlend_HCurveTool::FirstParameter (const Handle(Adaptor3d_Curve)& C) {
0035 return(C->FirstParameter());
0036 }
0037 //============================================================
0038 inline Standard_Real BRepBlend_HCurveTool::LastParameter (const Handle(Adaptor3d_Curve)& C) {
0039 return(C->LastParameter());
0040 }
0041 //============================================================
0042 inline GeomAbs_Shape BRepBlend_HCurveTool::Continuity (const Handle(Adaptor3d_Curve)& C) {
0043 return(C->Continuity());
0044 }
0045 //============================================================
0046 inline Standard_Integer BRepBlend_HCurveTool::NbIntervals(const Handle(Adaptor3d_Curve)& C,const GeomAbs_Shape Sh) {
0047 return(C->NbIntervals(Sh));
0048 }
0049 //============================================================
0050 inline void BRepBlend_HCurveTool::Intervals(const Handle(Adaptor3d_Curve)& C,
0051 TColStd_Array1OfReal& Tab,
0052 const GeomAbs_Shape Sh) {
0053 C->Intervals(Tab,Sh);
0054 }
0055 //============================================================
0056 inline Standard_Boolean BRepBlend_HCurveTool::IsClosed(const Handle(Adaptor3d_Curve)& C) {
0057 return(C->IsClosed());
0058 }
0059 //============================================================
0060 inline Standard_Boolean BRepBlend_HCurveTool::IsPeriodic(const Handle(Adaptor3d_Curve)& C) {
0061 return(C->IsPeriodic());
0062 }
0063 //============================================================
0064 inline Standard_Real BRepBlend_HCurveTool::Period(const Handle(Adaptor3d_Curve)& C) {
0065 return(C->Period());
0066 }
0067 //============================================================
0068 inline gp_Pnt BRepBlend_HCurveTool::Value (const Handle(Adaptor3d_Curve)& C,
0069 const Standard_Real U) {
0070 return(C->Value(U));
0071 }
0072 //============================================================
0073 inline void BRepBlend_HCurveTool::D0(const Handle(Adaptor3d_Curve)& C,
0074 const Standard_Real U,
0075 gp_Pnt& P) {
0076 C->D0(U,P);
0077 }
0078 //============================================================
0079 inline void BRepBlend_HCurveTool::D1 (const Handle(Adaptor3d_Curve)& C,
0080 const Standard_Real U,
0081 gp_Pnt& P,
0082 gp_Vec& T) {
0083 C->D1(U,P,T);
0084 }
0085 //============================================================
0086 inline void BRepBlend_HCurveTool::D2 (const Handle(Adaptor3d_Curve)& C,
0087 const Standard_Real U,
0088 gp_Pnt& P,
0089 gp_Vec& T,
0090 gp_Vec& N) {
0091
0092 C->D2(U,P,T,N);
0093 }
0094 //============================================================
0095 inline void BRepBlend_HCurveTool::D3 (const Handle(Adaptor3d_Curve)& C,
0096 const Standard_Real U,
0097 gp_Pnt& P,
0098 gp_Vec& V1,
0099 gp_Vec& V2,
0100 gp_Vec& V3) {
0101
0102 C->D3(U,P,V1,V2,V3);
0103 }
0104 //============================================================
0105 inline gp_Vec BRepBlend_HCurveTool::DN (const Handle(Adaptor3d_Curve)& C,
0106 const Standard_Real U,
0107 const Standard_Integer N) {
0108
0109 return(C->DN(U,N));
0110 }
0111 //============================================================
0112 inline Standard_Real BRepBlend_HCurveTool::Resolution(const Handle(Adaptor3d_Curve)& C,
0113 const Standard_Real R3d) {
0114 return(C->Resolution(R3d));
0115 }
0116 //============================================================
0117 inline GeomAbs_CurveType BRepBlend_HCurveTool::GetType(const Handle(Adaptor3d_Curve)& C) {
0118 return(C->GetType());
0119 }
0120 //============================================================
0121 inline gp_Lin BRepBlend_HCurveTool::Line (const Handle(Adaptor3d_Curve)& C) {
0122 return(C->Line());
0123 }
0124 //============================================================
0125 inline gp_Circ BRepBlend_HCurveTool::Circle (const Handle(Adaptor3d_Curve)& C) {
0126 return(C->Circle());
0127 }
0128 //============================================================
0129 inline gp_Elips BRepBlend_HCurveTool::Ellipse (const Handle(Adaptor3d_Curve)& C) {
0130 return(C->Ellipse());
0131 }
0132 //============================================================
0133 inline gp_Parab BRepBlend_HCurveTool::Parabola (const Handle(Adaptor3d_Curve)& C) {
0134 return(C->Parabola());
0135 }
0136 //============================================================
0137 inline gp_Hypr BRepBlend_HCurveTool::Hyperbola (const Handle(Adaptor3d_Curve)& C) {
0138 return(C->Hyperbola());
0139 }
0140 //============================================================
0141 inline Handle(Geom_BezierCurve) BRepBlend_HCurveTool::Bezier (const Handle(Adaptor3d_Curve)& C) {
0142 return(C->Bezier());
0143 }
0144 //============================================================
0145 inline Handle(Geom_BSplineCurve) BRepBlend_HCurveTool::BSpline (const Handle(Adaptor3d_Curve)& C) {
0146 return(C->BSpline());
0147 }
0148 //============================================================
0149
0150
0151
0152
0153
0154
0155
0156
0157
0158
0159
0160
0161
0162