0024428: Implementation of LGPL license
[occt.git] / src / BRepBlend / BRepBlend_HCurveToolGen.lxx
CommitLineData
b311480e 1// Created on: 1992-10-22
2// Created by: Laurent BUCHARD
3// Copyright (c) 1992-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
973c2be1 8// This library is free software; you can redistribute it and / or modify it
9// under the terms of the GNU Lesser General Public 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include CurveGen_hxx
18
19#include <GeomAbs_CurveType.hxx>
20#include <GeomAbs_Shape.hxx>
21
22#include <gp_Vec.hxx>
23#include <gp_Lin.hxx>
24#include <gp_Circ.hxx>
25#include <gp_Elips.hxx>
26#include <gp_Parab.hxx>
27#include <gp_Hypr.hxx>
28
29
30#include <Handle_Geom_BezierCurve.hxx>
31#include <Handle_Geom_BSplineCurve.hxx>
32
33#include <TColStd_Array1OfReal.hxx>
34
35//============================================================
36inline Standard_Real BRepBlend_HCurveToolGen::FirstParameter (const CurveGen& C) {
37 return(C->FirstParameter());
38}
39//============================================================
40inline Standard_Real BRepBlend_HCurveToolGen::LastParameter (const CurveGen& C) {
41 return(C->LastParameter());
42}
43//============================================================
44inline GeomAbs_Shape BRepBlend_HCurveToolGen::Continuity (const CurveGen& C) {
45 return(C->Continuity());
46}
47//============================================================
48inline Standard_Integer BRepBlend_HCurveToolGen::NbIntervals(const CurveGen& C,const GeomAbs_Shape Sh) {
49 return(C->NbIntervals(Sh));
50}
51//============================================================
52inline void BRepBlend_HCurveToolGen::Intervals(const CurveGen& C,
53 TColStd_Array1OfReal& Tab,
54 const GeomAbs_Shape Sh) {
55 C->Intervals(Tab,Sh);
56}
57//============================================================
58inline Standard_Boolean BRepBlend_HCurveToolGen::IsClosed(const CurveGen& C) {
59 return(C->IsClosed());
60}
61//============================================================
62inline Standard_Boolean BRepBlend_HCurveToolGen::IsPeriodic(const CurveGen& C) {
63 return(C->IsPeriodic());
64}
65//============================================================
66inline Standard_Real BRepBlend_HCurveToolGen::Period(const CurveGen& C) {
67 return(C->Period());
68}
69//============================================================
70inline gp_Pnt BRepBlend_HCurveToolGen::Value (const CurveGen& C,
71 const Standard_Real U) {
72 return(C->Value(U));
73}
74//============================================================
75inline void BRepBlend_HCurveToolGen::D0(const CurveGen& C,
76 const Standard_Real U,
77 gp_Pnt& P) {
78 C->D0(U,P);
79}
80//============================================================
81inline void BRepBlend_HCurveToolGen::D1 (const CurveGen& C,
82 const Standard_Real U,
83 gp_Pnt& P,
84 gp_Vec& T) {
85 C->D1(U,P,T);
86}
87//============================================================
88inline void BRepBlend_HCurveToolGen::D2 (const CurveGen& C,
89 const Standard_Real U,
90 gp_Pnt& P,
91 gp_Vec& T,
92 gp_Vec& N) {
93
94 C->D2(U,P,T,N);
95}
96//============================================================
97inline void BRepBlend_HCurveToolGen::D3 (const CurveGen& C,
98 const Standard_Real U,
99 gp_Pnt& P,
100 gp_Vec& V1,
101 gp_Vec& V2,
102 gp_Vec& V3) {
103
104 C->D3(U,P,V1,V2,V3);
105}
106//============================================================
107inline gp_Vec BRepBlend_HCurveToolGen::DN (const CurveGen& C,
108 const Standard_Real U,
109 const Standard_Integer N) {
110
111 return(C->DN(U,N));
112}
113//============================================================
114inline Standard_Real BRepBlend_HCurveToolGen::Resolution(const CurveGen& C,
115 const Standard_Real R3d) {
116 return(C->Resolution(R3d));
117}
118//============================================================
119inline GeomAbs_CurveType BRepBlend_HCurveToolGen::GetType(const CurveGen& C) {
120 return(C->GetType());
121}
122//============================================================
123inline gp_Lin BRepBlend_HCurveToolGen::Line (const CurveGen& C) {
124 return(C->Line());
125}
126//============================================================
127inline gp_Circ BRepBlend_HCurveToolGen::Circle (const CurveGen& C) {
128 return(C->Circle());
129}
130//============================================================
131inline gp_Elips BRepBlend_HCurveToolGen::Ellipse (const CurveGen& C) {
132 return(C->Ellipse());
133}
134//============================================================
135inline gp_Parab BRepBlend_HCurveToolGen::Parabola (const CurveGen& C) {
136 return(C->Parabola());
137}
138//============================================================
139inline gp_Hypr BRepBlend_HCurveToolGen::Hyperbola (const CurveGen& C) {
140 return(C->Hyperbola());
141}
142//============================================================
143inline Handle(Geom_BezierCurve) BRepBlend_HCurveToolGen::Bezier (const CurveGen& C) {
144 return(C->Bezier());
145}
146//============================================================
147inline Handle(Geom_BSplineCurve) BRepBlend_HCurveToolGen::BSpline (const CurveGen& C) {
148 return(C->BSpline());
149}
150//============================================================
151
152
153
154
155
156
157
158
159
160
161
162
163
164