7fd59977 |
1 | -- File: MakeArcOfParabola.cdl |
2 | -- Created: Mon Sep 28 11:51:03 1992 |
3 | -- Author: Remi GILET |
4 | -- <reg@sdsun2> |
5 | ---Copyright: Matra Datavision 1992 |
6 | |
7 | class MakeArcOfParabola from GC inherits Root from GC |
8 | ---Purpose: Implements construction algorithms for an arc |
9 | -- of parabola in 3D space. The result is a Geom_TrimmedCurve curve. |
10 | -- A MakeArcOfParabola object provides a framework for: |
11 | -- - defining the construction of the arc of parabola, |
12 | -- - implementing the construction algorithm, and |
13 | -- - consulting the results. In particular, the |
14 | -- Value function returns the constructed arc of parabola. |
15 | uses Pnt from gp, |
16 | Parab from gp, |
17 | Dir from gp, |
18 | Ax1 from gp, |
19 | Real from Standard, |
20 | TrimmedCurve from Geom |
21 | |
22 | raises NotDone from StdFail |
23 | |
24 | is |
25 | |
26 | Create(Parab : Parab from gp ; |
27 | Alpha1, Alpha2 : Real from Standard ; |
28 | Sense : Boolean from Standard ) returns MakeArcOfParabola; |
29 | ---Purpose: Creates an arc of Parabola (TrimmedCurve from Geom) from |
30 | -- a Parabola between two parameters Alpha1 and Alpha2 |
31 | -- (given in radians). |
32 | |
33 | Create(Parab : Parab from gp ; |
34 | P : Pnt from gp ; |
35 | Alpha : Real from Standard ; |
36 | Sense : Boolean from Standard ) returns MakeArcOfParabola; |
37 | ---Purpose: Creates an arc of Parabola (TrimmedCurve from Geom) from |
38 | -- a Parabola between point <P> and the parameter |
39 | -- Alpha (given in radians). |
40 | |
41 | Create(Parab : Parab from gp ; |
42 | P1 : Pnt from gp ; |
43 | P2 : Pnt from gp ; |
44 | Sense : Boolean from Standard ) returns MakeArcOfParabola; |
45 | ---Purpose: Creates an arc of Parabola (TrimmedCurve from Geom) from |
46 | -- a Parabola between two points P1 and P2. |
47 | |
48 | Value(me) returns TrimmedCurve from Geom |
49 | raises NotDone |
50 | is static; |
51 | ---Purpose: Returns the constructed arc of parabola. |
52 | ---C++: return const& |
53 | |
54 | Operator(me) returns TrimmedCurve from Geom |
55 | is static; |
56 | ---C++: return const& |
57 | ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;" |
58 | |
59 | fields |
60 | |
61 | TheArc : TrimmedCurve from Geom; |
62 | --The solution from Geom. |
63 | |
64 | end MakeArcOfParabola; |