|
||||
File indexing completed on 2025-01-18 10:03:31
0001 // Created on: 1991-10-04 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 _GccInt_Bisec_HeaderFile 0018 #define _GccInt_Bisec_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Standard_Transient.hxx> 0024 #include <GccInt_IType.hxx> 0025 class gp_Pnt2d; 0026 class gp_Lin2d; 0027 class gp_Circ2d; 0028 class gp_Hypr2d; 0029 class gp_Parab2d; 0030 class gp_Elips2d; 0031 0032 0033 class GccInt_Bisec; 0034 DEFINE_STANDARD_HANDLE(GccInt_Bisec, Standard_Transient) 0035 0036 //! The deferred class GccInt_Bisec is the root class for 0037 //! elementary bisecting loci between two simple geometric 0038 //! objects (i.e. circles, lines or points). 0039 //! Bisecting loci between two geometric objects are such 0040 //! that each of their points is at the same distance from the 0041 //! two geometric objects. It is typically a curve, such as a 0042 //! line, circle or conic. 0043 //! Generally there is more than one elementary object 0044 //! which is the solution to a bisecting loci problem: each 0045 //! solution is described with one elementary bisecting 0046 //! locus. For example, the bisectors of two secant straight 0047 //! lines are two perpendicular straight lines. 0048 //! The GccInt package provides concrete implementations 0049 //! of the following elementary derived bisecting loci: 0050 //! - lines, circles, ellipses, hyperbolas and parabolas, and 0051 //! - points (not used in this context). 0052 //! The GccAna package provides numerous algorithms for 0053 //! computing the bisecting loci between circles, lines or 0054 //! points, whose solutions are these types of elementary bisecting locus. 0055 class GccInt_Bisec : public Standard_Transient 0056 { 0057 0058 public: 0059 0060 0061 //! Returns the type of bisecting object (line, circle, 0062 //! parabola, hyperbola, ellipse, point). 0063 Standard_EXPORT virtual GccInt_IType ArcType() const = 0; 0064 0065 //! Returns the bisecting line when ArcType returns Pnt. 0066 //! An exception DomainError is raised if ArcType is not a Pnt. 0067 Standard_EXPORT virtual gp_Pnt2d Point() const; 0068 0069 //! Returns the bisecting line when ArcType returns Lin. 0070 //! An exception DomainError is raised if ArcType is not a Lin. 0071 Standard_EXPORT virtual gp_Lin2d Line() const; 0072 0073 //! Returns the bisecting line when ArcType returns Cir. 0074 //! An exception DomainError is raised if ArcType is not a Cir. 0075 Standard_EXPORT virtual gp_Circ2d Circle() const; 0076 0077 //! Returns the bisecting line when ArcType returns Hpr. 0078 //! An exception DomainError is raised if ArcType is not a Hpr. 0079 Standard_EXPORT virtual gp_Hypr2d Hyperbola() const; 0080 0081 //! Returns the bisecting line when ArcType returns Par. 0082 //! An exception DomainError is raised if ArcType is not a Par. 0083 Standard_EXPORT virtual gp_Parab2d Parabola() const; 0084 0085 //! Returns the bisecting line when ArcType returns Ell. 0086 //! An exception DomainError is raised if ArcType is not an Ell. 0087 Standard_EXPORT virtual gp_Elips2d Ellipse() const; 0088 0089 0090 0091 0092 DEFINE_STANDARD_RTTIEXT(GccInt_Bisec,Standard_Transient) 0093 0094 protected: 0095 0096 0097 0098 0099 private: 0100 0101 0102 0103 0104 }; 0105 0106 0107 0108 0109 0110 0111 0112 #endif // _GccInt_Bisec_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |