summaryrefslogtreecommitdiff
path: root/inc/MAT2d_Connexion.hxx
blob: 9581b6aed2c49286aeca7502f69a3e15f26baeda (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
120
121
122
123
124
125
126
127
128
129
130
131
// 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 _MAT2d_Connexion_HeaderFile
#define _MAT2d_Connexion_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_MAT2d_Connexion_HeaderFile
#include <Handle_MAT2d_Connexion.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _gp_Pnt2d_HeaderFile
#include <gp_Pnt2d.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class gp_Pnt2d;


//! A Connexion links two lines of items  in a set <br>
//!          of  lines. It s contains two  points and their paramatric <br>
//!          definitions on the lines. <br>
//!          The items can be points or curves. <br>
class MAT2d_Connexion : public MMgt_TShared {

public:

  
  Standard_EXPORT   MAT2d_Connexion();
  
  Standard_EXPORT   MAT2d_Connexion(const Standard_Integer LineA,const Standard_Integer LineB,const Standard_Integer ItemA,const Standard_Integer ItemB,const Standard_Real Distance,const Standard_Real ParameterOnA,const Standard_Real ParameterOnB,const gp_Pnt2d& PointA,const gp_Pnt2d& PointB);
  //!  Returns the Index on the first line. <br>
  Standard_EXPORT     Standard_Integer IndexFirstLine() const;
  //!  Returns the Index on the Second line. <br>
  Standard_EXPORT     Standard_Integer IndexSecondLine() const;
  //! Returns the Index of the item on the first line. <br>
  Standard_EXPORT     Standard_Integer IndexItemOnFirst() const;
  //! Returns the Index of the item on the second line. <br>
  Standard_EXPORT     Standard_Integer IndexItemOnSecond() const;
  //! Returns the parameter of the point on the firstline. <br>
  Standard_EXPORT     Standard_Real ParameterOnFirst() const;
  //! Returns the parameter of the point on the secondline. <br>
  Standard_EXPORT     Standard_Real ParameterOnSecond() const;
  //! Returns the point on the firstline. <br>
  Standard_EXPORT     gp_Pnt2d PointOnFirst() const;
  //! Returns the point on the secondline. <br>
  Standard_EXPORT     gp_Pnt2d PointOnSecond() const;
  //! Returns the distance between the two points. <br>
  Standard_EXPORT     Standard_Real Distance() const;
  
  Standard_EXPORT     void IndexFirstLine(const Standard_Integer anIndex) ;
  
  Standard_EXPORT     void IndexSecondLine(const Standard_Integer anIndex) ;
  
  Standard_EXPORT     void IndexItemOnFirst(const Standard_Integer anIndex) ;
  
  Standard_EXPORT     void IndexItemOnSecond(const Standard_Integer anIndex) ;
  
  Standard_EXPORT     void ParameterOnFirst(const Standard_Real aParameter) ;
  
  Standard_EXPORT     void ParameterOnSecond(const Standard_Real aParameter) ;
  
  Standard_EXPORT     void PointOnFirst(const gp_Pnt2d& aPoint) ;
  
  Standard_EXPORT     void PointOnSecond(const gp_Pnt2d& aPoint) ;
  
  Standard_EXPORT     void Distance(const Standard_Real aDistance) ;
  //! Returns the reverse connexion of <me>. <br>
//!          the firstpoint  is the secondpoint. <br>
//!          the secondpoint is the firstpoint. <br>
  Standard_EXPORT     Handle_MAT2d_Connexion Reverse() const;
  //! Returns <True> if my firstPoint is on the same line <br>
//!          than the firstpoint of <aConnexion> and my firstpoint <br>
//!          is after the firstpoint of <aConnexion> on the line. <br>
//!          <aSense> = 1 if <aConnexion> is on the Left of its <br>
//!          firstline, else <aSense> = -1. <br>
  Standard_EXPORT     Standard_Boolean IsAfter(const Handle(MAT2d_Connexion)& aConnexion,const Standard_Real aSense) const;
  //! Print <me>. <br>
  Standard_EXPORT     void Dump(const Standard_Integer Deep = 0,const Standard_Integer Offset = 0) const;




  DEFINE_STANDARD_RTTI(MAT2d_Connexion)

protected:




private: 


Standard_Integer lineA;
Standard_Integer lineB;
Standard_Integer itemA;
Standard_Integer itemB;
Standard_Real distance;
Standard_Real parameterOnA;
Standard_Real parameterOnB;
gp_Pnt2d pointA;
gp_Pnt2d pointB;


};





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


#endif