7fd59977 |
1 | -- File: MakeRotation.cdl |
2 | -- Created: Mon Sep 28 11:52:57 1992 |
3 | -- Author: Remi GILET |
4 | -- <reg@sdsun2> |
5 | ---Copyright: Matra Datavision 1992 |
6 | |
7 | class MakeRotation |
8 | |
9 | from GC |
10 | |
11 | ---Purpose: This class implements elementary construction algorithms for a |
12 | -- rotation in 3D space. The result is a |
13 | -- Geom_Transformation transformation. |
14 | -- A MakeRotation object provides a framework for: |
15 | -- - defining the construction of the transformation, |
16 | -- - implementing the construction algorithm, and |
17 | -- - consulting the result. |
18 | |
19 | uses Pnt from gp, |
20 | Lin from gp, |
21 | Ax1 from gp, |
22 | Dir from gp, |
23 | Transformation from Geom, |
24 | Real from Standard |
25 | |
26 | is |
27 | |
28 | Create(Line : Lin from gp ; |
29 | Angle : Real from Standard) returns MakeRotation; |
30 | --- Purpose: Constructs a rotation through angle Angle about the axis defined by the line Line. |
31 | Create(Axis : Ax1 from gp ; |
32 | Angle : Real from Standard) returns MakeRotation; |
33 | ---Purpose: Constructs a rotation through angle Angle about the axis defined by the axis Axis. |
34 | Create(Point : Pnt from gp ; |
35 | Direc : Dir from gp ; |
36 | Angle : Real from Standard) returns MakeRotation; |
37 | ---Purpose: Constructs a rotation through angle Angle about the axis |
38 | -- defined by the point Point and the unit vector Direc. |
39 | |
40 | Value(me) returns Transformation from Geom |
41 | is static; |
42 | ---Purpose: Returns the constructed transformation. |
43 | ---C++: return const& |
44 | |
45 | Operator(me) returns Transformation from Geom |
46 | is static; |
47 | ---C++: return const& |
48 | ---C++: alias "Standard_EXPORT operator Handle_Geom_Transformation() const;" |
49 | |
50 | fields |
51 | |
52 | TheRotation : Transformation from Geom; |
53 | |
54 | end MakeRotation; |