0024510: Remove unused local variables
[occt.git] / src / Extrema / Extrema_CurveTool.cdl
1 -- Created on: 1995-07-18
2 -- Created by: Modelistation
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class CurveTool from Extrema
18
19 uses Pnt          from gp,
20      Vec          from gp,
21      Circ         from gp,
22      Elips        from gp,
23      Hypr         from gp,
24      Parab        from gp,
25      Lin          from gp,
26      Array1OfReal from TColStd,
27      BezierCurve  from Geom,
28      BSplineCurve from Geom,
29      CurveType    from GeomAbs,
30      Shape        from GeomAbs,
31      Curve        from Adaptor3d
32      
33 is
34
35
36     FirstParameter(myclass; C : Curve from Adaptor3d)
37     returns Real from Standard;
38         ---C++: inline
39
40     LastParameter(myclass; C : Curve from Adaptor3d)
41     returns Real from Standard;
42         ---C++: inline
43     
44     Continuity(myclass; C: Curve from Adaptor3d) returns Shape from GeomAbs;
45         ---C++: inline
46
47     NbIntervals(myclass; C: in out Curve from Adaptor3d; S : Shape from GeomAbs) returns Integer;
48         ---Purpose: Returns  the number  of  intervals for  continuity
49         --          <S>. May be one if Continuity(me) >= <S>
50         ---C++: inline
51
52
53     Intervals(myclass; C: in out Curve from Adaptor3d; T : in out Array1OfReal from TColStd; 
54                   S : Shape from GeomAbs);
55         ---Purpose: Stores in <T> the  parameters bounding the intervals
56         --          of continuity <S>.
57         --          
58         --          The array must provide  enough room to  accomodate
59         --          for the parameters. i.e. T.Length() > NbIntervals()
60         ---C++: inline
61     
62     IsPeriodic(myclass;C: Curve from Adaptor3d) returns Boolean;
63  
64     Period(myclass; C: Curve from Adaptor3d) returns Real;
65         ---C++: inline
66
67
68     Resolution(myclass; C: Curve from Adaptor3d; R3d: Real) returns Real;
69         ---C++: inline
70
71
72     GetType(myclass;C: Curve from Adaptor3d) returns CurveType from GeomAbs;
73         ---C++: inline
74
75
76     Value(myclass; C : Curve from Adaptor3d;
77                    U : Real    from Standard)
78     returns Pnt from gp;
79         ---C++: inline
80
81     D0 (myclass; C :     Curve from Adaptor3d;
82                  U :     Real    from Standard;
83                  P : out Pnt from gp);
84         ---C++: inline
85     
86     D1 (myclass; C :     Curve from Adaptor3d;
87                  U :     Real    from Standard;
88                  P : out Pnt from gp;
89                  V : out Vec from gp);
90         ---C++: inline
91     
92     D2 (myclass; C          : Curve from Adaptor3d;
93                  U          : Real  from Standard;
94                  P          : out Pnt from gp;
95                  V1, V2     : out Vec from gp);
96         ---C++: inline
97
98     D3 (myclass; C          : Curve from Adaptor3d;
99                  U          : Real  from Standard;
100                  P          : out Pnt from gp;
101                  V1, V2, V3 : out Vec from gp);
102         ---C++: inline
103
104     DN (myclass; C      :     Curve from Adaptor3d;
105                  U      :     Real    from Standard;
106                  N      :     Integer from Standard)
107         returns Vec from gp;          
108         ---C++: inline
109
110    Line(myclass; C : Curve from Adaptor3d) returns Lin from gp;
111         ---C++: inline
112    
113    Circle(myclass; C : Curve from Adaptor3d) returns Circ from gp;
114         ---C++: inline
115
116    Ellipse(myclass; C : Curve from Adaptor3d) returns Elips from gp;
117         ---C++: inline
118
119    Hyperbola(myclass; C : Curve from Adaptor3d) returns  Hypr from gp;
120         ---C++: inline
121
122    Parabola(myclass; C : Curve from Adaptor3d) returns Parab from gp;
123         ---C++: inline
124
125    Degree(myclass; C : Curve from Adaptor3d) returns Integer;
126         ---C++: inline
127      
128    IsRational(myclass; C : Curve from Adaptor3d) returns Boolean;
129         ---C++: inline
130      
131    NbPoles(myclass; C : Curve from Adaptor3d) returns Integer;
132         ---C++: inline
133      
134    NbKnots(myclass; C : Curve from Adaptor3d) returns Integer;
135         ---C++: inline
136      
137    Bezier(myclass; C : Curve from Adaptor3d) returns BezierCurve from Geom;
138         ---C++: inline
139
140    BSpline(myclass; C : Curve from Adaptor3d) returns BSplineCurve from Geom;
141         ---C++: inline
142      
143
144 end CurveTool;