1 -- Created on: 1995-05-04
2 -- Created by: Laurent BOURESCHE
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 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 class ElSpine from ChFiDS inherits Curve from Adaptor3d
19 ---Purpose: Elementary Spine for cheminements and approximations.
30 BezierCurve from Geom,
31 BSplineCurve from Geom,
32 Array1OfReal from TColStd,
33 SequenceOfAx1 from TColgp,
36 CurveType from GeomAbs,
37 HCurve from Adaptor3d,
39 Curve from GeomAdaptor
42 OutOfRange from Standard,
43 NoSuchObject from Standard,
44 DomainError from Standard
47 Create returns ElSpine from ChFiDS;
49 FirstParameter(me) returns Real from Standard
52 LastParameter(me) returns Real from Standard
55 GetSavedFirstParameter(me) returns Real from Standard;
57 GetSavedLastParameter(me) returns Real from Standard;
59 Continuity(me) returns Shape from GeomAbs
62 NbIntervals(me; S : Shape from GeomAbs)
63 returns Integer is redefined static;
66 T : in out Array1OfReal from TColStd;
67 S : Shape from GeomAbs)
70 Trim(me; First, Last, Tol : Real) returns HCurve from Adaptor3d
71 ---Purpose: Returns a curve equivalent of <me> between
72 -- parameters <First> and <Last>. <Tol> is used to
73 -- test for 3d points confusion.
76 Resolution(me; R3d : Real) returns Real
79 GetType(me) returns CurveType from GeomAbs
82 IsPeriodic(me) returns Boolean
85 SetPeriodic(me : in out ; I : Boolean from Standard) is static;
87 Period(me) returns Real
90 Value(me ; AbsC : Real ) returns Pnt from gp
93 D0(me ; AbsC : Real ; P : out Pnt from gp)
96 D1(me ; AbsC : Real ; P : out Pnt from gp; V1 : out Vec from gp)
99 D2(me ; AbsC : Real ; P : out Pnt from gp;
100 V1,V2 : out Vec from gp)
103 D3(me ; AbsC : Real ; P : out Pnt from gp;
104 V1,V2, V3 : out Vec from gp)
107 FirstParameter(me : in out; P : Real from Standard);
109 LastParameter(me : in out; P : Real from Standard);
111 SaveFirstParameter(me : in out);
113 SaveLastParameter(me : in out);
115 SetOrigin(me : in out; O : Real from Standard);
117 FirstPointAndTgt(me; P : out Pnt from gp; T : out Vec from gp);
119 LastPointAndTgt(me; P : out Pnt from gp; T : out Vec from gp);
121 NbVertices(me) returns Integer from Standard;
123 VertexWithTangent(me; Index : Integer from Standard)
125 ---C++: return const &
127 SetFirstPointAndTgt(me : in out; P : Pnt from gp; T : Vec from gp);
129 SetLastPointAndTgt(me : in out; P : Pnt from gp; T : Vec from gp);
131 AddVertexWithTangent(me : in out; anAx1 : Ax1 from gp);
133 SetCurve(me : in out; C : Curve from Geom);
135 Previous(me) returns SurfData from ChFiDS;
136 ---C++: return const &
138 ChangePrevious(me : in out) returns any SurfData from ChFiDS;
141 Next(me) returns SurfData from ChFiDS;
142 ---C++: return const &
144 ChangeNext(me : in out) returns any SurfData from ChFiDS;
147 Line(me) returns Lin from gp
149 NoSuchObject from Standard
152 Circle(me) returns Circ from gp
154 NoSuchObject from Standard
157 Ellipse(me) returns Elips from gp
159 NoSuchObject from Standard
162 Hyperbola(me) returns Hypr from gp
164 NoSuchObject from Standard
167 Parabola(me) returns Parab from gp
169 NoSuchObject from Standard
173 Bezier(me) returns BezierCurve from Geom
175 NoSuchObject from Standard
177 --Purpose: Warning : This will NOT make a copy of the
178 -- Bezier Curve : If you want to modify
179 -- the Curve please make a copy yourself
180 -- Also it will NOT trim the surface to
183 BSpline(me) returns BSplineCurve from Geom
185 NoSuchObject from Standard
187 -- Purpose : Warning : This will NOT make a copy of the
188 -- BSpline Curve : If you want to modify
189 -- the Curve please make a copy yourself
190 -- Also it will NOT trim the surface to
194 curve : Curve from GeomAdaptor;
196 ptfirst : Pnt from gp;
197 ptlast : Pnt from gp;
198 tgfirst : Vec from gp;
199 tglast : Vec from gp;
200 VerticesWithTangents : SequenceOfAx1 from TColgp;
202 previous : SurfData from ChFiDS;
203 next : SurfData from ChFiDS;
205 pfirst : Real from Standard;
206 plast : Real from Standard;
207 period : Real from Standard;
208 periodic : Boolean from Standard;
210 pfirstsav : Real from Standard;
211 plastsav : Real from Standard;