|
||||
File indexing completed on 2025-01-18 10:03:31
0001 // Created on: 1991-04-03 0002 // Created by: Remi GILET 0003 // Copyright (c) 1991-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _GccAna_CircPnt2dBisec_HeaderFile 0018 #define _GccAna_CircPnt2dBisec_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <Standard_Boolean.hxx> 0025 #include <Standard_Integer.hxx> 0026 #include <gp_Circ2d.hxx> 0027 #include <gp_Pnt2d.hxx> 0028 #include <Standard_Real.hxx> 0029 class GccInt_Bisec; 0030 0031 0032 //! Describes functions for building a bisecting curve 0033 //! between a 2D circle and a point. 0034 //! A bisecting curve between a circle and a point is such a 0035 //! curve that each of its points is at the same distance from 0036 //! the circle and the point. It can be an ellipse, hyperbola, 0037 //! circle or line, depending on the relative position of the 0038 //! point and the circle. The algorithm computes all the 0039 //! elementary curves which are solutions. 0040 //! A CircPnt2dBisec object provides a framework for: 0041 //! - defining the construction of the bisecting curves, 0042 //! - implementing the construction algorithm, and 0043 //! - consulting the result. 0044 class GccAna_CircPnt2dBisec 0045 { 0046 public: 0047 0048 DEFINE_STANDARD_ALLOC 0049 0050 0051 //! Constructs bisecting curves between the circle Circle1 and the point Point2. 0052 Standard_EXPORT GccAna_CircPnt2dBisec(const gp_Circ2d& Circle1, const gp_Pnt2d& Point2); 0053 0054 //! Constructs bisecting curves between the circle Circle1 and the point Point2. 0055 //! Tolerance is used. 0056 Standard_EXPORT GccAna_CircPnt2dBisec(const gp_Circ2d& Circle1, const gp_Pnt2d& Point2, const Standard_Real Tolerance); 0057 0058 //! Returns true (this construction algorithm never fails). 0059 Standard_EXPORT Standard_Boolean IsDone() const; 0060 0061 //! Returns the number of curves, representing solutions computed by this algorithm. 0062 Standard_EXPORT Standard_Integer NbSolutions() const; 0063 0064 //! Returns the solution number Index and raises OutOfRange 0065 //! exception if Index is greater than the number of solutions. 0066 //! Exceptions 0067 //! Standard_OutOfRange if Index is less than zero or 0068 //! greater than the number of solutions computed by this algorithm. 0069 Standard_EXPORT Handle(GccInt_Bisec) ThisSolution (const Standard_Integer Index) const; 0070 0071 0072 0073 0074 protected: 0075 0076 0077 0078 0079 0080 private: 0081 0082 0083 //! Defines the number and the type of solutions 0084 //! depending on input data 0085 Standard_EXPORT void DefineSolutions(); 0086 0087 0088 Standard_Boolean WellDone; 0089 Standard_Integer NbrSol; 0090 gp_Circ2d circle; 0091 gp_Pnt2d point; 0092 Standard_Integer theposition; 0093 Standard_Real myTolerance; 0094 0095 0096 }; 0097 0098 0099 0100 0101 0102 0103 0104 #endif // _GccAna_CircPnt2dBisec_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |