0025114: CMake-based build tools for OCCT 7.0
[occt.git] / src / GeomToStep / GeomToStep_MakeAxis1Placement.cxx
CommitLineData
b311480e 1// Created on: 1993-06-15
2// Created by: Martine LANGLOIS
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17
18#include <Geom2d_AxisPlacement.hxx>
19#include <Geom_Axis1Placement.hxx>
20#include <GeomToStep_MakeAxis1Placement.hxx>
21#include <GeomToStep_MakeCartesianPoint.hxx>
7fd59977 22#include <GeomToStep_MakeDirection.hxx>
7fd59977 23#include <gp_Ax1.hxx>
24#include <gp_Ax2d.hxx>
42cf5bc1 25#include <StdFail_NotDone.hxx>
7fd59977 26#include <StepGeom_Axis1Placement.hxx>
27#include <StepGeom_CartesianPoint.hxx>
7fd59977 28#include <StepGeom_Direction.hxx>
7fd59977 29#include <TCollection_HAsciiString.hxx>
30
31//=============================================================================
32// Creation d' un axis1_placement de prostep a partir d' un Ax1 de gp
33//=============================================================================
7fd59977 34GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement( const gp_Ax1& A)
35{
19286d7c 36#include "GeomToStep_MakeAxis1Placement_gen.pxx"
7fd59977 37}
38//=============================================================================
39// Creation d' un axis1_placement de prostep a partir d' un Ax2d de gp
40//=============================================================================
41
42GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement( const gp_Ax2d& A)
43{
19286d7c 44#include "GeomToStep_MakeAxis1Placement_gen.pxx"
7fd59977 45}
46
47//=============================================================================
48// Creation d' un axis1_placement de prostep a partir d' un Ax1Placement de
49// Geom
50//=============================================================================
51
52GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
53 ( const Handle(Geom_Axis1Placement)& Axis1)
54{
55 gp_Ax1 A;
56 A = Axis1->Ax1();
19286d7c 57#include "GeomToStep_MakeAxis1Placement_gen.pxx"
7fd59977 58}
59
60//=============================================================================
61// Creation d' un axis1_placement de prostep a partir d' un AxPlacement de
62// Geom2d
63//=============================================================================
64
65GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
66 ( const Handle(Geom2d_AxisPlacement)& Axis1)
67{
68 gp_Ax2d A;
69 A = Axis1->Ax2d();
19286d7c 70#include "GeomToStep_MakeAxis1Placement_gen.pxx"
7fd59977 71}
72
73//=============================================================================
74// renvoi des valeurs
75//=============================================================================
76
77const Handle(StepGeom_Axis1Placement) &
78 GeomToStep_MakeAxis1Placement::Value() const
79{
11bf7051 80 StdFail_NotDone_Raise_if(!done, "");
7fd59977 81 return theAxis1Placement;
82}