1 -- File: MakeArcOfParabola.cdl
2 -- Created: Mon Sep 28 11:51:03 1992
5 ---Copyright: Matra Datavision 1992
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.
20 TrimmedCurve from Geom
22 raises NotDone from StdFail
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).
33 Create(Parab : Parab 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).
41 Create(Parab : Parab 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.
48 Value(me) returns TrimmedCurve from Geom
51 ---Purpose: Returns the constructed arc of parabola.
54 Operator(me) returns TrimmedCurve from Geom
57 ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;"
61 TheArc : TrimmedCurve from Geom;
62 --The solution from Geom.
64 end MakeArcOfParabola;