summaryrefslogtreecommitdiff
path: root/src/Geom/Geom_Axis1Placement.cxx
blob: f1702ce58a118025c0f04fa3ada57bc3644b431b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// File:	Geom_Axis1Placement.cxx
// Created:	Tue Mar  9 19:25:37 1993
// Author:	JCV
//		<fid@phylox>
// Copyright:	Matra Datavision 1993

//File Geom_Axis1Placement.cxx, JCV 17/01/91

#include <Geom_Axis1Placement.ixx>

typedef Geom_Axis1Placement         Axis1Placement;
typedef Handle(Geom_Axis1Placement) Handle(Axis1Placement);
typedef gp_Ax2  Ax2;
typedef gp_Dir  Dir;
typedef gp_Pnt  Pnt;
typedef gp_Trsf Trsf;
typedef gp_Vec  Vec;

//=======================================================================
//function : Copy
//purpose  : 
//=======================================================================

Handle(Geom_Geometry) Geom_Axis1Placement::Copy() const {

  Handle(Axis1Placement) A1;
  A1 = new Axis1Placement (axis);
  return A1;
}





//=======================================================================
//function : Geom_Axis1Placement
//purpose  : 
//=======================================================================

Geom_Axis1Placement::Geom_Axis1Placement (const gp_Ax1& A1) 
{
 axis = A1;
}

 
Geom_Axis1Placement::Geom_Axis1Placement (const Pnt& P, const Dir& V) {

 axis = gp_Ax1 (P, V);
}



void Geom_Axis1Placement::SetDirection (const Dir& V) {axis.SetDirection (V);}

const gp_Ax1& Geom_Axis1Placement::Ax1 () const { return Axis(); }

void Geom_Axis1Placement::Reverse()  { axis.Reverse(); }

void Geom_Axis1Placement::Transform (const Trsf& T) { axis.Transform (T); }

Handle(Axis1Placement) Geom_Axis1Placement::Reversed() const {

   gp_Ax1 A1 = axis;
   A1.Reverse();
   Handle (Axis1Placement) Temp = new Axis1Placement (A1);
   return Temp;
}