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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
-- File: MAT2d_Tool2d.cdl
-- Created: Mon Jul 12 16:54:50 1993
-- Author: Yves FRICAUD
-- <yfr@phylox>
---Copyright: Matra Datavision 1993
class Tool2d from MAT2d
---Purpose: Set of the methods useful for the MAT's computation.
-- Tool2d contains the geometry of the bisecting locus.
uses
Bisec from Bisector,
Side from MAT,
Bisector from MAT,
Connexion from MAT2d,
Circuit from MAT2d,
DataMapOfIntegerBisec from MAT2d,
DataMapOfIntegerPnt2d from MAT2d,
DataMapOfIntegerVec2d from MAT2d,
SequenceOfInteger from TColStd,
Pnt2d from gp,
Vec2d from gp,
TrimmedCurve from Geom2d,
Curve from Geom2d,
Geometry from Geom2d
is
Create returns Tool2d from MAT2d;
--- Purpose : Empty Constructor.
--- Category : Initialisation.
Sense(me : in out ; aside : Side from MAT)
--- Purpose :<aSide> defines the side of the computation of the map.
is static;
InitItems(me : in out ;
aCircuit : Circuit from MAT2d )
--- Purpose : InitItems cuts the line in Items.
-- this Items are the geometrics representations of
-- the BasicElts from MAT.
is static;
--- Category : Set of the methods used by the algorithm MAT from MAT.
NumberOfItems(me)
--- Purpose : Returns the Number of Items .
returns Integer is static;
ToleranceOfConfusion(me) returns Real
---Purpose: Returns tolerance to test the confusion of two points.
is static;
FirstPoint(me : in out ; anitem : Integer;
dist : out Real )
--- Purpose : Creates the point at the origin of the bisector between
-- anitem and the previous item.
-- dist is the distance from the FirstPoint to <anitem>.
-- Returns the index of this point in <theGeomPnts>.
returns Integer is static;
TangentBefore(me : in out ; anitem : Integer)
--- Purpose : Creates the Tangent at the end of the Item defined
-- by <anitem>. Returns the index of this vector in
-- <theGeomVecs>
returns Integer is static;
TangentAfter(me : in out ; anitem : Integer)
--- Purpose : Creates the Reversed Tangent at the origin of the Item
-- defined by <anitem>. Returns the index of this vector in
-- <theGeomVecs>
returns Integer is static;
Tangent(me : in out ; bisector : Integer)
--- Purpose : Creates the Tangent at the end of the bisector defined
-- by <bisector>. Returns the index of this vector in
-- <theGeomVecs>
returns Integer is static;
CreateBisector(me : in out ; abisector : mutable Bisector from MAT)
--- Purpose : Creates the geometric bisector defined by <abisector>.
is static;
TrimBisector(me : in out ; abisector : mutable Bisector from MAT)
--- Purpose : Trims the geometric bisector by the <firstparameter>
-- of <abisector>.
-- If the parameter is out of the bisector, Return FALSE.
-- else Return True.
returns Boolean is static;
TrimBisector(me : in out ;
abisector : mutable Bisector from MAT ;
apoint : Integer)
--- Purpose : Trims the geometric bisector by the point of index
-- <apoint> in <theGeomPnts>.
-- If the point is out of the bisector, Return FALSE.
-- else Return True.
returns Boolean is static;
IntersectBisector(me : in out ;
bisectorone : mutable Bisector from MAT ;
bisectortwo : mutable Bisector from MAT ;
intpnt : in out Integer)
--- Purpose : Computes the point of intersection between the
-- bisectors defined by <bisectorone> and
-- <bisectortwo> .
-- If this point exists, <intpnt> is its index
-- in <theGeomPnts> and Return the distance of the point
-- from the bisector else Return <RealLast>.
returns Real is static;
Distance(me;
abisector : Bisector from MAT;
param1 : Real;
param2 : Real)
---Purpose: Returns the distance between the two points designed
-- by their parameters on <abisector>.
returns Real is static;
Dump(me ; bisector , erease : Integer) is static;
--- Purpose : displays informations about the bisector defined by
-- <bisector>.
--- Category : Querying.
GeomBis(me ; Index: Integer)
--- Purpose : Returns the <Bisec> of index <Index> in
-- <theGeomBisectors>.
--
---C++: return const &
returns Bisec from Bisector
is static;
GeomElt(me ; Index: Integer)
--- Purpose : Returns the Geometry of index <Index> in <theGeomElts>.
returns Geometry from Geom2d
is static;
GeomPnt(me ; Index: Integer)
--- Purpose : Returns the point of index <Index> in the <theGeomPnts>.
--
---C++: return const &
returns Pnt2d from gp
is static;
GeomVec(me ; Index: Integer)
--- Purpose : Returns the vector of index <Index> in the
-- <theGeomVecs>.
--
---C++: return const &
returns Vec2d from gp
is static;
Circuit(me)
---Purpose:
--
returns Circuit from MAT2d
is static;
---Category: Modification
BisecFusion(me : in out;
Index1 : Integer;
Index2 : Integer)
is static;
ChangeGeomBis(me : in out ; Index: Integer)
--- Purpose : Returns the <Bisec> of index <Index> in
-- <theGeomBisectors>.
--
---C++: return &
returns Bisec from Bisector
is static;
---Category: Private
IsSameDistance(me ;
bisectorone , bisectortwo : any Bisector from MAT ;
apoint : Pnt2d from gp;
adistance : out Real)
--- Purpose : Returns True if the point <apoint> is equidistant to
-- the elements separated by bisectors <bisectorone> and
-- <bisectortwo>.
-- In this case <adistance> is the distance of the point
-- from the bisectors.
returns Boolean
is static private;
Projection (me ;
IndexElt : Integer from Standard;
Point : Pnt2d from gp ;
Distance : out Real from Standard)
---Purpose: Return <True> if the Point can be projected
-- on the element designed by <IndexElt>.
-- In this case <Distance> is the minimum of distance
-- between Point and its projections.
returns Boolean
is static private;
TrimBisec (me ;
Bis : in out Bisec from Bisector ;
IndexEdge : Integer from Standard ;
OnLine : Boolean from Standard ;
StartOrEnd : Integer from Standard )
is static private;
fields
theDirection : Real;
theNumberOfBisectors : Integer;
theNumberOfPnts : Integer;
theNumberOfVecs : Integer;
theCircuit : Circuit from MAT2d;
theGeomBisectors : DataMapOfIntegerBisec from MAT2d;
theGeomPnts : DataMapOfIntegerPnt2d from MAT2d;
theGeomVecs : DataMapOfIntegerVec2d from MAT2d;
theLinesLength : SequenceOfInteger from TColStd;
end Tool2d;
|