1 // Created on: 1992-10-22
2 // Created by: Laurent BUCHARD
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
19 #include <GeomAbs_CurveType.hxx>
20 #include <GeomAbs_Shape.hxx>
22 #include <gp_Vec2d.hxx>
23 #include <gp_Lin2d.hxx>
24 #include <gp_Circ2d.hxx>
25 #include <gp_Elips2d.hxx>
26 #include <gp_Parab2d.hxx>
27 #include <gp_Hypr2d.hxx>
30 #include <Geom2d_BezierCurve.hxx>
31 #include <Geom2d_BSplineCurve.hxx>
33 #include <TColStd_Array1OfReal.hxx>
35 //============================================================
36 inline Standard_Real BRepBlend_HCurve2dToolGen::FirstParameter (const CurveGen& C) {
37 return(C->FirstParameter());
39 //============================================================
40 inline Standard_Real BRepBlend_HCurve2dToolGen::LastParameter (const CurveGen& C) {
41 return(C->LastParameter());
43 //============================================================
44 inline GeomAbs_Shape BRepBlend_HCurve2dToolGen::Continuity (const CurveGen& C) {
45 return(C->Continuity());
47 //============================================================
48 inline Standard_Integer BRepBlend_HCurve2dToolGen::NbIntervals(const CurveGen& C,const GeomAbs_Shape Sh) {
49 return(C->NbIntervals(Sh));
51 //============================================================
52 inline void BRepBlend_HCurve2dToolGen::Intervals(const CurveGen& C,
53 TColStd_Array1OfReal& Tab,
54 const GeomAbs_Shape Sh) {
57 //============================================================
58 inline Standard_Boolean BRepBlend_HCurve2dToolGen::IsClosed(const CurveGen& C) {
59 return(C->IsClosed());
61 //============================================================
62 inline Standard_Boolean BRepBlend_HCurve2dToolGen::IsPeriodic(const CurveGen& C) {
63 return(C->IsPeriodic());
65 //============================================================
66 inline Standard_Real BRepBlend_HCurve2dToolGen::Period(const CurveGen& C) {
69 //============================================================
70 inline gp_Pnt2d BRepBlend_HCurve2dToolGen::Value (const CurveGen& C,
71 const Standard_Real U) {
74 //============================================================
75 inline void BRepBlend_HCurve2dToolGen::D0(const CurveGen& C,
76 const Standard_Real U,
80 //============================================================
81 inline void BRepBlend_HCurve2dToolGen::D1 (const CurveGen& C,
82 const Standard_Real U,
87 //============================================================
88 inline void BRepBlend_HCurve2dToolGen::D2 (const CurveGen& C,
89 const Standard_Real U,
96 //============================================================
97 inline void BRepBlend_HCurve2dToolGen::D3 (const CurveGen& C,
98 const Standard_Real U,
106 //============================================================
107 inline gp_Vec2d BRepBlend_HCurve2dToolGen::DN (const CurveGen& C,
108 const Standard_Real U,
109 const Standard_Integer N) {
113 //============================================================
114 inline Standard_Real BRepBlend_HCurve2dToolGen::Resolution(const CurveGen& C,
115 const Standard_Real R3d) {
116 return(C->Resolution(R3d));
118 //============================================================
119 inline GeomAbs_CurveType BRepBlend_HCurve2dToolGen::GetType(const CurveGen& C) {
120 return(C->GetType());
122 //============================================================
123 inline gp_Lin2d BRepBlend_HCurve2dToolGen::Line (const CurveGen& C) {
126 //============================================================
127 inline gp_Circ2d BRepBlend_HCurve2dToolGen::Circle (const CurveGen& C) {
130 //============================================================
131 inline gp_Elips2d BRepBlend_HCurve2dToolGen::Ellipse (const CurveGen& C) {
132 return(C->Ellipse());
134 //============================================================
135 inline gp_Parab2d BRepBlend_HCurve2dToolGen::Parabola (const CurveGen& C) {
136 return(C->Parabola());
138 //============================================================
139 inline gp_Hypr2d BRepBlend_HCurve2dToolGen::Hyperbola (const CurveGen& C) {
140 return(C->Hyperbola());
142 //============================================================
143 inline Handle(Geom2d_BezierCurve) BRepBlend_HCurve2dToolGen::Bezier (const CurveGen& C) {
146 //============================================================
147 inline Handle(Geom2d_BSplineCurve) BRepBlend_HCurve2dToolGen::BSpline (const CurveGen& C) {
148 return(C->BSpline());
150 //============================================================