// 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_Shape_HeaderFile #define _ShapeFix_Shape_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Shape_HeaderFile #include #endif #ifndef _TopoDS_Shape_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Solid_HeaderFile #include #endif #ifndef _TopTools_MapOfShape_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _ShapeFix_Root_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Shell_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Face_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Wire_HeaderFile #include #endif #ifndef _Handle_ShapeFix_Edge_HeaderFile #include #endif #ifndef _ShapeExtend_Status_HeaderFile #include #endif #ifndef _Handle_ShapeExtend_BasicMsgRegistrator_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class ShapeFix_Solid; class TopoDS_Shape; class ShapeFix_Shell; class ShapeFix_Face; class ShapeFix_Wire; class ShapeFix_Edge; class ShapeExtend_BasicMsgRegistrator; //! Fixing shape in general
class ShapeFix_Shape : public ShapeFix_Root { public: //! Empty Constructor
Standard_EXPORT ShapeFix_Shape(); //! Initislises by shape.
Standard_EXPORT ShapeFix_Shape(const TopoDS_Shape& shape); //! Initislises by shape.
Standard_EXPORT void Init(const TopoDS_Shape& shape) ; //! Iterates on sub- shape and performs fixes
Standard_EXPORT Standard_Boolean Perform() ; //! Returns resulting shape
Standard_EXPORT TopoDS_Shape Shape() const; //! Returns tool for fixing solids.
Handle_ShapeFix_Solid FixSolidTool() const; //! Returns tool for fixing shells.
Handle_ShapeFix_Shell FixShellTool() const; //! Returns tool for fixing faces.
Handle_ShapeFix_Face FixFaceTool() const; //! Returns tool for fixing wires.
Handle_ShapeFix_Wire FixWireTool() const; //! Returns tool for fixing edges.
Handle_ShapeFix_Edge FixEdgeTool() const; //! Returns the status of the last Fix.
//! This can be a combination of the following flags:
//! ShapeExtend_DONE1: some free edges were fixed
//! ShapeExtend_DONE2: some free wires were fixed
//! ShapeExtend_DONE3: some free faces were fixed
//! ShapeExtend_DONE4: some free shells were fixed
//! ShapeExtend_DONE5: some free solids were fixed
//! ShapeExtend_DONE6: shapes in compound(s) were fixed
Standard_EXPORT Standard_Boolean Status(const ShapeExtend_Status status) const; //! Sets message registrator
Standard_EXPORT virtual void SetMsgRegistrator(const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg) ; //! Sets basic precision value (also to FixSolidTool)
Standard_EXPORT virtual void SetPrecision(const Standard_Real preci) ; //! Sets minimal allowed tolerance (also to FixSolidTool)
Standard_EXPORT virtual void SetMinTolerance(const Standard_Real mintol) ; //! Sets maximal allowed tolerance (also to FixSolidTool)
Standard_EXPORT virtual void SetMaxTolerance(const Standard_Real maxtol) ; //! Returns (modifiable) the mode for applying fixes of
//! ShapeFix_Solid, by default True.
Standard_Integer& FixSolidMode() ; //! Returns (modifiable) the mode for applying fixes of
//! ShapeFix_Shell, by default True.
Standard_Integer& FixFreeShellMode() ; //! Returns (modifiable) the mode for applying fixes of
//! ShapeFix_Face, by default True.
Standard_Integer& FixFreeFaceMode() ; //! Returns (modifiable) the mode for applying fixes of
//! ShapeFix_Wire, by default True.
Standard_Integer& FixFreeWireMode() ; //! Returns (modifiable) the mode for applying
//! ShapeFix::SameParameter after all fixes, by default True.
Standard_Integer& FixSameParameterMode() ; //! Returns (modifiable) the mode for applying
//! ShapeFix::FixVertexPosition before all fixes, by default False.
Standard_Integer& FixVertexPositionMode() ; DEFINE_STANDARD_RTTI(ShapeFix_Shape) protected: Standard_EXPORT void SameParameter(const TopoDS_Shape& shape,const Standard_Boolean force) ; TopoDS_Shape myResult; Handle_ShapeFix_Solid myFixSolid; TopTools_MapOfShape myMapFixingShape; Standard_Integer myFixSolidMode; Standard_Integer myFixShellMode; Standard_Integer myFixFaceMode; Standard_Integer myFixWireMode; Standard_Integer myFixSameParameterMode; Standard_Integer myFixVertexPositionMode; Standard_Integer myStatus; private: }; #include // other Inline functions and methods (like "C++: function call" methods) #endif