|
||||
File indexing completed on 2025-01-18 10:04:10
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 0029 //! Definition of an intersection point between two 0030 //! 2D curves. 0031 class IntRes2d_IntersectionPoint 0032 { 0033 public: 0034 0035 DEFINE_STANDARD_ALLOC 0036 0037 0038 //! Empty constructor. 0039 Standard_EXPORT IntRes2d_IntersectionPoint(); 0040 0041 //! Creates an IntersectionPoint. 0042 //! if ReversedFlag is False, the parameter Uc1(resp. Uc2) 0043 //! and the Transition Trans1 (resp. Trans2) refer to 0044 //! the first curve (resp. second curve) otherwise Uc1 0045 //! and Trans1 (resp. Uc2 and Trans2) refer to the 0046 //! second curve (resp. the first curve). 0047 IntRes2d_IntersectionPoint(const gp_Pnt2d& P, const Standard_Real Uc1, const Standard_Real Uc2, const IntRes2d_Transition& Trans1, const IntRes2d_Transition& Trans2, const Standard_Boolean ReversedFlag); 0048 0049 //! Sets the values for an existing intersection 0050 //! point. The meaning of the parameters are the same 0051 //! as for the Create. 0052 void SetValues (const gp_Pnt2d& P, const Standard_Real Uc1, const Standard_Real Uc2, const IntRes2d_Transition& Trans1, const IntRes2d_Transition& Trans2, const Standard_Boolean ReversedFlag); 0053 0054 //! Returns the value of the coordinates of the 0055 //! intersection point in the 2D space. 0056 const gp_Pnt2d& Value() const; 0057 0058 //! Returns the parameter on the first curve. 0059 Standard_Real ParamOnFirst() const; 0060 0061 //! Returns the parameter on the second curve. 0062 Standard_Real ParamOnSecond() const; 0063 0064 //! Returns the transition of the 1st curve compared to 0065 //! the 2nd one. 0066 const IntRes2d_Transition& TransitionOfFirst() const; 0067 0068 //! returns the transition of the 2nd curve compared to 0069 //! the 1st one. 0070 const IntRes2d_Transition& TransitionOfSecond() const; 0071 0072 0073 0074 0075 protected: 0076 0077 0078 0079 0080 0081 private: 0082 0083 0084 0085 gp_Pnt2d pt; 0086 Standard_Real p1; 0087 Standard_Real p2; 0088 IntRes2d_Transition trans1; 0089 IntRes2d_Transition trans2; 0090 0091 0092 }; 0093 0094 0095 #include <IntRes2d_IntersectionPoint.lxx> 0096 0097 0098 0099 0100 0101 #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 |