changed: gcc8 base update
[opensg.git] / Source / System / FileIO / OSB / OSGOSBGeoPropertyConversionElement.cpp
blob6db25a6ccb93ea1a0544a4cbab9a181f62f52676
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2007 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #include "OSGOSBGeoPropertyConversionElement.h"
40 #include "OSGOSBElementFactoryHelper.h"
42 #include "OSGTypedGeoIntegralProperty.h"
43 #include "OSGTypedGeoVectorProperty.h"
45 OSG_USING_NAMESPACE
47 /*-------------------------------------------------------------------------*/
48 /* OSBGeoPropertyConversionElement */
49 /*-------------------------------------------------------------------------*/
51 namespace {
53 static OSBElementRegistrationHelper<
54 OSBGeoPropertyConversionElement<GeoPnt2sProperty> >
55 _regPos2s("GeoPositions2s");
56 static OSBElementRegistrationHelper<
57 OSBGeoPropertyConversionElement<GeoPnt3sProperty> >
58 _regPos3s("GeoPositions3s");
59 static OSBElementRegistrationHelper<
60 OSBGeoPropertyConversionElement<GeoPnt4sProperty> >
61 _regPos4s("GeoPositions4s");
62 static OSBElementRegistrationHelper<
63 OSBGeoPropertyConversionElement<GeoPnt2fProperty> >
64 _regPos2f("GeoPositions2f");
65 static OSBElementRegistrationHelper<
66 OSBGeoPropertyConversionElement<GeoPnt3fProperty> >
67 _regPos3f("GeoPositions3f");
68 static OSBElementRegistrationHelper<
69 OSBGeoPropertyConversionElement<GeoPnt4fProperty> >
70 _regPos4f("GeoPositions4f");
71 #ifndef OSG_OGL_NO_DOUBLE
72 static OSBElementRegistrationHelper<
73 OSBGeoPropertyConversionElement<GeoPnt2dProperty> >
74 _regPos2d("GeoPositions2d");
75 static OSBElementRegistrationHelper<
76 OSBGeoPropertyConversionElement<GeoPnt3dProperty> >
77 _regPos3d("GeoPositions3d");
78 static OSBElementRegistrationHelper<
79 OSBGeoPropertyConversionElement<GeoPnt4dProperty> >
80 _regPos4d("GeoPositions4d");
81 #endif
83 static OSBElementRegistrationHelper<
84 OSBGeoPropertyConversionElement<GeoVec3sProperty> >
85 _regNorm3s("GeoNormals3s");
86 static OSBElementRegistrationHelper<
87 OSBGeoPropertyConversionElement<GeoVec3fProperty> >
88 _regNorm3f("GeoNormals3f");
89 static OSBElementRegistrationHelper<
90 OSBGeoPropertyConversionElement<GeoVec3bProperty> >
91 _regNorm3b("GeoNormals3b");
93 static OSBElementRegistrationHelper<
94 OSBGeoPropertyConversionElement<GeoColor3fProperty> >
95 _regCol3f("GeoColors3f");
96 static OSBElementRegistrationHelper<
97 OSBGeoPropertyConversionElement<GeoColor4fProperty> >
98 _regCol4f("GeoColors4f");
99 static OSBElementRegistrationHelper<
100 OSBGeoPropertyConversionElement<GeoColor3ubProperty> >
101 _regCol3ub("GeoColors3ub");
102 static OSBElementRegistrationHelper<
103 OSBGeoPropertyConversionElement<GeoColor4ubProperty> >
104 _regCol4ub("GeoColors4ub");
106 static OSBElementRegistrationHelper<
107 OSBGeoPropertyConversionElement<GeoVec1fProperty> >
108 _regTexCoord1f("GeoTexCoords1f");
109 static OSBElementRegistrationHelper<
110 OSBGeoPropertyConversionElement<GeoVec2fProperty> >
111 _regTexCoord2f("GeoTexCoords2f");
112 static OSBElementRegistrationHelper<
113 OSBGeoPropertyConversionElement<GeoVec3fProperty> >
114 _regTexCoord3f("GeoTexCoords3f");
115 static OSBElementRegistrationHelper<
116 OSBGeoPropertyConversionElement<GeoVec4fProperty> >
117 _regTexCoord4f("GeoTexCoords4f");
118 #ifndef OSG_OGL_NO_DOUBLE
119 static OSBElementRegistrationHelper<
120 OSBGeoPropertyConversionElement<GeoVec1dProperty> >
121 _regTexCoord1d("GeoTexCoords1d");
122 static OSBElementRegistrationHelper<
123 OSBGeoPropertyConversionElement<GeoVec2dProperty> >
124 _regTexCoord2d("GeoTexCoords2d");
125 static OSBElementRegistrationHelper<
126 OSBGeoPropertyConversionElement<GeoVec3dProperty> >
127 _regTexCoord3d("GeoTexCoords3d");
128 static OSBElementRegistrationHelper<
129 OSBGeoPropertyConversionElement<GeoVec4dProperty> >
130 _regTexCoord4d("GeoTexCoords4d");
131 #endif
133 static OSBElementRegistrationHelper<
134 OSBGeoPropertyConversionElement<GeoUInt8Property> >
135 _regTypesUI8("GeoPTypesUI8");
136 static OSBElementRegistrationHelper<
137 OSBGeoPropertyConversionElement<GeoUInt16Property> >
138 _regTypesUI16("GeoPTypesUI16");
139 static OSBElementRegistrationHelper<
140 OSBGeoPropertyConversionElement<GeoUInt32Property> >
141 _regTypesUI32("GeoPTypesUI32");
143 static OSBElementRegistrationHelper<
144 OSBGeoPropertyConversionElement<GeoUInt8Property> >
145 _regLengthsUI8("GeoPLengthsUI8");
146 static OSBElementRegistrationHelper<
147 OSBGeoPropertyConversionElement<GeoUInt16Property> >
148 _regLenghtsUI16("GeoPLengthsUI16");
149 static OSBElementRegistrationHelper<
150 OSBGeoPropertyConversionElement<GeoUInt32Property> >
151 _regLengthsUI32("GeoPLengthsUI32");
153 static OSBElementRegistrationHelper<
154 OSBGeoPropertyConversionElement<GeoUInt8Property> >
155 _regIndicesUI8("GeoIndicesUI8");
156 static OSBElementRegistrationHelper<
157 OSBGeoPropertyConversionElement<GeoUInt16Property> >
158 _regIndicesUI16("GeoIndicesUI16");
159 static OSBElementRegistrationHelper<
160 OSBGeoPropertyConversionElement<GeoUInt32Property> >
161 _regIndicesUI32("GeoIndicesUI32");
163 } // namespace