summaryrefslogtreecommitdiff
path: root/inc/IntRes2d_IntersectionPoint.hxx
blob: 970bd577b6b1494b2a14383ccdf2f179b84f0c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IntRes2d_IntersectionPoint_HeaderFile
#define _IntRes2d_IntersectionPoint_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _gp_Pnt2d_HeaderFile
#include <gp_Pnt2d.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _IntRes2d_Transition_HeaderFile
#include <IntRes2d_Transition.hxx>
#endif
#ifndef _Standard_Storable_HeaderFile
#include <Standard_Storable.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_PrimitiveTypes_HeaderFile
#include <Standard_PrimitiveTypes.hxx>
#endif
class gp_Pnt2d;
class IntRes2d_Transition;


Standard_EXPORT const Handle(Standard_Type)& STANDARD_TYPE(IntRes2d_IntersectionPoint);

//! Definition of an intersection point between two <br>
//!          2D curves. <br>
class IntRes2d_IntersectionPoint  {

public:
  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Empty constructor. <br>
  Standard_EXPORT   IntRes2d_IntersectionPoint();
  //! Creates an IntersectionPoint. <br>
//!          if ReversedFlag is False, the parameter Uc1(resp. Uc2) <br>
//!          and the Transition Trans1 (resp. Trans2) refer to <br>
//!          the first curve (resp. second curve) otherwise Uc1 <br>
//!          and Trans1 (resp. Uc2 and Trans2) refer to the <br>
//!          second curve (resp. the first curve). <br>
      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);
  //! Sets the values for an existing intersection <br>
//!          point. The meaning of the parameters are the same <br>
//!          as for the Create. <br>
        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) ;
  //! Returns the value of the coordinates of the <br>
//!          intersection point in the 2D space. <br>
       const gp_Pnt2d& Value() const;
  //! Returns the parameter on the first curve. <br>
        Standard_Real ParamOnFirst() const;
  //! Returns the parameter on the second curve. <br>
        Standard_Real ParamOnSecond() const;
  //! Returns the transition of the 1st curve compared to <br>
//!          the 2nd one. <br>
       const IntRes2d_Transition& TransitionOfFirst() const;
  //! returns the transition of the 2nd curve compared to <br>
//!          the 1st one. <br>
       const IntRes2d_Transition& TransitionOfSecond() const;
    const gp_Pnt2d& _CSFDB_GetIntRes2d_IntersectionPointpt() const { return pt; }
    Standard_Real _CSFDB_GetIntRes2d_IntersectionPointp1() const { return p1; }
    void _CSFDB_SetIntRes2d_IntersectionPointp1(const Standard_Real p) { p1 = p; }
    Standard_Real _CSFDB_GetIntRes2d_IntersectionPointp2() const { return p2; }
    void _CSFDB_SetIntRes2d_IntersectionPointp2(const Standard_Real p) { p2 = p; }
    const IntRes2d_Transition& _CSFDB_GetIntRes2d_IntersectionPointtrans1() const { return trans1; }
    const IntRes2d_Transition& _CSFDB_GetIntRes2d_IntersectionPointtrans2() const { return trans2; }



protected:




private: 


gp_Pnt2d pt;
Standard_Real p1;
Standard_Real p2;
IntRes2d_Transition trans1;
IntRes2d_Transition trans2;


};


#include <IntRes2d_IntersectionPoint.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif