|
|
|||
File indexing completed on 2026-09-29 09:19:29
0001 // Created on: 1992-04-03 0002 // Created by: Laurent BUCHARD 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 _IntRes2d_IntersectionPoint_HeaderFile 0018 #define _IntRes2d_IntersectionPoint_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <gp_Pnt2d.hxx> 0025 #include <IntRes2d_Transition.hxx> 0026 #include <Standard_Boolean.hxx> 0027 0028 //! Definition of an intersection point between two 0029 //! 2D curves. 0030 class IntRes2d_IntersectionPoint 0031 { 0032 public: 0033 DEFINE_STANDARD_ALLOC 0034 0035 //! Empty constructor. 0036 Standard_EXPORT IntRes2d_IntersectionPoint(); 0037 0038 //! Creates an IntersectionPoint. 0039 //! if ReversedFlag is False, the parameter Uc1(resp. Uc2) 0040 //! and the Transition Trans1 (resp. Trans2) refer to 0041 //! the first curve (resp. second curve) otherwise Uc1 0042 //! and Trans1 (resp. Uc2 and Trans2) refer to the 0043 //! second curve (resp. the first curve). 0044 IntRes2d_IntersectionPoint(const gp_Pnt2d& P, 0045 const double Uc1, 0046 const double Uc2, 0047 const IntRes2d_Transition& Trans1, 0048 const IntRes2d_Transition& Trans2, 0049 const bool ReversedFlag); 0050 0051 //! Sets the values for an existing intersection 0052 //! point. The meaning of the parameters are the same 0053 //! as for the Create. 0054 void SetValues(const gp_Pnt2d& P, 0055 const double Uc1, 0056 const double Uc2, 0057 const IntRes2d_Transition& Trans1, 0058 const IntRes2d_Transition& Trans2, 0059 const bool ReversedFlag); 0060 0061 //! Returns the value of the coordinates of the 0062 //! intersection point in the 2D space. 0063 const gp_Pnt2d& Value() const; 0064 0065 //! Returns the parameter on the first curve. 0066 double ParamOnFirst() const; 0067 0068 //! Returns the parameter on the second curve. 0069 double ParamOnSecond() const; 0070 0071 //! Returns the transition of the 1st curve compared to 0072 //! the 2nd one. 0073 const IntRes2d_Transition& TransitionOfFirst() const; 0074 0075 //! returns the transition of the 2nd curve compared to 0076 //! the 1st one. 0077 const IntRes2d_Transition& TransitionOfSecond() const; 0078 0079 private: 0080 gp_Pnt2d pt; 0081 double p1; 0082 double p2; 0083 IntRes2d_Transition trans1; 0084 IntRes2d_Transition trans2; 0085 }; 0086 0087 #include <IntRes2d_IntersectionPoint.lxx> 0088 0089 #endif // _IntRes2d_IntersectionPoint_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|