0032641: Coding - get rid of unused forward declarations [IGESAppli to LDOM]
[occt.git] / src / IntRes2d / IntRes2d_IntersectionPoint.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IntRes2d_IntersectionPoint_HeaderFile
18 #define _IntRes2d_IntersectionPoint_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <gp_Pnt2d.hxx>
25 #include <Standard_Real.hxx>
26 #include <IntRes2d_Transition.hxx>
27 #include <Standard_Boolean.hxx>
28
29
30 //! Definition of an intersection point between two
31 //! 2D curves.
32 class IntRes2d_IntersectionPoint 
33 {
34 public:
35
36   DEFINE_STANDARD_ALLOC
37
38   
39   //! Empty constructor.
40   Standard_EXPORT IntRes2d_IntersectionPoint();
41   
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);
49   
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);
54   
55   //! Returns the value of the coordinates of the
56   //! intersection point in the 2D space.
57     const gp_Pnt2d& Value() const;
58   
59   //! Returns the parameter on the first curve.
60     Standard_Real ParamOnFirst() const;
61   
62   //! Returns the parameter on the second curve.
63     Standard_Real ParamOnSecond() const;
64   
65   //! Returns the transition of the 1st curve compared to
66   //! the 2nd one.
67     const IntRes2d_Transition& TransitionOfFirst() const;
68   
69   //! returns the transition of the 2nd curve compared to
70   //! the 1st one.
71     const IntRes2d_Transition& TransitionOfSecond() const;
72
73
74
75
76 protected:
77
78
79
80
81
82 private:
83
84
85
86   gp_Pnt2d pt;
87   Standard_Real p1;
88   Standard_Real p2;
89   IntRes2d_Transition trans1;
90   IntRes2d_Transition trans2;
91
92
93 };
94
95
96 #include <IntRes2d_IntersectionPoint.lxx>
97
98
99
100
101
102 #endif // _IntRes2d_IntersectionPoint_HeaderFile