1 -- Created on: 1995-05-02
2 -- Created by: Modelistation
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
24 class Line2d from Adaptor2d inherits Curve2d from Adaptor2d
27 Array1OfReal from TColStd,
38 CurveType from GeomAbs,
39 BezierCurve from Geom2d,
40 BSplineCurve from Geom2d,
41 HCurve2d from Adaptor2d
45 OutOfRange from Standard,
46 NoSuchObject from Standard,
47 DomainError from Standard
51 Create returns Line2d from Adaptor2d;
53 Create(P: Pnt2d from gp;
55 UFirst,ULast: Real from Standard)
56 returns Line2d from Adaptor2d;
58 Load(me : in out; L : Lin2d from gp)
61 Load(me : in out; L : Lin2d from gp;
62 UFirst,ULast: Real from Standard)
66 returns Real from Standard
70 returns Real from Standard
74 returns Shape from GeomAbs
77 NbIntervals(me; S : Shape from GeomAbs) returns Integer
78 ---Purpose: If necessary, breaks the curve in intervals of
79 -- continuity <S>. And returns the number of
83 Intervals(me; T : in out Array1OfReal from TColStd;
84 S : Shape from GeomAbs)
85 ---Purpose: Stores in <T> the parameters bounding the intervals
88 -- The array must provide enough room to accomodate
89 -- for the parameters. i.e. T.Length() > NbIntervals()
91 OutOfRange from Standard
94 Trim(me; First, Last, Tol : Real) returns HCurve2d from Adaptor2d
95 ---Purpose: Returns a curve equivalent of <me> between
96 -- parameters <First> and <Last>. <Tol> is used to
97 -- test for 3d points confusion.
99 OutOfRange from Standard
100 ---Purpose: If <First> >= <Last>
104 returns Boolean from Standard
108 returns Boolean from Standard
111 Period(me) returns Real
113 DomainError from Standard -- if the curve is not periodic
116 Value(me; X: Real from Standard)
117 returns Pnt2d from gp
120 D0(me; X: Real from Standard; P: out Pnt2d from gp)
123 D1(me; X: Real from Standard;
124 P: out Pnt2d from gp; V: out Vec2d from gp)
127 D2(me; X: Real from Standard;
128 P: out Pnt2d from gp; V1,V2: out Vec2d from gp)
131 D3(me; X: Real from Standard;
132 P: out Pnt2d from gp; V1,V2,V3: out Vec2d from gp)
135 DN (me; U : Real; N : Integer)
136 returns Vec2d from gp
140 Resolution(me; R3d : Real)
141 returns Real from Standard
146 returns CurveType from GeomAbs
151 returns Lin2d from gp
154 Circle(me) returns Circ2d from gp
156 NoSuchObject from Standard
159 Ellipse(me) returns Elips2d from gp
161 NoSuchObject from Standard
164 Hyperbola(me) returns Hypr2d from gp
166 NoSuchObject from Standard
169 Parabola(me) returns Parab2d from gp
171 NoSuchObject from Standard
175 Degree(me) returns Integer
177 NoSuchObject from Standard
180 IsRational(me) returns Boolean
182 NoSuchObject from Standard
185 NbPoles(me) returns Integer
187 NoSuchObject from Standard
191 NbKnots(me) returns Integer
193 NoSuchObject from Standard
198 Bezier(me) returns BezierCurve from Geom2d
200 NoSuchObject from Standard
203 BSpline(me) returns BSplineCurve from Geom2d
205 NoSuchObject from Standard
210 myUfirst : Real from Standard;
211 myUlast : Real from Standard;
212 myAx2d : Ax2d from gp;