0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / GeomToStep / GeomToStep_MakeBSplineCurveWithKnots.cxx
CommitLineData
b311480e 1// Created on: 1993-08-05
2// Created by: Martine LANGLOIS
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22#include <GeomToStep_MakeBSplineCurveWithKnots.ixx>
23#include <StdFail_NotDone.hxx>
24#include <Geom_BSplineCurve.hxx>
25#include <StepGeom_BSplineCurveWithKnots.hxx>
26#include <StepGeom_CartesianPoint.hxx>
27#include <GeomToStep_MakeCartesianPoint.hxx>
28#include <StepGeom_HArray1OfCartesianPoint.hxx>
29#include <TColStd_HArray1OfInteger.hxx>
30#include <TColStd_HArray1OfReal.hxx>
31#include <TColgp_Array1OfPnt.hxx>
32#include <TColgp_Array1OfPnt2d.hxx>
33#include <GeomAbs_BSplKnotDistribution.hxx>
34#include <StepGeom_KnotType.hxx>
35#include <TCollection_HAsciiString.hxx>
36
37//=============================================================================
38// Creation d' une bspline_curve_with_knots de
39// prostep a partir d' une BSplineCurve de Geom
40//=============================================================================
41
42GeomToStep_MakeBSplineCurveWithKnots::
43 GeomToStep_MakeBSplineCurveWithKnots( const
44 Handle(Geom_BSplineCurve)& BS )
45
46{
47#define Array1OfPnt_gen TColgp_Array1OfPnt
48#include <GeomToStep_MakeBSplineCurveWithKnots_gen.pxx>
49#undef Array1OfPnt_gen
50}
51//=============================================================================
52// Creation d' une bspline_curve_with_knots de
53// prostep a partir d' une BSplineCurve de Geom2d
54//=============================================================================
55
56GeomToStep_MakeBSplineCurveWithKnots::
57 GeomToStep_MakeBSplineCurveWithKnots( const
58 Handle(Geom2d_BSplineCurve)& BS )
59
60{
61#define Array1OfPnt_gen TColgp_Array1OfPnt2d
62#include <GeomToStep_MakeBSplineCurveWithKnots_gen.pxx>
63#undef Array1OfPnt_gen
64}
65
66//=============================================================================
67// renvoi des valeurs
68//=============================================================================
69
70const Handle(StepGeom_BSplineCurveWithKnots) &
71 GeomToStep_MakeBSplineCurveWithKnots::Value() const
72{
73 StdFail_NotDone_Raise_if(!done == Standard_True,"");
74 return theBSplineCurveWithKnots;
75}