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 | //========================================================================= |
11 | // Creation d une translation 3d de Geom de vecteur de tanslation Vec. + |
12 | //========================================================================= |
13 | |
14 | GC_MakeTranslation::GC_MakeTranslation(const gp_Vec& Vec ) { |
15 | TheTranslation = new Geom_Transformation(); |
16 | TheTranslation->SetTranslation(Vec); |
17 | } |
18 | |
19 | //========================================================================= |
20 | // Creation d une translation 3d de Geom de vecteur de tanslation le + |
21 | // vecteur reliant Point1 a Point2. + |
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 | |