Back to home page

EIC code displayed by LXR

 
 

    


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

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 
0026 class ShapeCustom_RestrictionParameters;
0027 DEFINE_STANDARD_HANDLE(ShapeCustom_RestrictionParameters, Standard_Transient)
0028 
0029 //! This class is axuluary tool which contains parameters for
0030 //! BSplineRestriction class.
0031 class ShapeCustom_RestrictionParameters : public Standard_Transient
0032 {
0033 
0034 public:
0035 
0036   
0037   //! Sets default parameters.
0038   Standard_EXPORT ShapeCustom_RestrictionParameters();
0039   
0040   //! Returns (modifiable) maximal degree of approximation.
0041     Standard_Integer& GMaxDegree();
0042   
0043   //! Returns (modifiable) maximal number of spans of
0044   //! approximation.
0045     Standard_Integer& GMaxSeg();
0046   
0047   //! Sets flag for define if Plane converted to BSpline surface.
0048     Standard_Boolean& ConvertPlane();
0049   
0050   //! Sets flag for define if Bezier surface converted to BSpline
0051   //! surface.
0052     Standard_Boolean& ConvertBezierSurf();
0053   
0054   //! Sets flag for define if surface of Revolution converted to
0055   //! BSpline surface.
0056     Standard_Boolean& ConvertRevolutionSurf();
0057   
0058   //! Sets flag for define if surface of LinearExtrusion converted
0059   //! to BSpline surface.
0060     Standard_Boolean& ConvertExtrusionSurf();
0061   
0062   //! Sets flag for define if Offset surface converted to BSpline
0063   //! surface.
0064     Standard_Boolean& ConvertOffsetSurf();
0065   
0066   //! Sets flag for define if cylindrical surface converted to BSpline
0067   //! surface.
0068     Standard_Boolean& ConvertCylindricalSurf();
0069   
0070   //! Sets flag for define if conical surface converted to BSpline
0071   //! surface.
0072     Standard_Boolean& ConvertConicalSurf();
0073   
0074   //! Sets flag for define if toroidal surface converted to BSpline
0075   //! surface.
0076     Standard_Boolean& ConvertToroidalSurf();
0077   
0078   //! Sets flag for define if spherical surface converted to BSpline
0079   //! surface.
0080     Standard_Boolean& ConvertSphericalSurf();
0081   
0082   //! Sets Segment mode for surface. If Segment is True surface is
0083   //! approximated in the bondaries of face lying on this surface.
0084     Standard_Boolean& SegmentSurfaceMode();
0085   
0086   //! Sets flag for define if 3d curve converted to BSpline curve.
0087     Standard_Boolean& ConvertCurve3d();
0088   
0089   //! Sets flag for define if Offset curve3d converted to BSpline
0090   //! surface.
0091     Standard_Boolean& ConvertOffsetCurv3d();
0092   
0093   //! Returns (modifiable) flag for define if 2d curve converted
0094   //! to BSpline curve.
0095     Standard_Boolean& ConvertCurve2d();
0096   
0097   //! Returns (modifiable) flag for define if Offset curve2d
0098   //! converted to BSpline surface.
0099     Standard_Boolean& ConvertOffsetCurv2d();
0100 
0101 
0102 
0103 
0104   DEFINE_STANDARD_RTTIEXT(ShapeCustom_RestrictionParameters,Standard_Transient)
0105 
0106 protected:
0107 
0108 
0109 
0110 
0111 private:
0112 
0113 
0114   Standard_Integer myGMaxDegree;
0115   Standard_Integer myGMaxSeg;
0116   Standard_Boolean myConvPlane;
0117   Standard_Boolean myConvConicalSurf;
0118   Standard_Boolean myConvSphericalSurf;
0119   Standard_Boolean myConvCylindricalSurf;
0120   Standard_Boolean myConvToroidalSurf;
0121   Standard_Boolean myConvBezierSurf;
0122   Standard_Boolean myConvRevolSurf;
0123   Standard_Boolean myConvExtrSurf;
0124   Standard_Boolean myConvOffsetSurf;
0125   Standard_Boolean mySegmentSurfaceMode;
0126   Standard_Boolean myConvCurve3d;
0127   Standard_Boolean myConvOffsetCurv3d;
0128   Standard_Boolean myConvCurve2d;
0129   Standard_Boolean myConvOffsetCurv2d;
0130 
0131 
0132 };
0133 
0134 
0135 #include <ShapeCustom_RestrictionParameters.lxx>
0136 
0137 
0138 
0139 
0140 
0141 #endif // _ShapeCustom_RestrictionParameters_HeaderFile