Commit | Line | Data |
---|---|---|
7fd59977 | 1 | // File: GC_MakeTranslation.cxx |
2 | // Created: Fri Oct 2 16:38:15 1992 | |
3 | // Author: Remi GILET | |
4 | // <reg@topsn3> | |
5 | ||
6 | #include <GC_MakeTranslation.ixx> | |
7 | #include <GC_MakeTranslation.hxx> | |
8 | #include <StdFail_NotDone.hxx> | |
9 | ||
10 | //========================================================================= | |
0d969553 | 11 | // Creation of a 3D Geom translation of tanslation vector Vec. + |
7fd59977 | 12 | //========================================================================= |
13 | ||
14 | GC_MakeTranslation::GC_MakeTranslation(const gp_Vec& Vec ) { | |
15 | TheTranslation = new Geom_Transformation(); | |
16 | TheTranslation->SetTranslation(Vec); | |
17 | } | |
18 | ||
19 | //========================================================================= | |
0d969553 Y |
20 | // Creation of a 3D Geom translation of translation vector connecting |
21 | // Point1 and Point2. + | |
7fd59977 | 22 | //========================================================================= |
23 | ||
24 | GC_MakeTranslation::GC_MakeTranslation(const gp_Pnt& Point1 , | |
25 | const gp_Pnt& Point2 ) { | |
26 | TheTranslation = new Geom_Transformation(); | |
27 | TheTranslation->SetTranslation(Point1,Point2); | |
28 | } | |
29 | ||
30 | const Handle(Geom_Transformation)& GC_MakeTranslation::Value() const | |
31 | { | |
32 | return TheTranslation; | |
33 | } | |
34 | ||
35 | const Handle(Geom_Transformation)& GC_MakeTranslation::Operator() const | |
36 | { | |
37 | return TheTranslation; | |
38 | } | |
39 | ||
40 | GC_MakeTranslation::operator Handle(Geom_Transformation) () const | |
41 | { | |
42 | return TheTranslation; | |
43 | } | |
44 |