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 <StepData_Factors.hxx>
27 #include <StepGeom_Axis1Placement.hxx>
28 #include <StepGeom_CartesianPoint.hxx>
29 #include <StepGeom_Direction.hxx>
30 #include <TCollection_HAsciiString.hxx>
32 //=============================================================================
33 // Creation d' un axis1_placement de prostep a partir d' un Ax1 de gp
34 //=============================================================================
35 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
37 const StepData_Factors& theLocalFactors)
39 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
41 //=============================================================================
42 // Creation d' un axis1_placement de prostep a partir d' un Ax2d de gp
43 //=============================================================================
45 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
47 const StepData_Factors& theLocalFactors)
49 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
52 //=============================================================================
53 // Creation d' un axis1_placement de prostep a partir d' un Ax1Placement de
55 //=============================================================================
57 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
58 ( const Handle(Geom_Axis1Placement)& Axis1,
59 const StepData_Factors& theLocalFactors)
63 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
66 //=============================================================================
67 // Creation d' un axis1_placement de prostep a partir d' un AxPlacement de
69 //=============================================================================
71 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
72 ( const Handle(Geom2d_AxisPlacement)& Axis1,
73 const StepData_Factors& theLocalFactors)
77 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
80 //=============================================================================
82 //=============================================================================
84 const Handle(StepGeom_Axis1Placement) &
85 GeomToStep_MakeAxis1Placement::Value() const
87 StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeAxis1Placement::Value() - no result");
88 return theAxis1Placement;