// 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 _IntTools_ShrunkRange_HeaderFile #define _IntTools_ShrunkRange_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TopoDS_Edge_HeaderFile #include #endif #ifndef _TopoDS_Vertex_HeaderFile #include #endif #ifndef _IntTools_Range_HeaderFile #include #endif #ifndef _Bnd_Box_HeaderFile #include #endif #ifndef _IntTools_PContext_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class TopoDS_Edge; class TopoDS_Vertex; class IntTools_Range; class IntTools_Context; class Bnd_Box; //! The class provides the computation of
//! a working (shrunk) range [t1, t2] for
//! the 3D-curve of the edge.
class IntTools_ShrunkRange { 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
Standard_EXPORT IntTools_ShrunkRange(); Standard_EXPORT IntTools_ShrunkRange(const TopoDS_Edge& aE,const TopoDS_Vertex& aV1,const TopoDS_Vertex& aV2,const IntTools_Range& aR,const IntTools_Context& ICtx); //! Sets an shrunk range
Standard_EXPORT void SetShrunkRange(const IntTools_Range& aR) ; //! Returns shrunk range
Standard_EXPORT const IntTools_Range& ShrunkRange() const; //! Returns bounding box for edge restricted
//! by shrunk range
Standard_EXPORT const Bnd_Box& BndBox() const; //! Returns edge for which
//! the shrunk range is computed
Standard_EXPORT const TopoDS_Edge& Edge() const; //! Computes shrunk range for
//! an edge given in constructor
//!
Standard_EXPORT void Perform() ; //! Returns true if no error occured
//! during shrunk range computation
Standard_EXPORT Standard_Boolean IsDone() const; //! Returns code of computing shrunk range
//! completion
//! 0 - means successful completion
//! 1 - nothing has been done
//! 2 - initial range is out of edge's range
//! 3 - first boundary of initial range is more than
//! last boundary
//! 4 - projection of first vertex failed
//! 5 - projection of second vertex failed
//! 6 - shrunk range can not be computed
//! shrunk range is setted to initial range
Standard_EXPORT Standard_Integer ErrorStatus() const; protected: private: TopoDS_Edge myEdge; TopoDS_Vertex myV1; TopoDS_Vertex myV2; IntTools_Range myRange; IntTools_Range myShrunkRange; Bnd_Box myBndBox; IntTools_PContext myCtx; Standard_Boolean myIsDone; Standard_Integer myErrorStatus; }; // other Inline functions and methods (like "C++: function call" methods) #endif