Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Geom / Geom_Axis1Placement.cxx
CommitLineData
7fd59977 1// File: Geom_Axis1Placement.cxx
2// Created: Tue Mar 9 19:25:37 1993
3// Author: JCV
4// <fid@phylox>
5// Copyright: Matra Datavision 1993
6
7//File Geom_Axis1Placement.cxx, JCV 17/01/91
8
9#include <Geom_Axis1Placement.ixx>
10
11typedef Geom_Axis1Placement Axis1Placement;
12typedef Handle(Geom_Axis1Placement) Handle(Axis1Placement);
13typedef gp_Ax2 Ax2;
14typedef gp_Dir Dir;
15typedef gp_Pnt Pnt;
16typedef gp_Trsf Trsf;
17typedef gp_Vec Vec;
18
19//=======================================================================
20//function : Copy
21//purpose :
22//=======================================================================
23
24Handle(Geom_Geometry) Geom_Axis1Placement::Copy() const {
25
26 Handle(Axis1Placement) A1;
27 A1 = new Axis1Placement (axis);
28 return A1;
29}
30
31
32
33
34
35//=======================================================================
36//function : Geom_Axis1Placement
37//purpose :
38//=======================================================================
39
40Geom_Axis1Placement::Geom_Axis1Placement (const gp_Ax1& A1)
41{
42 axis = A1;
43}
44
45
46Geom_Axis1Placement::Geom_Axis1Placement (const Pnt& P, const Dir& V) {
47
48 axis = gp_Ax1 (P, V);
49}
50
51
52
53void Geom_Axis1Placement::SetDirection (const Dir& V) {axis.SetDirection (V);}
54
55const gp_Ax1& Geom_Axis1Placement::Ax1 () const { return Axis(); }
56
57void Geom_Axis1Placement::Reverse() { axis.Reverse(); }
58
59void Geom_Axis1Placement::Transform (const Trsf& T) { axis.Transform (T); }
60
61Handle(Axis1Placement) Geom_Axis1Placement::Reversed() const {
62
63 gp_Ax1 A1 = axis;
64 A1.Reverse();
65 Handle (Axis1Placement) Temp = new Axis1Placement (A1);
66 return Temp;
67}
68
69