1 // Created on: 1993-06-15
2 // Created by: Martine LANGLOIS
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <Geom2d_AxisPlacement.hxx>
19 #include <Geom_Axis1Placement.hxx>
20 #include <GeomToStep_MakeAxis1Placement.hxx>
21 #include <GeomToStep_MakeCartesianPoint.hxx>
22 #include <GeomToStep_MakeDirection.hxx>
24 #include <gp_Ax2d.hxx>
25 #include <StdFail_NotDone.hxx>
26 #include <StepGeom_Axis1Placement.hxx>
27 #include <StepGeom_CartesianPoint.hxx>
28 #include <StepGeom_Direction.hxx>
29 #include <TCollection_HAsciiString.hxx>
31 //=============================================================================
32 // Creation d' un axis1_placement de prostep a partir d' un Ax1 de gp
33 //=============================================================================
34 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement( const gp_Ax1& A)
36 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
38 //=============================================================================
39 // Creation d' un axis1_placement de prostep a partir d' un Ax2d de gp
40 //=============================================================================
42 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement( const gp_Ax2d& A)
44 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
47 //=============================================================================
48 // Creation d' un axis1_placement de prostep a partir d' un Ax1Placement de
50 //=============================================================================
52 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
53 ( const Handle(Geom_Axis1Placement)& Axis1)
57 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
60 //=============================================================================
61 // Creation d' un axis1_placement de prostep a partir d' un AxPlacement de
63 //=============================================================================
65 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
66 ( const Handle(Geom2d_AxisPlacement)& Axis1)
70 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
73 //=============================================================================
75 //=============================================================================
77 const Handle(StepGeom_Axis1Placement) &
78 GeomToStep_MakeAxis1Placement::Value() const
80 StdFail_NotDone_Raise_if(!done, "");
81 return theAxis1Placement;