1 // Created on: 1992-04-03
2 // Created by: Laurent BUCHARD
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IntRes2d_IntersectionPoint_HeaderFile
18 #define _IntRes2d_IntersectionPoint_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <gp_Pnt2d.hxx>
25 #include <Standard_Real.hxx>
26 #include <IntRes2d_Transition.hxx>
27 #include <Standard_Boolean.hxx>
30 //! Definition of an intersection point between two
32 class IntRes2d_IntersectionPoint
39 //! Empty constructor.
40 Standard_EXPORT IntRes2d_IntersectionPoint();
42 //! Creates an IntersectionPoint.
43 //! if ReversedFlag is False, the parameter Uc1(resp. Uc2)
44 //! and the Transition Trans1 (resp. Trans2) refer to
45 //! the first curve (resp. second curve) otherwise Uc1
46 //! and Trans1 (resp. Uc2 and Trans2) refer to the
47 //! second curve (resp. the first curve).
48 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);
50 //! Sets the values for an existing intersection
51 //! point. The meaning of the parameters are the same
52 //! as for the Create.
53 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);
55 //! Returns the value of the coordinates of the
56 //! intersection point in the 2D space.
57 const gp_Pnt2d& Value() const;
59 //! Returns the parameter on the first curve.
60 Standard_Real ParamOnFirst() const;
62 //! Returns the parameter on the second curve.
63 Standard_Real ParamOnSecond() const;
65 //! Returns the transition of the 1st curve compared to
67 const IntRes2d_Transition& TransitionOfFirst() const;
69 //! returns the transition of the 2nd curve compared to
71 const IntRes2d_Transition& TransitionOfSecond() const;
89 IntRes2d_Transition trans1;
90 IntRes2d_Transition trans2;
96 #include <IntRes2d_IntersectionPoint.lxx>
102 #endif // _IntRes2d_IntersectionPoint_HeaderFile