// 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_CommonPrt_HeaderFile #define _IntTools_CommonPrt_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TopoDS_Edge_HeaderFile #include #endif #ifndef _TopAbs_ShapeEnum_HeaderFile #include #endif #ifndef _IntTools_Range_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _IntTools_SequenceOfRanges_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _gp_Pnt_HeaderFile #include #endif class TopoDS_Edge; class IntTools_Range; class IntTools_SequenceOfRanges; class gp_Pnt; //! The class is to describe a common part
//! between two edges in 3-d space.
class IntTools_CommonPrt { 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_CommonPrt(); //! Copy constructor
Standard_EXPORT IntTools_CommonPrt(const IntTools_CommonPrt& aCPrt); Standard_EXPORT IntTools_CommonPrt& Assign(const IntTools_CommonPrt& Other) ; IntTools_CommonPrt& operator =(const IntTools_CommonPrt& Other) { return Assign(Other); } //! Sets the first edge.
Standard_EXPORT void SetEdge1(const TopoDS_Edge& anE) ; //! Sets the second edge.
Standard_EXPORT void SetEdge2(const TopoDS_Edge& anE) ; //! Sets the type of the common part
//! Vertex or Edge
Standard_EXPORT void SetType(const TopAbs_ShapeEnum aType) ; //! Sets the range of first edge.
Standard_EXPORT void SetRange1(const IntTools_Range& aR) ; //! Sets the range of first edge.
Standard_EXPORT void SetRange1(const Standard_Real tf,const Standard_Real tl) ; //! Appends the range of second edge.
Standard_EXPORT void AppendRange2(const IntTools_Range& aR) ; //! Appends the range of second edge.
Standard_EXPORT void AppendRange2(const Standard_Real tf,const Standard_Real tl) ; //! Sets a parameter of first vertex
Standard_EXPORT void SetVertexParameter1(const Standard_Real tV) ; //! Sets a parameter of second vertex
Standard_EXPORT void SetVertexParameter2(const Standard_Real tV) ; //! Returns the first edge.
Standard_EXPORT const TopoDS_Edge& Edge1() const; //! Returns the second edge
Standard_EXPORT const TopoDS_Edge& Edge2() const; //! Returns the type of the common part
Standard_EXPORT TopAbs_ShapeEnum Type() const; //! Returns the range of first edge
Standard_EXPORT const IntTools_Range& Range1() const; //! Returns the range of first edge.
Standard_EXPORT void Range1(Standard_Real& tf,Standard_Real& tl) const; //! Returns the ranges of second edge.
Standard_EXPORT const IntTools_SequenceOfRanges& Ranges2() const; //! Returns the ranges of second edge.
Standard_EXPORT IntTools_SequenceOfRanges& ChangeRanges2() ; //! Returns parameter of first vertex
Standard_EXPORT Standard_Real VertexParameter1() const; //! Returns parameter of second vertex
Standard_EXPORT Standard_Real VertexParameter2() const; //! Copies me to anOther
Standard_EXPORT void Copy(IntTools_CommonPrt& anOther) const; //! Modifier
Standard_EXPORT Standard_Boolean AllNullFlag() const; //! Selector
Standard_EXPORT void SetAllNullFlag(const Standard_Boolean aFlag) ; //! Modifier
Standard_EXPORT void SetBoundingPoints(const gp_Pnt& aP1,const gp_Pnt& aP2) ; //! Selector
Standard_EXPORT void BoundingPoints(gp_Pnt& aP1,gp_Pnt& aP2) const; protected: private: TopoDS_Edge myEdge1; TopoDS_Edge myEdge2; TopAbs_ShapeEnum myType; IntTools_Range myRange1; Standard_Real myVertPar1; Standard_Real myVertPar2; IntTools_SequenceOfRanges myRanges2; Standard_Boolean myAllNullFlag; gp_Pnt myPnt1; gp_Pnt myPnt2; }; // other Inline functions and methods (like "C++: function call" methods) #endif