1 // Created on: 1991-04-03
2 // Created by: Remi GILET
3 // Copyright (c) 1991-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _GccAna_Pnt2dBisec_HeaderFile
18 #define _GccAna_Pnt2dBisec_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <gp_Lin2d.hxx>
26 class StdFail_NotDone;
31 //! This class implements the algorithms used to
32 //! create the bisecting line between two 2d points
33 //! Describes functions for building a bisecting line between two 2D points.
34 //! The bisecting line between two points is the bisector of
35 //! the segment which joins the two points, if these are not coincident.
36 //! The algorithm does not find a solution if the two points are coincident.
37 //! A Pnt2dBisec object provides a framework for:
38 //! - defining the construction of the bisecting line,
39 //! - implementing the construction algorithm, and consulting the result.
40 class GccAna_Pnt2dBisec
47 //! Constructs a bisecting line between the points Point1 and Point2.
48 Standard_EXPORT GccAna_Pnt2dBisec(const gp_Pnt2d& Point1, const gp_Pnt2d& Point2);
50 //! Returns true (this construction algorithm never fails).
51 Standard_EXPORT Standard_Boolean IsDone() const;
53 //! Returns true if this algorithm has a solution, i.e. if the
54 //! two points are not coincident.
55 Standard_EXPORT Standard_Boolean HasSolution() const;
57 //! Returns a line, representing the solution computed by this algorithm.
58 Standard_EXPORT gp_Lin2d ThisSolution() const;
73 Standard_Boolean WellDone;
74 Standard_Boolean HasSol;
86 #endif // _GccAna_Pnt2dBisec_HeaderFile