|
|
|||
File indexing completed on 2026-09-10 09:16:39
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_MakeParab_HeaderFile 0018 #define _gce_MakeParab_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <gp_Parab.hxx> 0025 #include <gce_Root.hxx> 0026 class gp_Ax2; 0027 class gp_Ax1; 0028 class gp_Pnt; 0029 0030 //! This class implements the following algorithms used to 0031 //! create Parab from gp. 0032 //! Defines the parabola in the parameterization range : 0033 //! ]-infinite, +infinite[ 0034 //! The vertex of the parabola is the "Location" point of the 0035 //! local coordinate system (axis placement) of the parabola. 0036 //! 0037 //! The "XDirection" and the "YDirection" of this system define 0038 //! the plane of the parabola. 0039 //! 0040 //! The "XAxis" of the parabola ("Location", "XDirection") is 0041 //! the axis of symmetry of the parabola. The Xaxis is oriented 0042 //! from the vertex of the parabola to the Focus of the parabola. 0043 //! 0044 //! The "YAxis" of the parabola ("Location", "YDirection") is 0045 //! parallel to the directrix of the parabola. 0046 //! 0047 //! The equation of the parabola in the local coordinates system is 0048 //! Y**2 = (2*P) * X 0049 //! P is the distance between the focus and the directrix of the 0050 //! parabola (called Parameter). 0051 //! The focal length F = P/2 is the distance between the vertex 0052 //! and the focus of the parabola. 0053 //! 0054 //! * Creates a parabola with its local coordinate system "A2" 0055 //! and it's focal length "Focal". 0056 //! * Create a parabola with its directrix and its focus point. 0057 class gce_MakeParab : public gce_Root 0058 { 0059 public: 0060 DEFINE_STANDARD_ALLOC 0061 0062 //! --- Purpose ; 0063 //! Creates a parabola with its local coordinate system "A2" 0064 //! and it's focal length "Focal". 0065 //! The XDirection of A2 defines the axis of symmetry of the 0066 //! parabola. The YDirection of A2 is parallel to the directrix 0067 //! of the parabola. The Location point of A2 is the vertex of 0068 //! the parabola 0069 //! The status is "NullFocusLength" if Focal < 0.0 0070 Standard_EXPORT gce_MakeParab(const gp_Ax2& A2, const Standard_Real Focal); 0071 0072 //! D is the directrix of the parabola and F the focus point. 0073 //! The symmetry axis (XAxis) of the parabola is normal to the 0074 //! directrix and pass through the focus point F, but its 0075 //! location point is the vertex of the parabola. 0076 //! The YAxis of the parabola is parallel to D and its location 0077 //! point is the vertex of the parabola. The normal to the plane 0078 //! of the parabola is the cross product between the XAxis and the 0079 //! YAxis. 0080 Standard_EXPORT gce_MakeParab(const gp_Ax1& D, const gp_Pnt& F); 0081 0082 //! Returns the constructed parabola. 0083 //! Exceptions StdFail_NotDone if no parabola is constructed. 0084 Standard_EXPORT const gp_Parab& Value() const; 0085 0086 Standard_EXPORT const gp_Parab& Operator() const; 0087 Standard_EXPORT operator gp_Parab() const; 0088 0089 protected: 0090 private: 0091 gp_Parab TheParab; 0092 }; 0093 0094 #endif // _gce_MakeParab_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|