Debian Codegraph @

lib/database/src/so/upgraders/SoV1UpgraderInit.c++

raw
1 /*
2 *
3 * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
27 * Mountain View, CA 94043, or:
28 *
29 * http://www.sgi.com
30 *
31 * For further information regarding this notice, see:
32 *
33 * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
34 *
35 */
36
37 /*
38 * Copyright (C) 1990,91,92 Silicon Graphics, Inc.
39 *
40 _______________________________________________________________________
41 ______________ S I L I C O N G R A P H I C S I N C . ____________
42 |
43 | $Revision: 1.1.1.1 $
44 |
45 | Class:
46 | call initClasses for all upgrader classes
47 |
48 | Author(s) : Gavin Bell
49 |
50 ______________ S I L I C O N G R A P H I C S I N C . ____________
51 _______________________________________________________________________
52 */
53
54 #include "SoUpgraders.h"
55
56 ////////////////////////////////////////////////////////////////////////
57 //
58 // Description:
59 // This initializes the SoV1CustomNode class.
60 //
61 // Use: internal
62
63 void
64 SoV1CustomNode::initClass()
65 //
66 ////////////////////////////////////////////////////////////////////////
67 {
68 SO_UPGRADER_INIT_CLASS(SoV1CustomNode);
69 SO_REGISTER_UPGRADER(CustomNode, 1.0);
70 }
71
72 ////////////////////////////////////////////////////////////////////////
73 //
74 // Description:
75 // This initializes the SoV1DrawStyle class.
76 //
77 // Use: internal
78
79 void
80 SoV1DrawStyle::initClass()
81 //
82 ////////////////////////////////////////////////////////////////////////
83 {
84 SO_UPGRADER_INIT_CLASS(SoV1DrawStyle);
85 SO_REGISTER_UPGRADER(DrawStyle, 1.0);
86 }
87
88 ////////////////////////////////////////////////////////////////////////
89 //
90 // Description:
91 // This initializes the SoV1Environment class.
92 //
93 // Use: internal
94
95 void
96 SoV1Environment::initClass()
97 //
98 ////////////////////////////////////////////////////////////////////////
99 {
100 SO_UPGRADER_INIT_CLASS(SoV1Environment);
101 SO_REGISTER_UPGRADER(Environment, 1.0);
102 }
103
104 ////////////////////////////////////////////////////////////////////////
105 //
106 // Description:
107 // This initializes the SoV1IndexedTriangleMesh class.
108 //
109 // Use: internal
110
111 void
112 SoV1IndexedTriangleMesh::initClass()
113 //
114 ////////////////////////////////////////////////////////////////////////
115 {
116 SO_UPGRADER_INIT_CLASS(SoV1IndexedTriangleMesh);
117 SO_REGISTER_UPGRADER(IndexedTriangleMesh, 1.0);
118 }
119
120 ////////////////////////////////////////////////////////////////////////
121 //
122 // Description:
123 // This initializes the SoV1LayerGroup class.
124 //
125 // Use: internal
126
127 void
128 SoV1LayerGroup::initClass()
129 //
130 ////////////////////////////////////////////////////////////////////////
131 {
132 SO_UPGRADER_INIT_CLASS(SoV1LayerGroup);
133 SO_REGISTER_UPGRADER(LayerGroup, 1.0);
134 }
135
136 ////////////////////////////////////////////////////////////////////////
137 //
138 // Description:
139 // This initializes the SoV1LightModel class.
140 //
141 // Use: internal
142
143 void
144 SoV1LightModel::initClass()
145 //
146 ////////////////////////////////////////////////////////////////////////
147 {
148 SO_UPGRADER_INIT_CLASS(SoV1LightModel);
149 SO_REGISTER_UPGRADER(LightModel, 1.0);
150 }
151
152 ////////////////////////////////////////////////////////////////////////
153 //
154 // Description:
155 // This initializes the SoV1Material class.
156 //
157 // Use: internal
158
159 void
160 SoV1Material::initClass()
161 //
162 ////////////////////////////////////////////////////////////////////////
163 {
164 SO_UPGRADER_INIT_CLASS(SoV1Material);
165 SO_REGISTER_UPGRADER(Material, 1.0);
166 }
167
168 ////////////////////////////////////////////////////////////////////////
169 //
170 // Description:
171 // This initializes the SoV1PickStyle class.
172 //
173 // Use: internal
174
175 void
176 SoV1PickStyle::initClass()
177 //
178 ////////////////////////////////////////////////////////////////////////
179 {
180 SO_UPGRADER_INIT_CLASS(SoV1PickStyle);
181 SO_REGISTER_UPGRADER(PickStyle, 1.0);
182 }
183
184 ////////////////////////////////////////////////////////////////////////
185 //
186 // Description:
187 // This initializes the SoV1Separator class.
188 //
189 // Use: internal
190
191 void
192 SoV1Separator::initClass()
193 //
194 ////////////////////////////////////////////////////////////////////////
195 {
196 SO_UPGRADER_INIT_CLASS(SoV1Separator);
197 SO_REGISTER_UPGRADER(Separator, 1.0);
198 }
199
200 ////////////////////////////////////////////////////////////////////////
201 //
202 // Description:
203 // This initializes the SoV1ShapeHints class.
204 //
205 // Use: internal
206
207 void
208 SoV1ShapeHints::initClass()
209 //
210 ////////////////////////////////////////////////////////////////////////
211 {
212 SO_UPGRADER_INIT_CLASS(SoV1ShapeHints);
213 SO_REGISTER_UPGRADER(ShapeHints, 1.0);
214 }
215
216 ////////////////////////////////////////////////////////////////////////
217 //
218 // Description:
219 // This initializes the SoV1Text3 class.
220 //
221 // Use: internal
222
223 void
224 SoV1Text3::initClass()
225 //
226 ////////////////////////////////////////////////////////////////////////
227 {
228 SO_UPGRADER_INIT_CLASS(SoV1Text3);
229 SO_REGISTER_UPGRADER(Text3, 1.0);
230 SO_REGISTER_UPGRADER(Text3, 2.0);
231 }
232 ////////////////////////////////////////////////////////////////////////
233 //
234 // Description:
235 // This initializes the SoV1Text2 class.
236 //
237 // Use: internal
238
239 void
240 SoV1Text2::initClass()
241 //
242 ////////////////////////////////////////////////////////////////////////
243 {
244 SO_UPGRADER_INIT_CLASS(SoV1Text2);
245 SO_REGISTER_UPGRADER(Text2, 1.0);
246 SO_REGISTER_UPGRADER(Text2, 2.0);
247 }
248
249 ////////////////////////////////////////////////////////////////////////
250 //
251 // Description:
252 // This initializes the SoV1Texture2 class.
253 //
254 // Use: internal
255
256 void
257 SoV1Texture2::initClass()
258 //
259 ////////////////////////////////////////////////////////////////////////
260 {
261 SO_UPGRADER_INIT_CLASS(SoV1Texture2);
262 SO_REGISTER_UPGRADER(Texture2, 1.0);
263 }
264
265 ////////////////////////////////////////////////////////////////////////
266 //
267 // Description:
268 // This initializes the SoV1TextureCoordinateCube class.
269 //
270 // Use: internal
271
272 void
273 SoV1TextureCoordinateCube::initClass()
274 //
275 ////////////////////////////////////////////////////////////////////////
276 {
277 SO_UPGRADER_INIT_CLASS(SoV1TextureCoordinateCube);
278 SO_REGISTER_UPGRADER(TextureCoordinateCube, 1.0);
279 }
280
281 ////////////////////////////////////////////////////////////////////////
282 //
283 // Description:
284 // This initializes the SoV1TextureCoordinateCylinder class.
285 //
286 // Use: internal
287
288 void
289 SoV1TextureCoordinateCylinder::initClass()
290 //
291 ////////////////////////////////////////////////////////////////////////
292 {
293 SO_UPGRADER_INIT_CLASS(SoV1TextureCoordinateCylinder);
294 SO_REGISTER_UPGRADER(TextureCoordinateCylinder, 1.0);
295 }
296
297 ////////////////////////////////////////////////////////////////////////
298 //
299 // Description:
300 // This initializes the SoV1TextureCoordinateEnvironment class.
301 //
302 // Use: internal
303
304 void
305 SoV1TextureCoordinateEnvironment::initClass()
306 //
307 ////////////////////////////////////////////////////////////////////////
308 {
309 SO_UPGRADER_INIT_CLASS(SoV1TextureCoordinateEnvironment);
310 SO_REGISTER_UPGRADER(TextureCoordinateEnvironment, 1.0);
311 }
312
313 ////////////////////////////////////////////////////////////////////////
314 //
315 // Description:
316 // This initializes the SoV1TextureCoordinatePlane class.
317 //
318 // Use: internal
319
320 void
321 SoV1TextureCoordinatePlane::initClass()
322 //
323 ////////////////////////////////////////////////////////////////////////
324 {
325 SO_UPGRADER_INIT_CLASS(SoV1TextureCoordinatePlane);
326 SO_REGISTER_UPGRADER(TextureCoordinatePlane, 1.0);
327
328 sDir = SbVec3f(1,0,0);
329 tDir = SbVec3f(0,1,0);
330 }
331
332 ////////////////////////////////////////////////////////////////////////
333 //
334 // Description:
335 // This initializes the SoV1TextureCoordinateSphere class.
336 //
337 // Use: internal
338
339 void
340 SoV1TextureCoordinateSphere::initClass()
341 //
342 ////////////////////////////////////////////////////////////////////////
343 {
344 SO_UPGRADER_INIT_CLASS(SoV1TextureCoordinateSphere);
345 SO_REGISTER_UPGRADER(TextureCoordinateSphere, 1.0);
346 }
347