0024870: Provide OCCT RTTI test cases
[occt.git] / src / StepToGeom / StepToGeom_MakeBSplineCurve.cxx
1 // Created on: 1993-07-01
2 // Created by: Martine LANGLOIS
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <Geom_BSplineCurve.hxx>
19 #include <Geom_CartesianPoint.hxx>
20 #include <gp_Pnt.hxx>
21 #include <StepGeom_BSplineCurve.hxx>
22 #include <StepGeom_BSplineCurveWithKnots.hxx>
23 #include <StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve.hxx>
24 #include <StepGeom_CartesianPoint.hxx>
25 #include <StepGeom_HArray1OfCartesianPoint.hxx>
26 #include <StepToGeom_MakeBSplineCurve.hxx>
27 #include <StepToGeom_MakeCartesianPoint.hxx>
28 #include <TColgp_Array1OfPnt.hxx>
29 #include <TColStd_Array1OfInteger.hxx>
30 #include <TColStd_Array1OfReal.hxx>
31 #include <TColStd_HArray1OfInteger.hxx>
32 #include <TColStd_HArray1OfReal.hxx>
33
34 //=============================================================================
35 // Creation d' une BSplineCurve de Geom a partir d' une BSplineCurve de Step
36 //=============================================================================
37 #define Array1OfPnt_gen                  TColgp_Array1OfPnt
38 #define Pnt_gen                          gp_Pnt
39 #define Pnt_fonc                         Pnt
40 #define CartesianPoint_gen               Handle(Geom_CartesianPoint)
41 #define StepToGeom_MakeCartesianPoint_gen StepToGeom_MakeCartesianPoint
42 #define BSplineCurve_gen                 Geom_BSplineCurve
43 #define BSplineCurve_retour              Handle(Geom_BSplineCurve)
44 #define StepToGeom_MakeBSplineCurve_gen   StepToGeom_MakeBSplineCurve
45
46 Standard_Boolean StepToGeom_MakeBSplineCurve::Convert
47     (const Handle(StepGeom_BSplineCurve)& SC,
48      Handle(Geom_BSplineCurve)& CC)
49   
50 #include <StepToGeom_MakeBSplineCurve.pxx>
51
52 #undef Array1OfPnt_gen
53 #undef Pnt_gen
54 #undef Pnt_fonc
55 #undef CartesianPoint_gen
56 #undef StepToGeom_MakeCartesianPoint_gen
57 #undef BSplineCurve_gen
58 #undef StepToGeom_MakeBSplineCurve_gen
59 #undef BSplineCurve_retour