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.
17 #include <GeomToStep_MakeLine.ixx>
18 #include <StdFail_NotDone.hxx>
19 #include <StepGeom_Line.hxx>
20 #include <StepGeom_CartesianPoint.hxx>
21 #include <StepGeom_Vector.hxx>
23 #include <gp_Vec2d.hxx>
24 #include <GeomToStep_MakeLine.hxx>
25 #include <GeomToStep_MakeCartesianPoint.hxx>
26 #include <GeomToStep_MakeVector.hxx>
27 #include <TCollection_HAsciiString.hxx>
30 //=============================================================================
31 // Creation d' une line de prostep a partir d' une Lin de gp
32 //=============================================================================
34 GeomToStep_MakeLine::GeomToStep_MakeLine( const gp_Lin& L)
36 #define Vec_gen gp_Vec
37 #include <GeomToStep_MakeLine_gen.pxx>
41 //=============================================================================
42 // Creation d' une line de prostep a partir d' une Lin2d de gp
43 //=============================================================================
45 GeomToStep_MakeLine::GeomToStep_MakeLine( const gp_Lin2d& L)
47 #define Vec_gen gp_Vec2d
48 #include <GeomToStep_MakeLine_gen.pxx>
52 //=============================================================================
53 // Creation d' une line de prostep a partir d' une Line de Geom
54 //=============================================================================
56 GeomToStep_MakeLine::GeomToStep_MakeLine ( const Handle(Geom_Line)& Gline)
60 #define Vec_gen gp_Vec
61 #include <GeomToStep_MakeLine_gen.pxx>
65 //=============================================================================
66 // Creation d' une line de prostep a partir d' une Line de Geom2d
67 //=============================================================================
69 GeomToStep_MakeLine::GeomToStep_MakeLine ( const Handle(Geom2d_Line)& Gline)
73 #define Vec_gen gp_Vec2d
74 #include <GeomToStep_MakeLine_gen.pxx>
78 //=============================================================================
80 //=============================================================================
82 const Handle(StepGeom_Line) &
83 GeomToStep_MakeLine::Value() const
85 StdFail_NotDone_Raise_if(!done == Standard_True,"");