Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-21 08:28:27

0001 // Copyright (c) 2021 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _GeomConvert_Units_HeaderFile
0015 #define _GeomConvert_Units_HeaderFile
0016 
0017 #include <Standard_Handle.hxx>
0018 class Geom2d_Curve;
0019 class Geom_Surface;
0020 
0021 //! Class contains conversion methods for 2d geom objects
0022 class GeomConvert_Units
0023 {
0024 public:
0025   DEFINE_STANDARD_ALLOC
0026 
0027   //! Convert 2d curve for change angle unit from radian to degree
0028   Standard_EXPORT static Handle(Geom2d_Curve) RadianToDegree(
0029     const Handle(Geom2d_Curve)& theCurve,
0030     const Handle(Geom_Surface)& theSurface,
0031     const Standard_Real         theLengthFactor,
0032     const Standard_Real         theFactorRadianDegree);
0033 
0034   //! Convert 2d curve for change angle unit from degree to radian
0035   Standard_EXPORT static Handle(Geom2d_Curve) DegreeToRadian(
0036     const Handle(Geom2d_Curve)& theCurve,
0037     const Handle(Geom_Surface)& theSurface,
0038     const Standard_Real         theLengthFactor,
0039     const Standard_Real         theFactorRadianDegree);
0040 
0041   //! return 2d curve as 'mirror' for given
0042   Standard_EXPORT static Handle(Geom2d_Curve) MirrorPCurve(const Handle(Geom2d_Curve)& theCurve);
0043 };
0044 
0045 #endif // _GeomConvert_Units_HeaderFile