// 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 _GccAna_Pnt2dBisec_HeaderFile #define _GccAna_Pnt2dBisec_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _gp_Lin2d_HeaderFile #include #endif class StdFail_NotDone; class gp_Pnt2d; class gp_Lin2d; //! This class implements the algorithms used to
//! create the bisecting line between two 2d points
//! Describes functions for building a bisecting line between two 2D points.
//! The bisecting line between two points is the bisector of
//! the segment which joins the two points, if these are not coincident.
//! The algorithm does not find a solution if the two points are coincident.
//! A Pnt2dBisec object provides a framework for:
//! - defining the construction of the bisecting line,
//! - implementing the construction algorithm, and consulting the result.
class GccAna_Pnt2dBisec { 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); } //! Constructs a bisecting line between the points Point1 and Point2.
Standard_EXPORT GccAna_Pnt2dBisec(const gp_Pnt2d& Point1,const gp_Pnt2d& Point2); //! Returns true (this construction algorithm never fails).
Standard_EXPORT Standard_Boolean IsDone() const; //! Returns true if this algorithm has a solution, i.e. if the
//! two points are not coincident.
Standard_EXPORT Standard_Boolean HasSolution() const; //! Returns a line, representing the solution computed by this algorithm.
Standard_EXPORT gp_Lin2d ThisSolution() const; protected: private: Standard_Boolean WellDone; Standard_Boolean HasSol; gp_Lin2d linsol; }; // other Inline functions and methods (like "C++: function call" methods) #endif