// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _ShapeFix_Root_HeaderFile #define _ShapeFix_Root_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Root_HeaderFile #include #endif #ifndef _Handle_ShapeBuild_ReShape_HeaderFile #include #endif #ifndef _Handle_ShapeExtend_BasicMsgRegistrator_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _TopoDS_Shape_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Message_Gravity_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class ShapeBuild_ReShape; class ShapeExtend_BasicMsgRegistrator; class TopoDS_Shape; class Message_Msg; //! Root class for fixing operations
//! Provides context for recording changes (optional),
//! basic precision value and limit (minimal and
//! maximal) values for tolerances,
//! and message registrator
class ShapeFix_Root : public MMgt_TShared { public: //! Empty Constructor (no context is created)
Standard_EXPORT ShapeFix_Root(); //! Copy all fields from another Root object
Standard_EXPORT virtual void Set(const Handle(ShapeFix_Root)& Root) ; //! Sets context
Standard_EXPORT virtual void SetContext(const Handle(ShapeBuild_ReShape)& context) ; //! Returns context
Handle_ShapeBuild_ReShape Context() const; //! Sets message registrator
Standard_EXPORT virtual void SetMsgRegistrator(const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg) ; //! Returns message registrator
Handle_ShapeExtend_BasicMsgRegistrator MsgRegistrator() const; //! Sets basic precision value
Standard_EXPORT virtual void SetPrecision(const Standard_Real preci) ; //! Returns basic precision value
Standard_Real Precision() const; //! Sets minimal allowed tolerance
Standard_EXPORT virtual void SetMinTolerance(const Standard_Real mintol) ; //! Returns minimal allowed tolerance
Standard_Real MinTolerance() const; //! Sets maximal allowed tolerance
Standard_EXPORT virtual void SetMaxTolerance(const Standard_Real maxtol) ; //! Returns maximal allowed tolerance
Standard_Real MaxTolerance() const; //! Returns tolerance limited by [myMinTol,myMaxTol]
Standard_Real LimitTolerance(const Standard_Real toler) const; //! Sends a message to be attached to the shape.
//! Calls corresponding message of message registrator.
Standard_EXPORT void SendMsg(const TopoDS_Shape& shape,const Message_Msg& message,const Message_Gravity gravity = Message_Info) const; //! Sends a message to be attached to myShape.
//! Calls previous method.
void SendMsg(const Message_Msg& message,const Message_Gravity gravity = Message_Info) const; //! Sends a warning to be attached to the shape.
//! Calls SendMsg with gravity set to Message_Warning.
void SendWarning(const TopoDS_Shape& shape,const Message_Msg& message) const; //! Calls previous method for myShape.
void SendWarning(const Message_Msg& message) const; //! Sends a fail to be attached to the shape.
//! Calls SendMsg with gravity set to Message_Fail.
void SendFail(const TopoDS_Shape& shape,const Message_Msg& message) const; //! Calls previous method for myShape.
void SendFail(const Message_Msg& message) const; DEFINE_STANDARD_RTTI(ShapeFix_Root) protected: //! Auxiliary method for work with three-position
//! (on/off/default) flags (modes) in ShapeFix.
static Standard_Boolean NeedFix(const Standard_Integer flag,const Standard_Boolean def = Standard_True) ; TopoDS_Shape myShape; private: Handle_ShapeBuild_ReShape myContext; Handle_ShapeExtend_BasicMsgRegistrator myMsgReg; Standard_Real myPrecision; Standard_Real myMinTol; Standard_Real myMaxTol; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif