0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / IGESToBRep / IGESToBRep_BasicSurface.hxx
1 // Created on: 1994-03-14
2 // Created by: Frederic UNTEREINER
3 // Copyright (c) 1994-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 #ifndef _IGESToBRep_BasicSurface_HeaderFile
18 #define _IGESToBRep_BasicSurface_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <IGESToBRep_CurveAndSurface.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Boolean.hxx>
27 class IGESToBRep_CurveAndSurface;
28 class Geom_Surface;
29 class IGESData_IGESEntity;
30 class Geom_Plane;
31 class IGESSolid_PlaneSurface;
32 class Geom_CylindricalSurface;
33 class IGESSolid_CylindricalSurface;
34 class Geom_ConicalSurface;
35 class IGESSolid_ConicalSurface;
36 class Geom_SphericalSurface;
37 class IGESSolid_SphericalSurface;
38 class Geom_ToroidalSurface;
39 class IGESSolid_ToroidalSurface;
40 class Geom_BSplineSurface;
41 class IGESGeom_SplineSurface;
42 class IGESGeom_BSplineSurface;
43
44
45 //! Provides methods to transfer basic geometric surface entities
46 //! from IGES to CASCADE.
47 //! These can be :
48 //! * Spline surface
49 //! * BSpline surface
50 class IGESToBRep_BasicSurface  : public IGESToBRep_CurveAndSurface
51 {
52 public:
53
54   DEFINE_STANDARD_ALLOC
55
56   
57   //! Creates  a tool BasicSurface  ready  to  run, with
58   //! epsilons  set  to  1.E-04,  TheModeTopo  to  True,  the
59   //! optimization of  the continuity to False.
60   Standard_EXPORT IGESToBRep_BasicSurface();
61   
62   //! Creates a tool BasicSurface ready to run and sets its
63   //! fields as CS's.
64   Standard_EXPORT IGESToBRep_BasicSurface(const IGESToBRep_CurveAndSurface& CS);
65   
66   //! Creates a tool BasicSurface ready to run.
67   Standard_EXPORT IGESToBRep_BasicSurface(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
68   
69   //! Returns Surface  from Geom if the last transfer has
70   //! succeded.
71   Standard_EXPORT Handle(Geom_Surface) TransferBasicSurface (const Handle(IGESData_IGESEntity)& start);
72   
73   //! Returns Plane from Geom if the transfer has
74   //! succeded.
75   Standard_EXPORT Handle(Geom_Plane) TransferPlaneSurface (const Handle(IGESSolid_PlaneSurface)& start);
76   
77   //! Returns CylindricalSurface from Geom if the transfer has
78   //! succeded.
79   Standard_EXPORT Handle(Geom_CylindricalSurface) TransferRigthCylindricalSurface (const Handle(IGESSolid_CylindricalSurface)& start);
80   
81   //! Returns ConicalSurface from Geom if the transfer has
82   //! succeded.
83   Standard_EXPORT Handle(Geom_ConicalSurface) TransferRigthConicalSurface (const Handle(IGESSolid_ConicalSurface)& start);
84   
85   //! Returns SphericalSurface from Geom if the transfer has
86   //! succeded.
87   Standard_EXPORT Handle(Geom_SphericalSurface) TransferSphericalSurface (const Handle(IGESSolid_SphericalSurface)& start);
88   
89   //! Returns SphericalSurface from Geom if the transfer has
90   //! succeded.
91   Standard_EXPORT Handle(Geom_ToroidalSurface) TransferToroidalSurface (const Handle(IGESSolid_ToroidalSurface)& start);
92   
93   //! Returns BSplineSurface  from Geom if the transfer has
94   //! succeded.
95   Standard_EXPORT Handle(Geom_BSplineSurface) TransferSplineSurface (const Handle(IGESGeom_SplineSurface)& start);
96   
97   //! Returns BSplineSurface  from Geom if the transfer has
98   //! succeded.
99   Standard_EXPORT Handle(Geom_BSplineSurface) TransferBSplineSurface (const Handle(IGESGeom_BSplineSurface)& start);
100
101
102
103
104 protected:
105
106
107
108
109
110 private:
111
112
113
114
115
116 };
117
118
119
120
121
122
123
124 #endif // _IGESToBRep_BasicSurface_HeaderFile