|
||||
File indexing completed on 2025-01-18 10:03:32
0001 // Created on: 1992-08-26 0002 // Created by: Remi GILET 0003 // Copyright (c) 1992-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 _gce_MakeCirc2d_HeaderFile 0018 #define _gce_MakeCirc2d_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 0023 #include <gp_Circ2d.hxx> 0024 #include <gce_Root.hxx> 0025 class gp_Ax2d; 0026 class gp_Ax22d; 0027 class gp_Pnt2d; 0028 0029 0030 //! This class implements the following algorithms used 0031 //! to create Circ2d from gp. 0032 //! 0033 //! * Create a Circ2d concentric with another and passing 0034 //! though a point. 0035 //! * Create a Circ2d concentric with another at the distance 0036 //! Dist. 0037 //! * Create a Circ2d passing through 3 points. 0038 //! * Create a Circ2d with its center and radius. 0039 //! * Create a Circ2d with its center and a point given 0040 //! the radius. 0041 //! * Create a Circ2d with its axis and its radius. 0042 class gce_MakeCirc2d : public gce_Root 0043 { 0044 public: 0045 0046 DEFINE_STANDARD_ALLOC 0047 0048 0049 0050 //! The location point of XAxis is the center of the circle. 0051 //! Warnings : 0052 //! It is not forbidden to create a circle with Radius = 0.0 0053 //! If Sense is true the local coordinate system of the solution 0054 //! is direct and non direct in the other case. 0055 //! The status is "NegativeRadius" if Radius < 0.0. 0056 Standard_EXPORT gce_MakeCirc2d(const gp_Ax2d& XAxis, const Standard_Real Radius, const Standard_Boolean Sense = Standard_True); 0057 0058 0059 //! The location point of Axis is the center of the circle. 0060 //! Warnings : 0061 //! It is not forbidden to create a circle with Radius = 0.0 0062 Standard_EXPORT gce_MakeCirc2d(const gp_Ax22d& Axis, const Standard_Real Radius); 0063 0064 //! Makes a Circ2d from gp <TheCirc> concentric with another 0065 //! circ2d <Circ> with a distance <Dist>. 0066 //! If Dist is greater than zero the result encloses 0067 //! the circle <Circ>, else the result is enclosed by the 0068 //! circle <Circ>. 0069 //! The local coordinate system of the solution is the 0070 //! same as Circ. 0071 Standard_EXPORT gce_MakeCirc2d(const gp_Circ2d& Circ, const Standard_Real Dist); 0072 0073 //! Makes a Circ2d from gp <TheCirc> concentric with another 0074 //! circ2d <Circ> and passing through a Pnt2d <Point>. 0075 //! The local coordinate system of the solution is the 0076 //! same as Circ. 0077 Standard_EXPORT gce_MakeCirc2d(const gp_Circ2d& Circ, const gp_Pnt2d& Point); 0078 0079 //! Makes a Circ2d from gp <TheCirc> passing through 3 0080 //! Pnt2d <P1>,<P2>,<P3>. 0081 //! The local coordinate system of the solution is given 0082 //! by the three points P1, P2, P3. 0083 Standard_EXPORT gce_MakeCirc2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const gp_Pnt2d& P3); 0084 0085 //! Makes a Circ2d from gp <TheCirc> with its center 0086 //! <Center> and its radius <Radius>. 0087 //! If Sense is true the local coordinate system of 0088 //! the solution is direct and non direct in the other case. 0089 Standard_EXPORT gce_MakeCirc2d(const gp_Pnt2d& Center, const Standard_Real Radius, const Standard_Boolean Sense = Standard_True); 0090 0091 //! Makes a Circ2d from gp <TheCirc> with its center 0092 //! <Center> and a point giving the radius. 0093 //! If Sense is true the local coordinate system of 0094 //! the solution is direct and non direct in the other case. 0095 Standard_EXPORT gce_MakeCirc2d(const gp_Pnt2d& Center, const gp_Pnt2d& Point, const Standard_Boolean Sense = Standard_True); 0096 0097 //! Returns the constructed circle. 0098 //! Exceptions StdFail_NotDone if no circle is constructed. 0099 Standard_EXPORT const gp_Circ2d& Value() const; 0100 0101 Standard_EXPORT const gp_Circ2d& Operator() const; 0102 Standard_EXPORT operator gp_Circ2d() const; 0103 0104 0105 0106 0107 protected: 0108 0109 0110 0111 0112 0113 private: 0114 0115 0116 0117 gp_Circ2d TheCirc2d; 0118 0119 0120 }; 0121 0122 0123 0124 0125 0126 0127 0128 #endif // _gce_MakeCirc2d_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |