25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

ImporterRegistry.cpp 8.6 KiB

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