1 // Created on: 1993-06-17
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_Line.hxx>
19 #include <Geom_Line.hxx>
20 #include <GeomToStep_MakeCartesianPoint.hxx>
21 #include <GeomToStep_MakeLine.hxx>
22 #include <GeomToStep_MakeVector.hxx>
24 #include <gp_Lin2d.hxx>
26 #include <gp_Vec2d.hxx>
27 #include <StdFail_NotDone.hxx>
28 #include <StepGeom_CartesianPoint.hxx>
29 #include <StepGeom_Line.hxx>
30 #include <StepGeom_Vector.hxx>
31 #include <TCollection_HAsciiString.hxx>
33 //=============================================================================
34 // Creation d' une line de prostep a partir d' une Lin de gp
35 //=============================================================================
36 GeomToStep_MakeLine::GeomToStep_MakeLine( const gp_Lin& L)
38 #define Vec_gen gp_Vec
39 #include "GeomToStep_MakeLine_gen.pxx"
43 //=============================================================================
44 // Creation d' une line de prostep a partir d' une Lin2d de gp
45 //=============================================================================
47 GeomToStep_MakeLine::GeomToStep_MakeLine( const gp_Lin2d& L)
49 #define Vec_gen gp_Vec2d
50 #include "GeomToStep_MakeLine_gen.pxx"
54 //=============================================================================
55 // Creation d' une line de prostep a partir d' une Line de Geom
56 //=============================================================================
58 GeomToStep_MakeLine::GeomToStep_MakeLine ( const Handle(Geom_Line)& Gline)
62 #define Vec_gen gp_Vec
63 #include "GeomToStep_MakeLine_gen.pxx"
67 //=============================================================================
68 // Creation d' une line de prostep a partir d' une Line de Geom2d
69 //=============================================================================
71 GeomToStep_MakeLine::GeomToStep_MakeLine ( const Handle(Geom2d_Line)& Gline)
75 #define Vec_gen gp_Vec2d
76 #include "GeomToStep_MakeLine_gen.pxx"
80 //=============================================================================
82 //=============================================================================
84 const Handle(StepGeom_Line) &
85 GeomToStep_MakeLine::Value() const
87 StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeLine::Value() - no result");