1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2003 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #define OSG_COMPILEFIELDINST
43 #include "OSGSField.h"
44 #include "OSGSField.ins"
46 #include "OSGMField.h"
47 #include "OSGMField.ins"
49 #include "OSGVecSFields.h"
50 #include "OSGVecMFields.h"
52 #include "OSGFieldContainer.h"
56 OSG_FIELDTRAITS_GETTYPE (Vec1ub
)
57 #ifndef OSG_NO_INT8_PNT
58 OSG_FIELDTRAITS_GETTYPE (Vec1b
)
60 OSG_FIELDTRAITS_GETTYPE (Vec1us
)
61 OSG_FIELDTRAITS_GETTYPE (Vec1s
)
62 OSG_FIELDTRAITS_GETTYPE (Vec1u
)
63 OSG_FIELDTRAITS_GETTYPE (Vec1i
)
64 OSG_FIELDTRAITS_GETTYPE (Vec1f
)
65 OSG_FIELDTRAITS_GETTYPE (Vec1fx
)
66 OSG_FIELDTRAITS_GETTYPE (Vec1d
)
67 OSG_FIELDTRAITS_GETTYPE (Vec1ld
)
69 #ifndef OSG_DOXYGEN_REC_MACRO_PROBS
70 OSG_FIELDTRAITS_GETTYPE (Vec2ub
)
71 #ifndef OSG_NO_INT8_PNT
72 OSG_FIELDTRAITS_GETTYPE (Vec2b
)
74 OSG_FIELDTRAITS_GETTYPE (Vec2us
)
75 OSG_FIELDTRAITS_GETTYPE (Vec2s
)
76 OSG_FIELDTRAITS_GETTYPE (Vec2u
)
77 OSG_FIELDTRAITS_GETTYPE (Vec2i
)
78 OSG_FIELDTRAITS_GETTYPE (Vec2f
)
79 OSG_FIELDTRAITS_GETTYPE (Vec2fx
)
80 OSG_FIELDTRAITS_GETTYPE (Vec2d
)
81 OSG_FIELDTRAITS_GETTYPE (Vec2ld
)
83 OSG_FIELDTRAITS_GETTYPE (Vec3ub
)
84 #ifndef OSG_NO_INT8_PNT
85 OSG_FIELDTRAITS_GETTYPE (Vec3b
)
87 OSG_FIELDTRAITS_GETTYPE (Vec3us
)
88 OSG_FIELDTRAITS_GETTYPE (Vec3s
)
89 OSG_FIELDTRAITS_GETTYPE (Vec3u
)
90 OSG_FIELDTRAITS_GETTYPE (Vec3i
)
91 OSG_FIELDTRAITS_GETTYPE (Vec3f
)
92 OSG_FIELDTRAITS_GETTYPE (Vec3fx
)
93 OSG_FIELDTRAITS_GETTYPE (Vec3d
)
94 OSG_FIELDTRAITS_GETTYPE (Vec3ld
)
96 OSG_FIELDTRAITS_GETTYPE (Vec4ub
)
97 #ifndef OSG_NO_INT8_PNT
98 OSG_FIELDTRAITS_GETTYPE (Vec4b
)
100 OSG_FIELDTRAITS_GETTYPE (Vec4us
)
101 OSG_FIELDTRAITS_GETTYPE (Vec4s
)
102 OSG_FIELDTRAITS_GETTYPE (Vec4u
)
103 OSG_FIELDTRAITS_GETTYPE (Vec4i
)
104 OSG_FIELDTRAITS_GETTYPE (Vec4f
)
105 OSG_FIELDTRAITS_GETTYPE (Vec4fx
)
106 OSG_FIELDTRAITS_GETTYPE (Vec4d
)
107 OSG_FIELDTRAITS_GETTYPE (Vec4ld
)
109 OSG_FIELDTRAITS_GETTYPE (Pnt1ub
)
110 #ifndef OSG_NO_INT8_PNT
111 OSG_FIELDTRAITS_GETTYPE (Pnt1b
)
113 OSG_FIELDTRAITS_GETTYPE (Pnt1us
)
114 OSG_FIELDTRAITS_GETTYPE (Pnt1s
)
115 OSG_FIELDTRAITS_GETTYPE (Pnt1f
)
116 OSG_FIELDTRAITS_GETTYPE (Pnt1fx
)
117 OSG_FIELDTRAITS_GETTYPE (Pnt1d
)
118 OSG_FIELDTRAITS_GETTYPE (Pnt1ld
)
120 OSG_FIELDTRAITS_GETTYPE (Pnt2ub
)
121 #ifndef OSG_NO_INT8_PNT
122 OSG_FIELDTRAITS_GETTYPE (Pnt2b
)
124 OSG_FIELDTRAITS_GETTYPE (Pnt2us
)
125 OSG_FIELDTRAITS_GETTYPE (Pnt2s
)
126 OSG_FIELDTRAITS_GETTYPE (Pnt2f
)
127 OSG_FIELDTRAITS_GETTYPE (Pnt2fx
)
128 OSG_FIELDTRAITS_GETTYPE (Pnt2d
)
129 OSG_FIELDTRAITS_GETTYPE (Pnt2ld
)
131 OSG_FIELDTRAITS_GETTYPE (Pnt3ub
)
132 #ifndef OSG_NO_INT8_PNT
133 OSG_FIELDTRAITS_GETTYPE (Pnt3b
)
135 OSG_FIELDTRAITS_GETTYPE (Pnt3us
)
136 OSG_FIELDTRAITS_GETTYPE (Pnt3s
)
137 OSG_FIELDTRAITS_GETTYPE (Pnt3f
)
138 OSG_FIELDTRAITS_GETTYPE (Pnt3fx
)
139 OSG_FIELDTRAITS_GETTYPE (Pnt3d
)
140 OSG_FIELDTRAITS_GETTYPE (Pnt3ld
)
142 OSG_FIELDTRAITS_GETTYPE (Pnt4ub
)
143 #ifndef OSG_NO_INT8_PNT
144 OSG_FIELDTRAITS_GETTYPE (Pnt4b
)
146 OSG_FIELDTRAITS_GETTYPE (Pnt4us
)
147 OSG_FIELDTRAITS_GETTYPE (Pnt4s
)
148 OSG_FIELDTRAITS_GETTYPE (Pnt4f
)
149 OSG_FIELDTRAITS_GETTYPE (Pnt4fx
)
150 OSG_FIELDTRAITS_GETTYPE (Pnt4d
)
151 OSG_FIELDTRAITS_GETTYPE (Pnt4ld
)
155 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1ub
)
156 #ifndef OSG_NO_INT8_PNT
157 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1b
)
159 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1us
)
160 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1s
)
161 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1u
)
162 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1i
)
163 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1f
)
164 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1fx
)
165 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1d
)
166 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec1ld
)
168 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2ub
)
169 #ifndef OSG_NO_INT8_PNT
170 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2b
)
172 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2us
)
173 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2s
)
174 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2u
)
175 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2i
)
176 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2f
)
177 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2fx
)
178 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2d
)
179 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec2ld
)
181 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3ub
)
182 #ifndef OSG_NO_INT8_PNT
183 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3b
)
185 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3us
)
186 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3s
)
187 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3u
)
188 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3i
)
189 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3f
)
190 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3fx
)
191 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3d
)
192 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec3ld
)
194 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4ub
)
195 #ifndef OSG_NO_INT8_PNT
196 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4b
)
198 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4us
)
199 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4s
)
200 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4u
)
201 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4i
)
202 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4f
)
203 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4fx
)
204 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4d
)
205 OSG_FIELD_DLLEXPORT_DEF1(SField
, Vec4ld
)
207 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1ub
)
208 #ifndef OSG_NO_INT8_PNT
209 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1b
)
211 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1us
)
212 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1s
)
213 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1f
)
214 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1fx
)
215 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1d
)
216 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt1ld
)
218 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2ub
)
219 #ifndef OSG_NO_INT8_PNT
220 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2b
)
222 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2us
)
223 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2s
)
224 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2f
)
225 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2fx
)
226 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2d
)
227 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt2ld
)
229 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3ub
)
230 #ifndef OSG_NO_INT8_PNT
231 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3b
)
233 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3us
)
234 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3s
)
235 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3f
)
236 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3fx
)
237 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3d
)
238 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt3ld
)
240 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4ub
)
241 #ifndef OSG_NO_INT8_PNT
242 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4b
)
244 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4us
)
245 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4s
)
246 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4f
)
247 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4fx
)
248 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4d
)
249 OSG_FIELD_DLLEXPORT_DEF1(SField
, Pnt4ld
)
251 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1ub
)
252 #ifndef OSG_NO_INT8_PNT
253 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1b
)
255 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1us
)
256 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1s
)
257 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1u
)
258 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1i
)
259 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1f
)
260 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1fx
)
261 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1d
)
262 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec1ld
)
264 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2ub
)
265 #ifndef OSG_NO_INT8_PNT
266 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2b
)
268 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2us
)
269 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2s
)
270 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2u
)
271 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2i
)
272 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2f
)
273 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2fx
)
274 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2d
)
275 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec2ld
)
277 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3ub
)
278 #ifndef OSG_NO_INT8_PNT
279 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3b
)
281 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3us
)
282 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3s
)
283 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3u
)
284 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3i
)
285 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3f
)
286 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3fx
)
287 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3d
)
288 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec3ld
)
290 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4ub
)
291 #ifndef OSG_NO_INT8_PNT
292 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4b
)
294 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4us
)
295 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4s
)
296 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4u
)
297 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4i
)
298 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4f
)
299 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4fx
)
300 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4d
)
301 OSG_FIELD_DLLEXPORT_DEF1(MField
, Vec4ld
)
303 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1ub
)
304 #ifndef OSG_NO_INT8_PNT
305 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1b
)
307 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1us
)
308 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1s
)
309 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1f
)
310 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1fx
)
311 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1d
)
312 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt1ld
)
314 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2ub
)
315 #ifndef OSG_NO_INT8_PNT
316 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2b
)
318 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2us
)
319 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2s
)
320 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2f
)
321 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2fx
)
322 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2d
)
323 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt2ld
)
325 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3ub
)
326 #ifndef OSG_NO_INT8_PNT
327 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3b
)
329 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3us
)
330 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3s
)
331 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3f
)
332 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3fx
)
333 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3d
)
334 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt3ld
)
336 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4ub
)
337 #ifndef OSG_NO_INT8_PNT
338 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4b
)
340 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4us
)
341 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4s
)
342 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4f
)
343 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4fx
)
344 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4d
)
345 OSG_FIELD_DLLEXPORT_DEF1(MField
, Pnt4ld
)