File indexing completed on 2025-01-18 10:04:58
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeUpgrade_Tool_HeaderFile
0018 #define _ShapeUpgrade_Tool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Transient.hxx>
0024 class ShapeBuild_ReShape;
0025
0026
0027 class ShapeUpgrade_Tool;
0028 DEFINE_STANDARD_HANDLE(ShapeUpgrade_Tool, Standard_Transient)
0029
0030
0031
0032
0033
0034 class ShapeUpgrade_Tool : public Standard_Transient
0035 {
0036
0037 public:
0038
0039
0040
0041 Standard_EXPORT ShapeUpgrade_Tool();
0042
0043
0044 Standard_EXPORT void Set (const Handle(ShapeUpgrade_Tool)& tool);
0045
0046
0047 void SetContext (const Handle(ShapeBuild_ReShape)& context);
0048
0049
0050 Handle(ShapeBuild_ReShape) Context() const;
0051
0052
0053 void SetPrecision (const Standard_Real preci);
0054
0055
0056 Standard_Real Precision() const;
0057
0058
0059 void SetMinTolerance (const Standard_Real mintol);
0060
0061
0062 Standard_Real MinTolerance() const;
0063
0064
0065 void SetMaxTolerance (const Standard_Real maxtol);
0066
0067
0068 Standard_Real MaxTolerance() const;
0069
0070
0071 Standard_Real LimitTolerance (const Standard_Real toler) const;
0072
0073
0074
0075
0076 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_Tool,Standard_Transient)
0077
0078 protected:
0079
0080
0081
0082
0083 private:
0084
0085
0086 Handle(ShapeBuild_ReShape) myContext;
0087 Standard_Real myPrecision;
0088 Standard_Real myMinTol;
0089 Standard_Real myMaxTol;
0090
0091
0092 };
0093
0094
0095 #include <ShapeUpgrade_Tool.lxx>
0096
0097
0098
0099
0100
0101 #endif