Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-04 09:14:59

0001 // Created on: 1994-03-14
0002 // Created by: s:   Christophe GUYOT & 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_BasicCurve_HeaderFile
0018 #define _IGESToBRep_BasicCurve_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_Curve;
0026 class IGESData_IGESEntity;
0027 class Geom2d_Curve;
0028 class IGESGeom_BSplineCurve;
0029 class IGESGeom_CircularArc;
0030 class IGESGeom_ConicArc;
0031 class Geom_BSplineCurve;
0032 class IGESGeom_CopiousData;
0033 class Geom2d_BSplineCurve;
0034 class IGESGeom_Line;
0035 class IGESGeom_SplineCurve;
0036 class Geom_Transformation;
0037 class IGESGeom_TransformationMatrix;
0038 
0039 //! Provides methods to transfer basic geometric curves entities
0040 //! from IGES to CASCADE.
0041 //! These can be:
0042 //! * Circular arc
0043 //! * Conic arc
0044 //! * Spline curve
0045 //! * BSpline curve
0046 //! * Line
0047 //! * Copious data
0048 //! * Point
0049 //! * Transformation matrix
0050 class IGESToBRep_BasicCurve : public IGESToBRep_CurveAndSurface
0051 {
0052 public:
0053   DEFINE_STANDARD_ALLOC
0054 
0055   //! Creates a tool BasicCurve ready to run, with
0056   //! epsilons set to 1.E-04, TheModeTopo to True, the
0057   //! optimization of the continuity to False.
0058   Standard_EXPORT IGESToBRep_BasicCurve();
0059 
0060   //! Creates a tool BasicCurve ready to run and sets its
0061   //! fields as CS's.
0062   Standard_EXPORT IGESToBRep_BasicCurve(const IGESToBRep_CurveAndSurface& CS);
0063 
0064   //! Creates a tool BasicCurve ready to run.
0065   Standard_EXPORT IGESToBRep_BasicCurve(const double eps,
0066                                         const double epsGeom,
0067                                         const double epsCoeff,
0068                                         const bool   mode,
0069                                         const bool   modeapprox,
0070                                         const bool   optimized);
0071 
0072   //! Transfer a IGESEntity which answer True to the
0073   //! member : IGESToBRep::IsBasicCurve(IGESEntity). If this
0074   //! Entity could not be converted, this member returns a NullEntity.
0075   Standard_EXPORT occ::handle<Geom_Curve> TransferBasicCurve(
0076     const occ::handle<IGESData_IGESEntity>& start);
0077 
0078   //! Transfert a IGESEntity which answer True to the
0079   //! member : IGESToBRep::IsBasicCurve(IGESEntity).
0080   //! The IGESEntity must be a curve UV and its associed TRSF must
0081   //! be planar. If this Entity could not be converted, this member
0082   //! returns a NullEntity.
0083   Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dBasicCurve(
0084     const occ::handle<IGESData_IGESEntity>& start);
0085 
0086   Standard_EXPORT occ::handle<Geom_Curve> TransferBSplineCurve(
0087     const occ::handle<IGESGeom_BSplineCurve>& start);
0088 
0089   Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dBSplineCurve(
0090     const occ::handle<IGESGeom_BSplineCurve>& start);
0091 
0092   Standard_EXPORT occ::handle<Geom_Curve> TransferCircularArc(
0093     const occ::handle<IGESGeom_CircularArc>& start);
0094 
0095   Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dCircularArc(
0096     const occ::handle<IGESGeom_CircularArc>& start);
0097 
0098   Standard_EXPORT occ::handle<Geom_Curve> TransferConicArc(
0099     const occ::handle<IGESGeom_ConicArc>& start);
0100 
0101   Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dConicArc(
0102     const occ::handle<IGESGeom_ConicArc>& start);
0103 
0104   Standard_EXPORT occ::handle<Geom_BSplineCurve> TransferCopiousData(
0105     const occ::handle<IGESGeom_CopiousData>& start);
0106 
0107   Standard_EXPORT occ::handle<Geom2d_BSplineCurve> Transfer2dCopiousData(
0108     const occ::handle<IGESGeom_CopiousData>& start);
0109 
0110   Standard_EXPORT occ::handle<Geom_Curve> TransferLine(const occ::handle<IGESGeom_Line>& start);
0111 
0112   Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dLine(const occ::handle<IGESGeom_Line>& start);
0113 
0114   Standard_EXPORT occ::handle<Geom_BSplineCurve> TransferSplineCurve(
0115     const occ::handle<IGESGeom_SplineCurve>& start);
0116 
0117   Standard_EXPORT occ::handle<Geom2d_BSplineCurve> Transfer2dSplineCurve(
0118     const occ::handle<IGESGeom_SplineCurve>& start);
0119 
0120   Standard_EXPORT occ::handle<Geom_Transformation> TransferTransformation(
0121     const occ::handle<IGESGeom_TransformationMatrix>& start);
0122 };
0123 
0124 #endif // _IGESToBRep_BasicCurve_HeaderFile