Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:04

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