// 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 _BRepFeat_MakeCylindricalHole_HeaderFile #define _BRepFeat_MakeCylindricalHole_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _gp_Ax1_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _BRepFeat_Status_HeaderFile #include #endif #ifndef _TopoDS_Face_HeaderFile #include #endif #ifndef _BRepFeat_Builder_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class StdFail_NotDone; class Standard_ConstructionError; class TopoDS_Shape; class gp_Ax1; //! Provides a tool to make cylindrical holes on a shape.
class BRepFeat_MakeCylindricalHole : public BRepFeat_Builder { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Empty constructor.
BRepFeat_MakeCylindricalHole(); //! Creates the tool to perform hole(s) on the shape .
BRepFeat_MakeCylindricalHole(const TopoDS_Shape& S); //! Creates the tool to perform hole(s) on the shape ,
//! with the axis .
BRepFeat_MakeCylindricalHole(const TopoDS_Shape& S,const gp_Ax1& Axis); //! Sets the axis of the hole(s).
void Init(const gp_Ax1& Axis) ; //! Sets the shape and axis on which hole(s) will be
//! performed.
void Init(const TopoDS_Shape& S,const gp_Ax1& Axis) ; //! Performs every holes of radius . This
//! command has the same effect as a cut operation
//! with an infinite cylinder defined by the given
//! axis and .
Standard_EXPORT void Perform(const Standard_Real Radius) ; //! Performs evry hole of radius located
//! between PFrom and PTo on the given axis. If
//! is set to Standard_False no control
//! are done on the resulting shape after the
//! operation is performed.
Standard_EXPORT void Perform(const Standard_Real Radius,const Standard_Real PFrom,const Standard_Real PTo,const Standard_Boolean WithControl = Standard_True) ; //! Performs the first hole of radius , in the
//! direction of the defined axis. First hole signify
//! first encountered after the origin of the axis. If
//! is set to Standard_False no control
//! are done on the resulting shape after the
//! operation is performed.
Standard_EXPORT void PerformThruNext(const Standard_Real Radius,const Standard_Boolean WithControl = Standard_True) ; //! Performs evry holes of radius located
//! after the origin of the given axis. If
//! is set to Standard_False no control
//! are done on the resulting shape after the
//! operation is performed.
Standard_EXPORT void PerformUntilEnd(const Standard_Real Radius,const Standard_Boolean WithControl = Standard_True) ; //! Performs a blind hole of radius and
//! length . The length is measured from the
//! origin of the given axis. If is set
//! to Standard_False no control are done after the
//! operation is performed.
Standard_EXPORT void PerformBlind(const Standard_Real Radius,const Standard_Real Length,const Standard_Boolean WithControl = Standard_True) ; //! Returns the status after a hole is performed.
BRepFeat_Status Status() const; //! Builds the resulting shape (redefined from
//! MakeShape). Invalidates the given parts of tools
//! if any, and performs the result of the local
//! operation.
Standard_EXPORT virtual void Build() ; protected: private: Standard_EXPORT BRepFeat_Status Validate() ; gp_Ax1 myAxis; Standard_Boolean myAxDef; BRepFeat_Status myStatus; Standard_Boolean myIsBlind; Standard_Boolean myValidate; TopoDS_Face myTopFace; TopoDS_Face myBotFace; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif