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
|
-- File: TopTools.cdl
-- Created: Thu Jan 14 11:35:23 1993
-- Author: Remi LEQUETTE
-- <rle@phylox>
---Copyright: Matra Datavision 1993
package TopTools
---Purpose: The TopTools package provides utilities for the
-- topological data structure.
--
-- * ShapeMapHasher. Hash a Shape base on the TShape
-- and the Location. The Orientation is not used.
--
-- * OrientedShapeMapHasher. Hash a Shape base on the
-- TShape ,the Location and the Orientation.
--
-- * Instantiations of TCollection for Shapes :
-- MapOfShape
-- IndexedMapOfShape
-- DataMapOfIntegerShape
-- DataMapOfShapeInteger
-- DataMapOfShapeReal
-- Array1OfShape
-- HArray1OfShape
-- SequenceOfShape
-- HSequenceOfShape
-- ListOfShape
-- Array1OfListShape
-- HArray1OfListShape
-- DataMapOfIntegerListOfShape
-- DataMapOfShapeListOfShape
-- DataMapOfShapeListOfInteger
-- IndexedDataMapOfShapeShape
-- IndexedDataMapOfShapeListOfShape
-- DataMapOfShapeShape
-- IndexedMapOfOrientedShape
-- DataMapOfShapeSequenceOfShape
-- IndexedDataMapOfShapeAddress
-- DataMapOfOrientedShapeShape
--
-- * LocationSet : to write sets of locations.
--
-- * ShapeSet : to writes sets of TShapes.
--
-- Package Methods :
--
-- Dump : To dump the topology of a Shape.
--
--- Level : Public
-- All methods of all classes will be public.
uses
MMgt,
TCollection,
TColStd,
TopLoc,
TopAbs,
TopoDS,
Message
is
----------------------------------------------------------
-- TCollections for Shapes
----------------------------------------------------------
class ShapeMapHasher;
class OrientedShapeMapHasher;
class MapOfShape instantiates
Map from TCollection(Shape from TopoDS,
ShapeMapHasher from TopTools);
class MapOfOrientedShape instantiates
Map from TCollection(Shape from TopoDS,
OrientedShapeMapHasher from TopTools);
class IndexedMapOfShape instantiates
IndexedMap from TCollection(Shape from TopoDS,
ShapeMapHasher from TopTools);
class DataMapOfIntegerShape instantiates
DataMap from TCollection(Integer,
Shape from TopoDS,
MapIntegerHasher from TColStd);
class DataMapOfOrientedShapeInteger instantiates
DataMap from TCollection(Shape from TopoDS,
Integer from Standard,
OrientedShapeMapHasher from TopTools);
class DataMapOfShapeInteger instantiates
DataMap from TCollection(Shape from TopoDS,
Integer from Standard,
ShapeMapHasher from TopTools);
class DataMapOfShapeReal instantiates
DataMap from TCollection(Shape from TopoDS,
Real from Standard,
ShapeMapHasher from TopTools);
class Array1OfShape instantiates
Array1 from TCollection (Shape from TopoDS);
class HArray1OfShape instantiates
HArray1 from TCollection(Shape from TopoDS,
Array1OfShape from TopTools);
class Array2OfShape instantiates
Array2 from TCollection (Shape from TopoDS);
class HArray2OfShape instantiates
HArray2 from TCollection(Shape from TopoDS,
Array2OfShape from TopTools);
class SequenceOfShape instantiates
Sequence from TCollection (Shape from TopoDS);
class HSequenceOfShape instantiates
HSequence from TCollection(Shape from TopoDS,
SequenceOfShape from TopTools);
class ListOfShape instantiates
List from TCollection (Shape from TopoDS);
class Array1OfListOfShape instantiates
Array1 from TCollection (ListOfShape from TopTools);
class HArray1OfListOfShape instantiates
HArray1 from TCollection(ListOfShape from TopTools,
Array1OfListOfShape from TopTools);
class DataMapOfIntegerListOfShape instantiates
DataMap from TCollection(Integer from Standard,
ListOfShape from TopTools,
MapIntegerHasher from TColStd);
class DataMapOfShapeListOfShape instantiates
DataMap from TCollection(Shape from TopoDS,
ListOfShape from TopTools,
ShapeMapHasher from TopTools);
class DataMapOfShapeListOfInteger instantiates
DataMap from TCollection(Shape from TopoDS,
ListOfInteger from TColStd,
ShapeMapHasher from TopTools);
class IndexedDataMapOfShapeShape instantiates
IndexedDataMap from TCollection(Shape from TopoDS,
Shape from TopoDS,
ShapeMapHasher from TopTools);
class IndexedDataMapOfShapeListOfShape instantiates
IndexedDataMap from TCollection(Shape from TopoDS,
ListOfShape from TopTools,
ShapeMapHasher from TopTools);
class DataMapOfShapeShape instantiates
DataMap from TCollection (Shape from TopoDS,
Shape from TopoDS,
ShapeMapHasher from TopTools);
class IndexedMapOfOrientedShape instantiates
IndexedMap from TCollection(Shape from TopoDS,
OrientedShapeMapHasher from TopTools);
class DataMapOfShapeSequenceOfShape instantiates
DataMap from TCollection (Shape from TopoDS,
SequenceOfShape from TopTools,
ShapeMapHasher from TopTools);
class IndexedDataMapOfShapeAddress instantiates
IndexedDataMap from TCollection(Shape from TopoDS,
Address from Standard,
ShapeMapHasher from TopTools);
class DataMapOfOrientedShapeShape instantiates
DataMap from TCollection (Shape from TopoDS,
Shape from TopoDS,
OrientedShapeMapHasher from TopTools);
----------------------------------------------------------
-- Tools for writing and reading Locations and Shapes
----------------------------------------------------------
class LocationSet;
---Purpose: A set of Locations. Can be dump, wrote or read.
pointer LocationSetPtr to LocationSet from TopTools;
class ShapeSet;
---Purpose: A set of Shapes. Can be dump, wrote or read.
--
-- Package methods
--
Dump(Sh : Shape from TopoDS; S : in out OStream);
---Purpose: Dumps the topological structure of <Sh> on the
-- stream <S>.
Dummy(I : Integer);
---Purpose: This is to bypass an extraction bug. It will force
-- the inclusion of Standard_Integer.hxx itself
-- including Standard_OStream.hxx at the correct
-- position.
end TopTools;
|