1 -- Created on: 1997-03-21
2 -- Created by: Bruno DUMORTIER
3 -- Copyright (c) 1997-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.
17 private class CurveOnVertex from BiTgte inherits Curve from Adaptor3d
19 ---Purpose: private class used to create a filler rolling on
23 Array1OfReal from TColStd,
25 CurveType from GeomAbs,
34 BezierCurve from Geom,
35 BSplineCurve from Geom,
36 HCurve from Adaptor3d,
42 OutOfRange from Standard,
43 NoSuchObject from Standard,
44 DomainError from Standard
49 returns CurveOnVertex from BiTgte;
51 Create( EonF : Edge from TopoDS;
52 V : Vertex from TopoDS);
55 EonF : Edge from TopoDS;
56 V : Vertex from TopoDS)
59 --------------------------------
60 -- Methodes from Adaptor3d_Curve --
61 --------------------------------
63 FirstParameter(me) returns Real
66 LastParameter(me) returns Real
69 Continuity(me) returns Shape from GeomAbs
73 NbIntervals(me; S : Shape from GeomAbs) returns Integer
74 ---Purpose: Returns the number of intervals for continuity
75 -- <S>. May be one if Continuity(me) >= <S>
78 Intervals(me; T : in out Array1OfReal from TColStd;
79 S : Shape from GeomAbs)
80 ---Purpose: Stores in <T> the parameters bounding the intervals
83 -- The array must provide enough room to accomodate
84 -- for the parameters. i.e. T.Length() > NbIntervals()
86 OutOfRange from Standard
89 Trim(me; First, Last, Tol : Real) returns HCurve from Adaptor3d
90 ---Purpose: Returns a curve equivalent of <me> between
91 -- parameters <First> and <Last>. <Tol> is used to
92 -- test for 3d points confusion.
94 OutOfRange from Standard
95 ---Purpose: If <First> >= <Last>
99 IsClosed(me) returns Boolean
102 IsPeriodic(me) returns Boolean
105 Period(me) returns Real
107 DomainError from Standard -- if the curve is not periodic
110 Value(me; U : Real) returns Pnt from gp
111 --- Purpose : Computes the point of parameter U on the curve.
114 D0 (me; U : Real; P : out Pnt from gp)
115 --- Purpose : Computes the point of parameter U on the curve.
118 D1 (me; U : Real; P : out Pnt from gp ; V : out Vec from gp)
119 --- Purpose : Computes the point of parameter U on the curve with its
122 DomainError from Standard
123 --- Purpose : Raised if the continuity of the current interval
127 D2 (me; U : Real; P : out Pnt from gp; V1, V2 : out Vec from gp)
129 -- Returns the point P of parameter U, the first and second
130 -- derivatives V1 and V2.
132 DomainError from Standard
133 --- Purpose : Raised if the continuity of the current interval
137 D3 (me; U : Real; P : out Pnt from gp; V1, V2, V3 : out Vec from gp)
139 -- Returns the point P of parameter U, the first, the second
140 -- and the third derivative.
142 DomainError from Standard
143 --- Purpose : Raised if the continuity of the current interval
147 DN (me; U : Real; N : Integer) returns Vec from gp
149 -- The returned vector gives the value of the derivative for the
150 -- order of derivation N.
152 DomainError from Standard,
153 --- Purpose : Raised if the continuity of the current interval
155 OutOfRange from Standard
156 --- Purpose : Raised if N < 1.
159 Resolution(me; R3d : Real) returns Real
160 ---Purpose : Returns the parametric resolution corresponding
161 -- to the real space resolution <R3d>.
164 GetType(me) returns CurveType from GeomAbs
165 ---Purpose: Returns the type of the curve in the current
166 -- interval : Line, Circle, Ellipse, Hyperbola,
167 -- Parabola, BezierCurve, BSplineCurve, OtherCurve.
171 -- The following methods must be called when GetType returned
172 -- the corresponding type.
175 Line(me) returns Lin from gp
177 NoSuchObject from Standard
180 Circle(me) returns Circ from gp
182 NoSuchObject from Standard
185 Ellipse(me) returns Elips from gp
187 NoSuchObject from Standard
190 Hyperbola(me) returns Hypr from gp
192 NoSuchObject from Standard
195 Parabola(me) returns Parab from gp
197 NoSuchObject from Standard
201 Degree(me) returns Integer
203 NoSuchObject from Standard
206 IsRational(me) returns Boolean
208 NoSuchObject from Standard
211 NbPoles(me) returns Integer
213 NoSuchObject from Standard
217 NbKnots(me) returns Integer
219 NoSuchObject from Standard
222 Bezier(me) returns BezierCurve from Geom
224 NoSuchObject from Standard
227 BSpline(me) returns BSplineCurve from Geom
229 NoSuchObject from Standard
234 myFirst : Real from Standard;
235 myLast : Real from Standard;
238 end CurveOnVertex from BiTgte;