54875dad101432e3f7d6520bd1def74451f093d3
[occt.git] / src / GCE2d / GCE2d_MakeMirror.cdl
1 -- Created on: 1992-09-28
2 -- Created by: Remi GILET
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License 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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class MakeMirror
18
19 from GCE2d
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 Geom2d_Transformation transformation.
24     -- A MakeMirror object provides a framework for:
25     -- -   defining the construction of the transformation,
26     -- -   implementing the construction algorithm, and
27     -- -   consulting the result.
28
29 uses Pnt2d          from gp,
30      Ax2d           from gp,
31      Dir2d          from gp,
32      Lin2d          from gp,
33      Transformation from Geom2d,
34      Real           from Standard
35      
36 is
37
38 Create(Point : Pnt2d from gp) returns MakeMirror;
39     ---Puprose: Make a symetry transformation of center <Point>.
40
41 Create(Axis : Ax2d from gp) returns MakeMirror;
42     ---Puprose: Make a symetry transformation of axis <Axis>.
43
44 Create(Line : Lin2d from gp) returns MakeMirror;
45     ---Puprose: Make a symetry transformation of axis <Line>.
46
47 Create(Point : Pnt2d from gp;
48        Direc : Dir2d from gp) returns MakeMirror;
49     ---Purpose: Make a symetry transformation af axis defined by 
50     --          <Point> and <Direc>.
51
52 Value(me) returns Transformation from Geom2d
53     is static;
54     ---C++: return const&
55     ---Purpose: Returns the constructed transformation.
56
57 Operator(me) returns Transformation from Geom2d
58     is static;
59     ---C++: return const&
60     ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
61
62 fields
63
64     TheMirror : Transformation from Geom2d;
65
66 end MakeMirror;
67