1 -- Created on: 1995-05-02
2 -- Created by: Modelistation
3 -- Copyright (c) 1995-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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class Line2d from Adaptor2d inherits Curve2d from Adaptor2d
20 Array1OfReal from TColStd,
31 CurveType from GeomAbs,
32 BezierCurve from Geom2d,
33 BSplineCurve from Geom2d,
34 HCurve2d from Adaptor2d
38 OutOfRange from Standard,
39 NoSuchObject from Standard,
40 DomainError from Standard
44 Create returns Line2d from Adaptor2d;
46 Create(P: Pnt2d from gp;
48 UFirst,ULast: Real from Standard)
49 returns Line2d from Adaptor2d;
51 Load(me : in out; L : Lin2d from gp)
54 Load(me : in out; L : Lin2d from gp;
55 UFirst,ULast: Real from Standard)
59 returns Real from Standard
63 returns Real from Standard
67 returns Shape from GeomAbs
70 NbIntervals(me; S : Shape from GeomAbs) returns Integer
71 ---Purpose: If necessary, breaks the curve in intervals of
72 -- continuity <S>. And returns the number of
76 Intervals(me; T : in out Array1OfReal from TColStd;
77 S : Shape from GeomAbs)
78 ---Purpose: Stores in <T> the parameters bounding the intervals
81 -- The array must provide enough room to accomodate
82 -- for the parameters. i.e. T.Length() > NbIntervals()
84 OutOfRange from Standard
87 Trim(me; First, Last, Tol : Real) returns HCurve2d from Adaptor2d
88 ---Purpose: Returns a curve equivalent of <me> between
89 -- parameters <First> and <Last>. <Tol> is used to
90 -- test for 3d points confusion.
92 OutOfRange from Standard
93 ---Purpose: If <First> >= <Last>
97 returns Boolean from Standard
101 returns Boolean from Standard
104 Period(me) returns Real
106 DomainError from Standard -- if the curve is not periodic
109 Value(me; X: Real from Standard)
110 returns Pnt2d from gp
113 D0(me; X: Real from Standard; P: out Pnt2d from gp)
116 D1(me; X: Real from Standard;
117 P: out Pnt2d from gp; V: out Vec2d from gp)
120 D2(me; X: Real from Standard;
121 P: out Pnt2d from gp; V1,V2: out Vec2d from gp)
124 D3(me; X: Real from Standard;
125 P: out Pnt2d from gp; V1,V2,V3: out Vec2d from gp)
128 DN (me; U : Real; N : Integer)
129 returns Vec2d from gp
133 Resolution(me; R3d : Real)
134 returns Real from Standard
139 returns CurveType from GeomAbs
144 returns Lin2d from gp
147 Circle(me) returns Circ2d from gp
149 NoSuchObject from Standard
152 Ellipse(me) returns Elips2d from gp
154 NoSuchObject from Standard
157 Hyperbola(me) returns Hypr2d from gp
159 NoSuchObject from Standard
162 Parabola(me) returns Parab2d from gp
164 NoSuchObject from Standard
168 Degree(me) returns Integer
170 NoSuchObject from Standard
173 IsRational(me) returns Boolean
175 NoSuchObject from Standard
178 NbPoles(me) returns Integer
180 NoSuchObject from Standard
184 NbKnots(me) returns Integer
186 NoSuchObject from Standard
191 Bezier(me) returns BezierCurve from Geom2d
193 NoSuchObject from Standard
196 BSpline(me) returns BSplineCurve from Geom2d
198 NoSuchObject from Standard
203 myUfirst : Real from Standard;
204 myUlast : Real from Standard;
205 myAx2d : Ax2d from gp;