Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:46:40

0001 // Created on: 1994-03-14
0002 // Created by: Frederic UNTEREINER
0003 // Copyright (c) 1994-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESToBRep_BasicSurface_HeaderFile
0018 #define _IGESToBRep_BasicSurface_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IGESToBRep_CurveAndSurface.hxx>
0025 class Geom_Surface;
0026 class IGESData_IGESEntity;
0027 class Geom_Plane;
0028 class IGESSolid_PlaneSurface;
0029 class Geom_CylindricalSurface;
0030 class IGESSolid_CylindricalSurface;
0031 class Geom_ConicalSurface;
0032 class IGESSolid_ConicalSurface;
0033 class Geom_SphericalSurface;
0034 class IGESSolid_SphericalSurface;
0035 class Geom_ToroidalSurface;
0036 class IGESSolid_ToroidalSurface;
0037 class Geom_BSplineSurface;
0038 class IGESGeom_SplineSurface;
0039 class IGESGeom_BSplineSurface;
0040 
0041 //! Provides methods to transfer basic geometric surface entities
0042 //! from IGES to CASCADE.
0043 //! These can be :
0044 //! * Spline surface
0045 //! * BSpline surface
0046 class IGESToBRep_BasicSurface : public IGESToBRep_CurveAndSurface
0047 {
0048 public:
0049   DEFINE_STANDARD_ALLOC
0050 
0051   //! Creates  a tool BasicSurface  ready  to  run, with
0052   //! epsilons  set  to  1.E-04,  TheModeTopo  to  True,  the
0053   //! optimization of  the continuity to False.
0054   Standard_EXPORT IGESToBRep_BasicSurface();
0055 
0056   //! Creates a tool BasicSurface ready to run and sets its
0057   //! fields as CS's.
0058   Standard_EXPORT IGESToBRep_BasicSurface(const IGESToBRep_CurveAndSurface& CS);
0059 
0060   //! Creates a tool BasicSurface ready to run.
0061   Standard_EXPORT IGESToBRep_BasicSurface(const Standard_Real    eps,
0062                                           const Standard_Real    epsGeom,
0063                                           const Standard_Real    epsCoeff,
0064                                           const Standard_Boolean mode,
0065                                           const Standard_Boolean modeapprox,
0066                                           const Standard_Boolean optimized);
0067 
0068   //! Returns Surface  from Geom if the last transfer has succeeded.
0069   Standard_EXPORT Handle(Geom_Surface) TransferBasicSurface(
0070     const Handle(IGESData_IGESEntity)& start);
0071 
0072   //! Returns Plane from Geom if the transfer has succeeded.
0073   Standard_EXPORT Handle(Geom_Plane) TransferPlaneSurface(
0074     const Handle(IGESSolid_PlaneSurface)& start);
0075 
0076   //! Returns CylindricalSurface from Geom if the transfer has succeeded.
0077   Standard_EXPORT Handle(Geom_CylindricalSurface) TransferRigthCylindricalSurface(
0078     const Handle(IGESSolid_CylindricalSurface)& start);
0079 
0080   //! Returns ConicalSurface from Geom if the transfer has succeeded.
0081   Standard_EXPORT Handle(Geom_ConicalSurface) TransferRigthConicalSurface(
0082     const Handle(IGESSolid_ConicalSurface)& start);
0083 
0084   //! Returns SphericalSurface from Geom if the transfer has succeeded.
0085   Standard_EXPORT Handle(Geom_SphericalSurface) TransferSphericalSurface(
0086     const Handle(IGESSolid_SphericalSurface)& start);
0087 
0088   //! Returns SphericalSurface from Geom if the transfer has succeeded.
0089   Standard_EXPORT Handle(Geom_ToroidalSurface) TransferToroidalSurface(
0090     const Handle(IGESSolid_ToroidalSurface)& start);
0091 
0092   //! Returns BSplineSurface  from Geom if the transfer has succeeded.
0093   Standard_EXPORT Handle(Geom_BSplineSurface) TransferSplineSurface(
0094     const Handle(IGESGeom_SplineSurface)& start);
0095 
0096   //! Returns BSplineSurface  from Geom if the transfer has succeeded.
0097   Standard_EXPORT Handle(Geom_BSplineSurface) TransferBSplineSurface(
0098     const Handle(IGESGeom_BSplineSurface)& start);
0099 };
0100 
0101 #endif // _IGESToBRep_BasicSurface_HeaderFile