vrshoot

view libs/assimp/ImporterRegistry.cpp @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line source
1 /*
2 ---------------------------------------------------------------------------
3 Open Asset Import Library (assimp)
4 ---------------------------------------------------------------------------
6 Copyright (c) 2006-2012, assimp team
8 All rights reserved.
10 Redistribution and use of this software in source and binary forms,
11 with or without modification, are permitted provided that the following
12 conditions are met:
14 * Redistributions of source code must retain the above
15 copyright notice, this list of conditions and the
16 following disclaimer.
18 * Redistributions in binary form must reproduce the above
19 copyright notice, this list of conditions and the
20 following disclaimer in the documentation and/or other
21 materials provided with the distribution.
23 * Neither the name of the assimp team, nor the names of its
24 contributors may be used to endorse or promote products
25 derived from this software without specific prior
26 written permission of the assimp team.
28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 ---------------------------------------------------------------------------
40 */
42 /** @file ImporterRegistry.cpp
44 Central registry for all importers available. Do not edit this file
45 directly (unless you are adding new loaders), instead use the
46 corresponding preprocessor flag to selectively disable formats.
47 */
49 #include "AssimpPCH.h"
51 // ------------------------------------------------------------------------------------------------
52 // Importers
53 // (include_new_importers_here)
54 // ------------------------------------------------------------------------------------------------
55 #ifndef ASSIMP_BUILD_NO_X_IMPORTER
56 # include "XFileImporter.h"
57 #endif
58 #ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
59 # include "3DSLoader.h"
60 #endif
61 #ifndef ASSIMP_BUILD_NO_MD3_IMPORTER
62 # include "MD3Loader.h"
63 #endif
64 #ifndef ASSIMP_BUILD_NO_MDL_IMPORTER
65 # include "MDLLoader.h"
66 #endif
67 #ifndef ASSIMP_BUILD_NO_MD2_IMPORTER
68 # include "MD2Loader.h"
69 #endif
70 #ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
71 # include "PlyLoader.h"
72 #endif
73 #ifndef ASSIMP_BUILD_NO_ASE_IMPORTER
74 # include "ASELoader.h"
75 #endif
76 #ifndef ASSIMP_BUILD_NO_OBJ_IMPORTER
77 # include "ObjFileImporter.h"
78 #endif
79 #ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
80 # include "HMPLoader.h"
81 #endif
82 #ifndef ASSIMP_BUILD_NO_SMD_IMPORTER
83 # include "SMDLoader.h"
84 #endif
85 #ifndef ASSIMP_BUILD_NO_MDC_IMPORTER
86 # include "MDCLoader.h"
87 #endif
88 #ifndef ASSIMP_BUILD_NO_MD5_IMPORTER
89 # include "MD5Loader.h"
90 #endif
91 #ifndef ASSIMP_BUILD_NO_STL_IMPORTER
92 # include "STLLoader.h"
93 #endif
94 #ifndef ASSIMP_BUILD_NO_LWO_IMPORTER
95 # include "LWOLoader.h"
96 #endif
97 #ifndef ASSIMP_BUILD_NO_DXF_IMPORTER
98 # include "DXFLoader.h"
99 #endif
100 #ifndef ASSIMP_BUILD_NO_NFF_IMPORTER
101 # include "NFFLoader.h"
102 #endif
103 #ifndef ASSIMP_BUILD_NO_RAW_IMPORTER
104 # include "RawLoader.h"
105 #endif
106 #ifndef ASSIMP_BUILD_NO_OFF_IMPORTER
107 # include "OFFLoader.h"
108 #endif
109 #ifndef ASSIMP_BUILD_NO_AC_IMPORTER
110 # include "ACLoader.h"
111 #endif
112 #ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
113 # include "BVHLoader.h"
114 #endif
115 #ifndef ASSIMP_BUILD_NO_IRRMESH_IMPORTER
116 # include "IRRMeshLoader.h"
117 #endif
118 #ifndef ASSIMP_BUILD_NO_IRR_IMPORTER
119 # include "IRRLoader.h"
120 #endif
121 #ifndef ASSIMP_BUILD_NO_Q3D_IMPORTER
122 # include "Q3DLoader.h"
123 #endif
124 #ifndef ASSIMP_BUILD_NO_B3D_IMPORTER
125 # include "B3DImporter.h"
126 #endif
127 #ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
128 # include "ColladaLoader.h"
129 #endif
130 #ifndef ASSIMP_BUILD_NO_TERRAGEN_IMPORTER
131 # include "TerragenLoader.h"
132 #endif
133 #ifndef ASSIMP_BUILD_NO_CSM_IMPORTER
134 # include "CSMLoader.h"
135 #endif
136 #ifndef ASSIMP_BUILD_NO_3D_IMPORTER
137 # include "UnrealLoader.h"
138 #endif
139 #ifndef ASSIMP_BUILD_NO_LWS_IMPORTER
140 # include "LWSLoader.h"
141 #endif
142 #ifndef ASSIMP_BUILD_NO_OGRE_IMPORTER
143 # include "OgreImporter.hpp"
144 #endif
145 #ifndef ASSIMP_BUILD_NO_MS3D_IMPORTER
146 # include "MS3DLoader.h"
147 #endif
148 #ifndef ASSIMP_BUILD_NO_COB_IMPORTER
149 # include "COBLoader.h"
150 #endif
151 #ifndef ASSIMP_BUILD_NO_BLEND_IMPORTER
152 # include "BlenderLoader.h"
153 #endif
154 #ifndef ASSIMP_BUILD_NO_Q3BSP_IMPORTER
155 # include "Q3BSPFileImporter.h"
156 #endif
157 #ifndef ASSIMP_BUILD_NO_NDO_IMPORTER
158 # include "NDOLoader.h"
159 #endif
160 #ifndef ASSIMP_BUILD_NO_IFC_IMPORTER
161 # include "IFCLoader.h"
162 #endif
163 #ifndef ASSIMP_BUILD_NO_XGL_IMPORTER
164 # include "XGLLoader.h"
165 #endif
166 #ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
167 # include "FBXImporter.h"
168 #endif
170 namespace Assimp {
172 // ------------------------------------------------------------------------------------------------
173 void GetImporterInstanceList(std::vector< BaseImporter* >& out)
174 {
175 // ----------------------------------------------------------------------------
176 // Add an instance of each worker class here
177 // (register_new_importers_here)
178 // ----------------------------------------------------------------------------
179 out.reserve(64);
180 #if (!defined ASSIMP_BUILD_NO_X_IMPORTER)
181 out.push_back( new XFileImporter());
182 #endif
183 #if (!defined ASSIMP_BUILD_NO_OBJ_IMPORTER)
184 out.push_back( new ObjFileImporter());
185 #endif
186 #if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
187 out.push_back( new Discreet3DSImporter());
188 #endif
189 #if (!defined ASSIMP_BUILD_NO_MD3_IMPORTER)
190 out.push_back( new MD3Importer());
191 #endif
192 #if (!defined ASSIMP_BUILD_NO_MD2_IMPORTER)
193 out.push_back( new MD2Importer());
194 #endif
195 #if (!defined ASSIMP_BUILD_NO_PLY_IMPORTER)
196 out.push_back( new PLYImporter());
197 #endif
198 #if (!defined ASSIMP_BUILD_NO_MDL_IMPORTER)
199 out.push_back( new MDLImporter());
200 #endif
201 #if (!defined ASSIMP_BUILD_NO_ASE_IMPORTER)
202 out.push_back( new ASEImporter());
203 #endif
204 #if (!defined ASSIMP_BUILD_NO_HMP_IMPORTER)
205 out.push_back( new HMPImporter());
206 #endif
207 #if (!defined ASSIMP_BUILD_NO_SMD_IMPORTER)
208 out.push_back( new SMDImporter());
209 #endif
210 #if (!defined ASSIMP_BUILD_NO_MDC_IMPORTER)
211 out.push_back( new MDCImporter());
212 #endif
213 #if (!defined ASSIMP_BUILD_NO_MD5_IMPORTER)
214 out.push_back( new MD5Importer());
215 #endif
216 #if (!defined ASSIMP_BUILD_NO_STL_IMPORTER)
217 out.push_back( new STLImporter());
218 #endif
219 #if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER)
220 out.push_back( new LWOImporter());
221 #endif
222 #if (!defined ASSIMP_BUILD_NO_DXF_IMPORTER)
223 out.push_back( new DXFImporter());
224 #endif
225 #if (!defined ASSIMP_BUILD_NO_NFF_IMPORTER)
226 out.push_back( new NFFImporter());
227 #endif
228 #if (!defined ASSIMP_BUILD_NO_RAW_IMPORTER)
229 out.push_back( new RAWImporter());
230 #endif
231 #if (!defined ASSIMP_BUILD_NO_OFF_IMPORTER)
232 out.push_back( new OFFImporter());
233 #endif
234 #if (!defined ASSIMP_BUILD_NO_AC_IMPORTER)
235 out.push_back( new AC3DImporter());
236 #endif
237 #if (!defined ASSIMP_BUILD_NO_BVH_IMPORTER)
238 out.push_back( new BVHLoader());
239 #endif
240 #if (!defined ASSIMP_BUILD_NO_IRRMESH_IMPORTER)
241 out.push_back( new IRRMeshImporter());
242 #endif
243 #if (!defined ASSIMP_BUILD_NO_IRR_IMPORTER)
244 out.push_back( new IRRImporter());
245 #endif
246 #if (!defined ASSIMP_BUILD_NO_Q3D_IMPORTER)
247 out.push_back( new Q3DImporter());
248 #endif
249 #if (!defined ASSIMP_BUILD_NO_B3D_IMPORTER)
250 out.push_back( new B3DImporter());
251 #endif
252 #if (!defined ASSIMP_BUILD_NO_COLLADA_IMPORTER)
253 out.push_back( new ColladaLoader());
254 #endif
255 #if (!defined ASSIMP_BUILD_NO_TERRAGEN_IMPORTER)
256 out.push_back( new TerragenImporter());
257 #endif
258 #if (!defined ASSIMP_BUILD_NO_CSM_IMPORTER)
259 out.push_back( new CSMImporter());
260 #endif
261 #if (!defined ASSIMP_BUILD_NO_3D_IMPORTER)
262 out.push_back( new UnrealImporter());
263 #endif
264 #if (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
265 out.push_back( new LWSImporter());
266 #endif
267 #if (!defined ASSIMP_BUILD_NO_OGRE_IMPORTER)
268 out.push_back( new Ogre::OgreImporter());
269 #endif
270 #if (!defined ASSIMP_BUILD_NO_MS3D_IMPORTER)
271 out.push_back( new MS3DImporter());
272 #endif
273 #if (!defined ASSIMP_BUILD_NO_COB_IMPORTER)
274 out.push_back( new COBImporter());
275 #endif
276 #if (!defined ASSIMP_BUILD_NO_BLEND_IMPORTER)
277 out.push_back( new BlenderImporter());
278 #endif
279 #if (!defined ASSIMP_BUILD_NO_Q3BSP_IMPORTER)
280 out.push_back( new Q3BSPFileImporter() );
281 #endif
282 #if (!defined ASSIMP_BUILD_NO_NDO_IMPORTER)
283 out.push_back( new NDOImporter() );
284 #endif
285 #if (!defined ASSIMP_BUILD_NO_IFC_IMPORTER)
286 out.push_back( new IFCImporter() );
287 #endif
288 #if ( !defined ASSIMP_BUILD_NO_XGL_IMPORTER )
289 out.push_back( new XGLImporter() );
290 #endif
291 #if ( !defined ASSIMP_BUILD_NO_FBX_IMPORTER )
292 out.push_back( new FBXImporter() );
293 #endif
294 }
296 }