1 -- Created on: 1993-10-07
2 -- Created by: Yves FRICAUD
3 -- Copyright (c) 1993-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 class Connexion from MAT2d
23 ---Purpose: A Connexion links two lines of items in a set
24 -- of lines. It s contains two points and their paramatric
25 -- definitions on the lines.
26 -- The items can be points or curves.
33 Create returns Connexion from MAT2d;
35 Create(LineA : Integer;
42 PointA : Pnt2d from gp;
43 PointB : Pnt2d from gp)
44 returns Connexion from MAT2d;
46 IndexFirstLine(me) returns Integer
47 ---Purpose: Returns the Index on the first line.
50 IndexSecondLine(me) returns Integer
51 ---Purpose: Returns the Index on the Second line.
54 IndexItemOnFirst(me) returns Integer
55 ---Purpose: Returns the Index of the item on the first line.
58 IndexItemOnSecond(me) returns Integer
59 ---Purpose: Returns the Index of the item on the second line.
62 ParameterOnFirst(me) returns Real
63 ---Purpose: Returns the parameter of the point on the firstline.
66 ParameterOnSecond(me) returns Real
67 ---Purpose: Returns the parameter of the point on the secondline.
70 PointOnFirst(me) returns Pnt2d from gp
71 ---Purpose: Returns the point on the firstline.
74 PointOnSecond(me) returns Pnt2d from gp
75 ---Purpose: Returns the point on the secondline.
78 Distance (me) returns Real
79 ---Purpose: Returns the distance between the two points.
82 IndexFirstLine(me : mutable ; anIndex : Integer)
85 IndexSecondLine(me : mutable ; anIndex : Integer)
88 IndexItemOnFirst(me : mutable ; anIndex : Integer)
91 IndexItemOnSecond(me : mutable ; anIndex : Integer)
94 ParameterOnFirst(me : mutable ; aParameter : Real)
97 ParameterOnSecond(me : mutable ; aParameter : Real)
100 PointOnFirst(me : mutable ; aPoint : Pnt2d from gp)
103 PointOnSecond(me : mutable ; aPoint : Pnt2d from gp)
106 Distance (me : mutable ; aDistance : Real)
110 ---Purpose: Returns the reverse connexion of <me>.
111 -- the firstpoint is the secondpoint.
112 -- the secondpoint is the firstpoint.
113 returns Connexion from MAT2d
116 IsAfter(me ; aConnexion : Connexion from MAT2d ; aSense : Real)
117 ---Purpose: Returns <True> if my firstPoint is on the same line
118 -- than the firstpoint of <aConnexion> and my firstpoint
119 -- is after the firstpoint of <aConnexion> on the line.
120 -- <aSense> = 1 if <aConnexion> is on the Left of its
121 -- firstline, else <aSense> = -1.
122 returns Boolean from Standard
125 Dump (me; Deep : Integer = 0; Offset : Integer = 0)
126 ---Purpose: Print <me>.
138 pointA : Pnt2d from gp;
139 pointB : Pnt2d from gp;