7fd59977 |
1 | -- File: MakeLin.cdl |
2 | -- Created: Wed Aug 26 14:30:57 1992 |
3 | -- Author: Remi GILET |
4 | -- <reg@topsn3> |
5 | ---Copyright: Matra Datavision 1992 |
6 | |
7 | class MakeLin from gce inherits Root from gce |
8 | |
9 | ---Purpose : This class implements the following algorithms used |
10 | -- to create a Lin from gp. |
11 | -- * Create a Lin parallel to another and passing |
12 | -- through a point. |
13 | -- * Create a Lin passing through 2 points. |
14 | -- * Create a lin from its axis (Ax1 from gp). |
15 | -- * Create a lin from a point and a direction. |
16 | |
17 | uses Pnt from gp, |
18 | Lin from gp, |
19 | Ax1 from gp, |
20 | Dir from gp, |
21 | Real from Standard |
22 | |
23 | raises NotDone from StdFail |
24 | |
25 | is |
26 | |
27 | Create (A1 : Ax1 from gp) returns MakeLin; |
28 | --- Purpose : Creates a line located along the axis A1. |
29 | |
30 | |
31 | Create (P : Pnt from gp; |
32 | V : Dir from gp) returns MakeLin; |
33 | --- Purpose : |
34 | -- <P> is the location point (origin) of the line and |
35 | -- <V> is the direction of the line. |
36 | |
37 | Create(Lin : Lin from gp; |
38 | Point : Pnt from gp) returns MakeLin; |
39 | ---Purpose : Make a Lin from gp <TheLin> parallel to another |
40 | -- Lin <Lin> and passing through a Pnt <Point>. |
41 | |
42 | Create(P1 : Pnt from gp; |
43 | P2 : Pnt from gp) returns MakeLin; |
44 | ---Purpose : Make a Lin from gp <TheLin> passing through 2 |
45 | -- Pnt <P1>,<P2>. |
46 | -- It returns false if <p1> and <P2> are confused. |
47 | |
48 | Value(me) returns Lin from gp |
49 | raises NotDone |
50 | is static; |
51 | ---C++: return const& |
52 | --- Purpose: Returns the constructed line. |
53 | -- Exceptions StdFail_NotDone is raised if no line is constructed. |
54 | |
55 | Operator(me) returns Lin from gp |
56 | is static; |
57 | ---C++: return const& |
58 | ---C++: alias "Standard_EXPORT operator gp_Lin() const;" |
59 | |
60 | fields |
61 | |
62 | TheLin : Lin from gp; |
63 | --The solution from gp. |
64 | |
65 | end MakeLin; |