|
||||
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_CircLin2dBisec_HeaderFile 0018 #define _GccAna_CircLin2dBisec_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_Lin2d.hxx> 0028 class GccInt_Bisec; 0029 0030 0031 //! Describes functions for building bisecting curves between a 2D line and a 2D circle. 0032 //! A bisecting curve between a circle and a line is a curve 0033 //! such that each of its points is at the same distance from 0034 //! the circle and the line. It can be a parabola or a line, 0035 //! depending of the relative position of the line and the 0036 //! circle. The algorithm computes all the elementary curves which are solutions. 0037 //! A CircLin2dBisec object provides a framework for: 0038 //! - defining the construction of the bisecting curves, 0039 //! - implementing the construction algorithm, and 0040 //! - consulting the result. 0041 class GccAna_CircLin2dBisec 0042 { 0043 public: 0044 0045 DEFINE_STANDARD_ALLOC 0046 0047 0048 //! Constructs bisecting curves between the circle Circle and the line Line. 0049 Standard_EXPORT GccAna_CircLin2dBisec(const gp_Circ2d& Circle, const gp_Lin2d& Line); 0050 0051 //! Returns true (this construction algorithm never fails). 0052 Standard_EXPORT Standard_Boolean IsDone() const; 0053 0054 0055 //! Returns the number of curves, representing solutions computed by this algorithm. 0056 Standard_EXPORT Standard_Integer NbSolutions() const; 0057 0058 //! Returns the solution number Index and raises OutOfRange 0059 //! exception if Index is greater than the number of solutions 0060 //! Exceptions 0061 //! Standard_OutOfRange if Index is less than zero or 0062 //! greater than the number of solutions computed by this algorithm. 0063 Standard_EXPORT Handle(GccInt_Bisec) ThisSolution (const Standard_Integer Index) const; 0064 0065 0066 0067 0068 protected: 0069 0070 0071 0072 0073 0074 private: 0075 0076 0077 0078 Standard_Boolean WellDone; 0079 Standard_Integer NbrSol; 0080 gp_Circ2d circle; 0081 gp_Lin2d line; 0082 0083 0084 }; 0085 0086 0087 0088 0089 0090 0091 0092 #endif // _GccAna_CircLin2dBisec_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |