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.
29 BezierCurve from Geom,
30 BSplineCurve from Geom,
31 Array1OfReal from TColStd,
34 CurveType from GeomAbs,
35 HCurve from Adaptor3d,
37 Curve from GeomAdaptor
40 OutOfRange from Standard,
41 NoSuchObject from Standard,
42 DomainError from Standard
45 Create returns ElSpine from ChFiDS;
47 FirstParameter(me) returns Real from Standard
50 LastParameter(me) returns Real from Standard
53 Continuity(me) returns Shape from GeomAbs
56 NbIntervals(me: in out; S : Shape from GeomAbs)
57 returns Integer is redefined static;
60 T : in out Array1OfReal from TColStd;
61 S : Shape from GeomAbs)
64 Trim(me; First, Last, Tol : Real) returns HCurve from Adaptor3d
65 ---Purpose: Returns a curve equivalent of <me> between
66 -- parameters <First> and <Last>. <Tol> is used to
67 -- test for 3d points confusion.
70 Resolution(me; R3d : Real) returns Real
73 GetType(me) returns CurveType from GeomAbs
76 IsPeriodic(me) returns Boolean
79 SetPeriodic(me : in out ; I : Boolean from Standard) is static;
81 Period(me) returns Real
84 Value(me ; AbsC : Real ) returns Pnt from gp
87 D0(me ; AbsC : Real ; P : out Pnt from gp)
90 D1(me ; AbsC : Real ; P : out Pnt from gp; V1 : out Vec from gp)
93 D2(me ; AbsC : Real ; P : out Pnt from gp;
94 V1,V2 : out Vec from gp)
97 D3(me ; AbsC : Real ; P : out Pnt from gp;
98 V1,V2, V3 : out Vec from gp)
101 FirstParameter(me : in out; P : Real from Standard);
103 LastParameter(me : in out; P : Real from Standard);
105 SetOrigin(me : in out; O : Real from Standard);
107 FirstPointAndTgt(me; P : out Pnt from gp; T : out Vec from gp);
109 LastPointAndTgt(me; P : out Pnt from gp; T : out Vec from gp);
111 SetFirstPointAndTgt(me : in out; P : Pnt from gp; T : Vec from gp);
113 SetLastPointAndTgt(me : in out; P : Pnt from gp; T : Vec from gp);
115 SetCurve(me : in out; C : Curve from Geom);
117 Previous(me) returns SurfData from ChFiDS;
118 ---C++: return const &
120 ChangePrevious(me : in out) returns any SurfData from ChFiDS;
123 Next(me) returns SurfData from ChFiDS;
124 ---C++: return const &
126 ChangeNext(me : in out) returns any SurfData from ChFiDS;
129 Line(me) returns Lin from gp
131 NoSuchObject from Standard
134 Circle(me) returns Circ from gp
136 NoSuchObject from Standard
139 Ellipse(me) returns Elips from gp
141 NoSuchObject from Standard
144 Hyperbola(me) returns Hypr from gp
146 NoSuchObject from Standard
149 Parabola(me) returns Parab from gp
151 NoSuchObject from Standard
155 Bezier(me) returns BezierCurve from Geom
157 NoSuchObject from Standard
159 --Purpose: Warning : This will NOT make a copy of the
160 -- Bezier Curve : If you want to modify
161 -- the Curve please make a copy yourself
162 -- Also it will NOT trim the surface to
165 BSpline(me) returns BSplineCurve from Geom
167 NoSuchObject from Standard
169 -- Purpose : Warning : This will NOT make a copy of the
170 -- BSpline Curve : If you want to modify
171 -- the Curve please make a copy yourself
172 -- Also it will NOT trim the surface to
176 curve : Curve from GeomAdaptor;
178 ptfirst : Pnt from gp;
179 ptlast : Pnt from gp;
180 tgfirst : Vec from gp;
181 tglast : Vec from gp;
183 previous : SurfData from ChFiDS;
184 next : SurfData from ChFiDS;
186 pfirst : Real from Standard;
187 plast : Real from Standard;
188 period : Real from Standard;
189 periodic : Boolean from Standard;