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