1 -- Created on: 1993-03-10
2 -- Created by: Philippe DAUTRY
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
25 ---Purpose : This package provides standard and frequently
26 -- used instantiations of generic classes from the
27 -- TCollection package with geometric objects from the gp package.
29 uses TCollection, TColStd, gp
35 -- Array1 of 2D objects.
38 instantiates Array1 from TCollection (Circ2d from gp);
40 instantiates Array1 from TCollection (Dir2d from gp);
42 instantiates Array1 from TCollection (Lin2d from gp);
44 instantiates Array1 from TCollection (Pnt2d from gp);
46 instantiates Array1 from TCollection (Vec2d from gp);
48 instantiates Array1 from TCollection (XY from gp);
51 -- Array1 of 3D objects.
54 instantiates Array1 from TCollection (Dir from gp);
56 instantiates Array1 from TCollection (Pnt from gp);
58 instantiates Array1 from TCollection (Vec from gp);
60 instantiates Array1 from TCollection (XYZ from gp);
63 -- Array2 of 2D objects.
66 instantiates Array2 from TCollection (Circ2d from gp);
68 instantiates Array2 from TCollection (Dir2d from gp);
70 instantiates Array2 from TCollection (Lin2d from gp);
72 instantiates Array2 from TCollection (Pnt2d from gp);
74 instantiates Array2 from TCollection (Vec2d from gp);
76 instantiates Array2 from TCollection (XY from gp);
79 -- Array2 of 3D objects.
82 instantiates Array2 from TCollection (Dir from gp);
84 instantiates Array2 from TCollection (Pnt from gp);
86 instantiates Array2 from TCollection (Vec from gp);
88 instantiates Array2 from TCollection (XYZ from gp);
91 -- HArray1 of 2D objects.
94 instantiates HArray1 from TCollection (Circ2d from gp,
95 Array1OfCirc2d from TColgp);
97 instantiates HArray1 from TCollection (Dir2d from gp,
98 Array1OfDir2d from TColgp);
100 instantiates HArray1 from TCollection (Lin2d from gp,
101 Array1OfLin2d from TColgp);
103 instantiates HArray1 from TCollection (Pnt2d from gp,
104 Array1OfPnt2d from TColgp);
106 instantiates HArray1 from TCollection (Vec2d from gp,
107 Array1OfVec2d from TColgp);
109 instantiates HArray1 from TCollection (XY from gp,
110 Array1OfXY from TColgp);
113 -- HArray1 of 3D objects.
116 instantiates HArray1 from TCollection (Dir from gp,
117 Array1OfDir from TColgp);
119 instantiates HArray1 from TCollection (Pnt from gp,
120 Array1OfPnt from TColgp);
122 instantiates HArray1 from TCollection (Vec from gp,
123 Array1OfVec from TColgp);
125 instantiates HArray1 from TCollection (XYZ from gp,
126 Array1OfXYZ from TColgp);
129 -- HArray2 of 2D objects.
131 class HArray2OfCirc2d
132 instantiates HArray2 from TCollection (Circ2d from gp,
133 Array2OfCirc2d from TColgp);
135 instantiates HArray2 from TCollection (Dir2d from gp,
136 Array2OfDir2d from TColgp);
138 instantiates HArray2 from TCollection (Lin2d from gp,
139 Array2OfLin2d from TColgp);
141 instantiates HArray2 from TCollection (Pnt2d from gp,
142 Array2OfPnt2d from TColgp);
144 instantiates HArray2 from TCollection (Vec2d from gp,
145 Array2OfVec2d from TColgp);
147 instantiates HArray2 from TCollection (XY from gp,
148 Array2OfXY from TColgp);
151 -- HArray2 of 3D objects.
154 instantiates HArray2 from TCollection (Dir from gp,
155 Array2OfDir from TColgp);
157 instantiates HArray2 from TCollection (Pnt from gp,
158 Array2OfPnt from TColgp);
160 instantiates HArray2 from TCollection (Vec from gp,
161 Array2OfVec from TColgp);
163 instantiates HArray2 from TCollection (XYZ from gp,
164 Array2OfXYZ from TColgp);
167 -- Sequences of 3D objects.
170 instantiates Sequence from TCollection (Dir from gp);
172 instantiates Sequence from TCollection (Pnt from gp);
174 instantiates Sequence from TCollection (Vec from gp);
176 instantiates Sequence from TCollection (XYZ from gp);
179 -- HSequences of 3D objects.
182 instantiates HSequence from TCollection (Dir from gp,
183 SequenceOfDir from TColgp);
185 instantiates HSequence from TCollection (Pnt from gp,
186 SequenceOfPnt from TColgp);
189 instantiates HSequence from TCollection (Vec from gp,
190 SequenceOfVec from TColgp);
193 instantiates HSequence from TCollection (XYZ from gp,
194 SequenceOfXYZ from TColgp);
197 -- Sequences of 2D objects.
199 class SequenceOfDir2d
200 instantiates Sequence from TCollection (Dir2d from gp);
201 class SequenceOfPnt2d
202 instantiates Sequence from TCollection (Pnt2d from gp);
203 class SequenceOfVec2d
204 instantiates Sequence from TCollection (Vec2d from gp);
206 instantiates Sequence from TCollection (XY from gp);
207 class SequenceOfArray1OfPnt2d
208 instantiates Sequence from TCollection(HArray1OfPnt2d from TColgp);
211 -- HSequences of 2D objects.
213 class HSequenceOfDir2d
214 instantiates HSequence from TCollection (Dir2d from gp,
215 SequenceOfDir2d from TColgp);
216 class HSequenceOfPnt2d
217 instantiates HSequence from TCollection (Pnt2d from gp,
218 SequenceOfPnt2d from TColgp);
219 class HSequenceOfVec2d
220 instantiates HSequence from TCollection (Vec2d from gp,
221 SequenceOfVec2d from TColgp);
223 instantiates HSequence from TCollection (XY from gp,
224 SequenceOfXY from TColgp);
227 -- Instantiations DataMap
230 class DataMapOfIntegerCirc2d instantiates
231 DataMap from TCollection(Integer,Circ2d from gp,MapIntegerHasher from TColStd);