Integration of OCCT 6.5.0 from SVN
[occt.git] / src / gce / gce_MakeTranslation.cdl
1 -- File:        Translation.cdl
2 -- Created:     Wed Aug 26 14:32:08 1992
3 -- Author:      Remi GILET
4 --              <reg@topsn3>
5 ---Copyright:    Matra Datavision 1992
6
7 class MakeTranslation
8
9 from gce
10
11     ---Purpose: This class implements elementary construction algorithms for a
12     -- translation in 3D space. The result is a gp_Trsf transformation.
13     -- A MakeTranslation object provides a framework for:
14     -- -   defining the construction of the transformation,
15     -- -   implementing the construction algorithm, and
16     -- -   consulting the result.
17
18 uses Pnt  from gp,
19      Trsf from gp,
20      Vec  from gp,
21      Real from Standard
22      
23 is
24
25 Create(Vect : Vec from gp) returns MakeTranslation;
26     --- Purpose: Constructs a translation along the vector " Vect"
27     
28 Create(Point1 : Pnt from gp;
29        Point2 : Pnt from gp) returns MakeTranslation;
30     ---Purpose: Constructs a translation along the vector
31     --   (Point1,Point2) defined from the point Point1 to the point Point2.
32         
33 Value(me) returns Trsf from gp
34     is static;
35     ---C++: return const&
36     ---Purpose:
37     -- Returns the constructed transformation.
38
39 Operator(me) returns Trsf from gp
40     is static;
41     ---C++: return const&
42     ---C++: alias "Standard_EXPORT operator gp_Trsf() const;"
43
44 fields
45
46     TheTranslation : Trsf from gp;
47
48 end MakeTranslation;
49