b311480e |
1 | -- Created on: 1992-09-01 |
2 | -- Created by: Remi GILET |
3 | -- Copyright (c) 1992-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class MakeMirror2d |
18 | |
19 | from gce |
20 | |
21 | ---Purpose: This class implements elementary construction algorithms for a |
22 | -- symmetrical transformation in 2D space about a point |
23 | -- or axis. The result is a gp_Trsf2d transformation. |
24 | -- A MakeMirror2d object provides a framework for: |
25 | -- - defining the construction of the transformation, |
26 | -- - implementing the construction algorithm, and consulting the result. |
27 | |
28 | uses Pnt2d from gp, |
29 | Ax2d from gp, |
30 | Dir2d from gp, |
31 | Lin2d from gp, |
32 | Trsf2d from gp, |
33 | Real from Standard |
34 | |
35 | is |
36 | |
37 | Create(Point : Pnt2d from gp) returns MakeMirror2d; |
38 | ---Puprose: Makes a symmetry transformation of center <Point>. |
39 | |
40 | Create(Axis : Ax2d from gp) returns MakeMirror2d; |
41 | ---Puprose: Makes a symmetry transformation of axis <Axis>. |
42 | |
43 | Create(Line : Lin2d from gp) returns MakeMirror2d; |
44 | ---Puprose: Makes a symmetry transformation of axis <Line>. |
45 | |
46 | Create(Point : Pnt2d from gp; |
47 | Direc : Dir2d from gp) returns MakeMirror2d; |
48 | ---Purpose: Makes a symmetry transformation af axis defined by |
49 | -- <Point> and <Direc>. |
50 | |
51 | Value(me) returns Trsf2d from gp |
52 | is static; |
53 | ---C++: return const& |
54 | ---Purpose: Returns the constructed transformation. |
55 | |
56 | Operator(me) returns Trsf2d from gp |
57 | is static; |
58 | ---C++: return const& |
59 | ---C++: alias "Standard_EXPORT operator gp_Trsf2d() const;" |
60 | |
61 | fields |
62 | |
63 | TheMirror2d : Trsf2d from gp; |
64 | |
65 | end MakeMirror2d; |
66 | |