File indexing completed on 2025-01-18 10:04:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeFix_Root_HeaderFile
0018 #define _ShapeFix_Root_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <Standard_Transient.hxx>
0025 #include <Message_Gravity.hxx>
0026 #include <Standard_Integer.hxx>
0027
0028 #include <ShapeExtend_BasicMsgRegistrator.hxx>
0029
0030 class ShapeBuild_ReShape;
0031 class ShapeExtend_BasicMsgRegistrator;
0032 class Message_Msg;
0033
0034
0035 class ShapeFix_Root;
0036 DEFINE_STANDARD_HANDLE(ShapeFix_Root, Standard_Transient)
0037
0038
0039
0040
0041
0042
0043 class ShapeFix_Root : public Standard_Transient
0044 {
0045
0046 public:
0047
0048
0049
0050 Standard_EXPORT ShapeFix_Root();
0051
0052
0053 Standard_EXPORT virtual void Set (const Handle(ShapeFix_Root)& Root);
0054
0055
0056 Standard_EXPORT virtual void SetContext (const Handle(ShapeBuild_ReShape)& context);
0057
0058
0059 Handle(ShapeBuild_ReShape) Context() const;
0060
0061
0062 Standard_EXPORT virtual void SetMsgRegistrator (const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg);
0063
0064
0065 Handle(ShapeExtend_BasicMsgRegistrator) MsgRegistrator() const;
0066
0067
0068 Standard_EXPORT virtual void SetPrecision (const Standard_Real preci);
0069
0070
0071 Standard_Real Precision() const;
0072
0073
0074 Standard_EXPORT virtual void SetMinTolerance (const Standard_Real mintol);
0075
0076
0077 Standard_Real MinTolerance() const;
0078
0079
0080 Standard_EXPORT virtual void SetMaxTolerance (const Standard_Real maxtol);
0081
0082
0083 Standard_Real MaxTolerance() const;
0084
0085
0086 Standard_Real LimitTolerance (const Standard_Real toler) const;
0087
0088
0089
0090 Standard_EXPORT void SendMsg (const TopoDS_Shape& shape, const Message_Msg& message, const Message_Gravity gravity = Message_Info) const;
0091
0092
0093
0094 void SendMsg (const Message_Msg& message, const Message_Gravity gravity = Message_Info) const;
0095
0096
0097
0098 void SendWarning (const TopoDS_Shape& shape, const Message_Msg& message) const;
0099
0100
0101 void SendWarning (const Message_Msg& message) const;
0102
0103
0104
0105 void SendFail (const TopoDS_Shape& shape, const Message_Msg& message) const;
0106
0107
0108 void SendFail (const Message_Msg& message) const;
0109
0110
0111
0112
0113 DEFINE_STANDARD_RTTIEXT(ShapeFix_Root,Standard_Transient)
0114
0115 protected:
0116
0117
0118
0119
0120 static Standard_Boolean NeedFix (const Standard_Integer flag, const Standard_Boolean def = Standard_True);
0121
0122 TopoDS_Shape myShape;
0123
0124
0125 private:
0126
0127
0128 Handle(ShapeBuild_ReShape) myContext;
0129 Handle(ShapeExtend_BasicMsgRegistrator) myMsgReg;
0130 Standard_Real myPrecision;
0131 Standard_Real myMinTol;
0132 Standard_Real myMaxTol;
0133
0134
0135 };
0136
0137
0138 #include <ShapeFix_Root.lxx>
0139
0140
0141
0142
0143
0144 #endif