7fd59977 |
1 | -- File: MakeMirror.cdl |
2 | -- Created: Tue Sep 1 15:33:36 1992 |
3 | -- Author: Remi GILET |
4 | -- <reg@sdsun1> |
5 | ---Copyright: Matra Datavision 1992 |
6 | |
7 | class MakeMirror |
8 | |
9 | from gce |
10 | |
11 | ---Purpose: This class mplements elementary construction algorithms for a |
12 | -- symmetrical transformation in 3D space about a point, |
13 | -- axis or plane. The result is a gp_Trsf transformation. |
14 | -- A MakeMirror object provides a framework for: |
15 | -- - defining the construction of the transformation, |
16 | -- - implementing the construction algorithm, and |
17 | -- - consulting the result. |
18 | |
19 | |
20 | uses Pnt from gp, |
21 | Ax1 from gp, |
22 | Ax2 from gp, |
23 | Dir from gp, |
24 | Pln from gp, |
25 | Lin from gp, |
26 | Trsf from gp, |
27 | Real from Standard |
28 | |
29 | is |
30 | |
31 | Create(Point : Pnt from gp) returns MakeMirror; |
32 | ---Puprose: Makes a symmetry transformation of center <Point>. |
33 | |
34 | Create(Axis : Ax1 from gp) returns MakeMirror; |
35 | ---Puprose: Makes a symmetry transformation of axis <Axis>. |
36 | |
37 | Create(Line : Lin from gp) returns MakeMirror; |
38 | ---Puprose: Makes a symmetry transformation of axis <Line>. |
39 | |
40 | Create(Point : Pnt from gp; |
41 | Direc : Dir from gp) returns MakeMirror; |
42 | ---Purpose: Makes a symmetry transformation af axis defined by |
43 | -- <Point> and <Direc>. |
44 | |
45 | Create(Plane : Pln from gp) returns MakeMirror; |
46 | ---Purpose: Makes a symmetry transformation of plane <Plane>. |
47 | |
48 | Create(Plane : Ax2 from gp) returns MakeMirror; |
49 | ---Purpose: Makes a symmetry transformation of plane <Plane>. |
50 | |
51 | Value(me) returns Trsf from gp |
52 | is static; |
53 | ---C++: return const& |
54 | ---Purpose: Returns the constructed transformation. |
55 | |
56 | Operator(me) returns Trsf from gp |
57 | is static; |
58 | ---C++: return const& |
59 | ---C++: alias "Standard_EXPORT operator gp_Trsf() const;" |
60 | |
61 | fields |
62 | |
63 | TheMirror : Trsf from gp; |
64 | |
65 | end MakeMirror; |
66 | |