Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-05 09:23:50

0001 // Created on: 2000-05-22
0002 // Created by: data exchange team
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _ShapeCustom_RestrictionParameters_HeaderFile
0017 #define _ShapeCustom_RestrictionParameters_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Integer.hxx>
0023 #include <Standard_Transient.hxx>
0024 
0025 //! This class is axuluary tool which contains parameters for
0026 //! BSplineRestriction class.
0027 class ShapeCustom_RestrictionParameters : public Standard_Transient
0028 {
0029 
0030 public:
0031   //! Sets default parameters.
0032   Standard_EXPORT ShapeCustom_RestrictionParameters();
0033 
0034   //! Returns (modifiable) maximal degree of approximation.
0035   int& GMaxDegree();
0036 
0037   //! Returns (modifiable) maximal number of spans of
0038   //! approximation.
0039   int& GMaxSeg();
0040 
0041   //! Sets flag for define if Plane converted to BSpline surface.
0042   bool& ConvertPlane();
0043 
0044   //! Sets flag for define if Bezier surface converted to BSpline
0045   //! surface.
0046   bool& ConvertBezierSurf();
0047 
0048   //! Sets flag for define if surface of Revolution converted to
0049   //! BSpline surface.
0050   bool& ConvertRevolutionSurf();
0051 
0052   //! Sets flag for define if surface of LinearExtrusion converted
0053   //! to BSpline surface.
0054   bool& ConvertExtrusionSurf();
0055 
0056   //! Sets flag for define if Offset surface converted to BSpline
0057   //! surface.
0058   bool& ConvertOffsetSurf();
0059 
0060   //! Sets flag for define if cylindrical surface converted to BSpline
0061   //! surface.
0062   bool& ConvertCylindricalSurf();
0063 
0064   //! Sets flag for define if conical surface converted to BSpline
0065   //! surface.
0066   bool& ConvertConicalSurf();
0067 
0068   //! Sets flag for define if toroidal surface converted to BSpline
0069   //! surface.
0070   bool& ConvertToroidalSurf();
0071 
0072   //! Sets flag for define if spherical surface converted to BSpline
0073   //! surface.
0074   bool& ConvertSphericalSurf();
0075 
0076   //! Sets Segment mode for surface. If Segment is True surface is
0077   //! approximated in the bondaries of face lying on this surface.
0078   bool& SegmentSurfaceMode();
0079 
0080   //! Sets flag for define if 3d curve converted to BSpline curve.
0081   bool& ConvertCurve3d();
0082 
0083   //! Sets flag for define if Offset curve3d converted to BSpline
0084   //! surface.
0085   bool& ConvertOffsetCurv3d();
0086 
0087   //! Returns (modifiable) flag for define if 2d curve converted
0088   //! to BSpline curve.
0089   bool& ConvertCurve2d();
0090 
0091   //! Returns (modifiable) flag for define if Offset curve2d
0092   //! converted to BSpline surface.
0093   bool& ConvertOffsetCurv2d();
0094 
0095   DEFINE_STANDARD_RTTIEXT(ShapeCustom_RestrictionParameters, Standard_Transient)
0096 
0097 private:
0098   int  myGMaxDegree;
0099   int  myGMaxSeg;
0100   bool myConvPlane;
0101   bool myConvConicalSurf;
0102   bool myConvSphericalSurf;
0103   bool myConvCylindricalSurf;
0104   bool myConvToroidalSurf;
0105   bool myConvBezierSurf;
0106   bool myConvRevolSurf;
0107   bool myConvExtrSurf;
0108   bool myConvOffsetSurf;
0109   bool mySegmentSurfaceMode;
0110   bool myConvCurve3d;
0111   bool myConvOffsetCurv3d;
0112   bool myConvCurve2d;
0113   bool myConvOffsetCurv2d;
0114 };
0115 
0116 #include <ShapeCustom_RestrictionParameters.lxx>
0117 
0118 #endif // _ShapeCustom_RestrictionParameters_HeaderFile