// Copyright (c) 2023 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _DEIGES_Parameters_HeaderFile #define _DEIGES_Parameters_HeaderFile #include #include #include #include #include class DEIGES_Parameters { public: enum ReadMode_BSplineContinuity { ReadMode_BSplineContinuity_C0 = 0, ReadMode_BSplineContinuity_C1, ReadMode_BSplineContinuity_C2 }; enum ReadMode_Precision { ReadMode_Precision_File = 0, ReadMode_Precision_User }; enum ReadMode_MaxPrecision { ReadMode_MaxPrecision_Preferred = 0, ReadMode_MaxPrecision_Forced }; enum ReadMode_SurfaceCurve { ReadMode_SurfaceCurve_Default = 0, ReadMode_SurfaceCurve_2DUse_Preferred = 2, ReadMode_SurfaceCurve_2DUse_Forced = -2, ReadMode_SurfaceCurve_3DUse_Preferred = 3, ReadMode_SurfaceCurve_3DUse_Forced = -3 }; enum WriteMode_BRep { WriteMode_BRep_Faces = 0, WriteMode_BRep_BRep }; enum WriteMode_ConvertSurface { WriteMode_ConvertSurface_Off = 0, WriteMode_ConvertSurface_On }; enum WriteMode_PrecisionMode { WriteMode_PrecisionMode_Least = -1, WriteMode_PrecisionMode_Average = 0, WriteMode_PrecisionMode_Greatest = 1, WriteMode_PrecisionMode_Session = 2 }; enum WriteMode_PlaneMode { WriteMode_PlaneMode_Plane = 0, WriteMode_PlaneMode_BSpline }; public: DEIGES_Parameters() = default; //! Initialize parameters Standard_EXPORT void InitFromStatic(); //! Reset used parameters Standard_EXPORT void Reset(); //! Returns default parameters for reading STEP files. Standard_EXPORT static DE_ShapeFixParameters GetDefaultReadingParamsIGES(); //! Returns default parameters for writing STEP files. Standard_EXPORT static DE_ShapeFixParameters GetDefaultWritingParamsIGES(); public: // Common // clang-format off ReadMode_BSplineContinuity ReadBSplineContinuity = ReadMode_BSplineContinuity_C1; //