Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-12-03 10:55:01

0001 // Created on: 1994-11-17
0002 // Created by: Marie Jose MARTZ
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 _GeomToIGES_GeomCurve_HeaderFile
0018 #define _GeomToIGES_GeomCurve_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <GeomToIGES_GeomEntity.hxx>
0025 class IGESData_IGESEntity;
0026 class Geom_Curve;
0027 class Geom_BoundedCurve;
0028 class Geom_BSplineCurve;
0029 class Geom_BezierCurve;
0030 class Geom_TrimmedCurve;
0031 class Geom_Conic;
0032 class Geom_Circle;
0033 class Geom_Ellipse;
0034 class Geom_Hyperbola;
0035 class Geom_Line;
0036 class Geom_Parabola;
0037 class Geom_OffsetCurve;
0038 
0039 //! This class implements the transfer of the Curve Entity from Geom
0040 //! To IGES. These can be:
0041 //! Curve
0042 //! . BoundedCurve
0043 //! * BSplineCurve
0044 //! * BezierCurve
0045 //! * TrimmedCurve
0046 //! . Conic
0047 //! * Circle
0048 //! * Ellipse
0049 //! * Hyperbloa
0050 //! * Line
0051 //! * Parabola
0052 //! . OffsetCurve
0053 class GeomToIGES_GeomCurve : public GeomToIGES_GeomEntity
0054 {
0055 public:
0056   DEFINE_STANDARD_ALLOC
0057 
0058   Standard_EXPORT GeomToIGES_GeomCurve();
0059 
0060   //! Creates a tool GeomCurve ready to run and sets its
0061   //! fields as GE's.
0062   Standard_EXPORT GeomToIGES_GeomCurve(const GeomToIGES_GeomEntity& GE);
0063 
0064   //! Transfer a GeometryEntity which answer True to the
0065   //! member : BRepToIGES::IsGeomCurve(Geometry). If this
0066   //! Entity could not be converted, this member returns a NullEntity.
0067   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0068     const occ::handle<Geom_Curve>& start,
0069     const double                   Udeb,
0070     const double                   Ufin);
0071 
0072   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0073     const occ::handle<Geom_BoundedCurve>& start,
0074     const double                          Udeb,
0075     const double                          Ufin);
0076 
0077   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0078     const occ::handle<Geom_BSplineCurve>& start,
0079     const double                          Udeb,
0080     const double                          Ufin);
0081 
0082   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0083     const occ::handle<Geom_BezierCurve>& start,
0084     const double                         Udeb,
0085     const double                         Ufin);
0086 
0087   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0088     const occ::handle<Geom_TrimmedCurve>& start,
0089     const double                          Udeb,
0090     const double                          Ufin);
0091 
0092   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0093     const occ::handle<Geom_Conic>& start,
0094     const double                   Udeb,
0095     const double                   Ufin);
0096 
0097   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0098     const occ::handle<Geom_Circle>& start,
0099     const double                    Udeb,
0100     const double                    Ufin);
0101 
0102   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0103     const occ::handle<Geom_Ellipse>& start,
0104     const double                     Udeb,
0105     const double                     Ufin);
0106 
0107   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0108     const occ::handle<Geom_Hyperbola>& start,
0109     const double                       Udeb,
0110     const double                       Ufin);
0111 
0112   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0113     const occ::handle<Geom_Line>& start,
0114     const double                  Udeb,
0115     const double                  Ufin);
0116 
0117   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0118     const occ::handle<Geom_Parabola>& start,
0119     const double                      Udeb,
0120     const double                      Ufin);
0121 
0122   Standard_EXPORT occ::handle<IGESData_IGESEntity> TransferCurve(
0123     const occ::handle<Geom_OffsetCurve>& start,
0124     const double                         Udeb,
0125     const double                         Ufin);
0126 };
0127 
0128 #endif // _GeomToIGES_GeomCurve_HeaderFile