vrshoot

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/assimp/ImporterRegistry.cpp	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,296 @@
     1.4 +/*
     1.5 +---------------------------------------------------------------------------
     1.6 +Open Asset Import Library (assimp)
     1.7 +---------------------------------------------------------------------------
     1.8 +
     1.9 +Copyright (c) 2006-2012, assimp team
    1.10 +
    1.11 +All rights reserved.
    1.12 +
    1.13 +Redistribution and use of this software in source and binary forms, 
    1.14 +with or without modification, are permitted provided that the following 
    1.15 +conditions are met:
    1.16 +
    1.17 +* Redistributions of source code must retain the above
    1.18 +  copyright notice, this list of conditions and the
    1.19 +  following disclaimer.
    1.20 +
    1.21 +* Redistributions in binary form must reproduce the above
    1.22 +  copyright notice, this list of conditions and the
    1.23 +  following disclaimer in the documentation and/or other
    1.24 +  materials provided with the distribution.
    1.25 +
    1.26 +* Neither the name of the assimp team, nor the names of its
    1.27 +  contributors may be used to endorse or promote products
    1.28 +  derived from this software without specific prior
    1.29 +  written permission of the assimp team.
    1.30 +
    1.31 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
    1.32 +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
    1.33 +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    1.34 +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
    1.35 +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.36 +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
    1.37 +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    1.38 +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
    1.39 +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
    1.40 +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
    1.41 +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    1.42 +---------------------------------------------------------------------------
    1.43 +*/
    1.44 +
    1.45 +/** @file ImporterRegistry.cpp
    1.46 +
    1.47 +Central registry for all importers available. Do not edit this file
    1.48 +directly (unless you are adding new loaders), instead use the
    1.49 +corresponding preprocessor flag to selectively disable formats.
    1.50 +*/
    1.51 +
    1.52 +#include "AssimpPCH.h"
    1.53 +
    1.54 +// ------------------------------------------------------------------------------------------------
    1.55 +// Importers
    1.56 +// (include_new_importers_here)
    1.57 +// ------------------------------------------------------------------------------------------------
    1.58 +#ifndef ASSIMP_BUILD_NO_X_IMPORTER
    1.59 +#	include "XFileImporter.h"
    1.60 +#endif
    1.61 +#ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
    1.62 +#	include "3DSLoader.h"
    1.63 +#endif
    1.64 +#ifndef ASSIMP_BUILD_NO_MD3_IMPORTER
    1.65 +#	include "MD3Loader.h"
    1.66 +#endif
    1.67 +#ifndef ASSIMP_BUILD_NO_MDL_IMPORTER
    1.68 +#	include "MDLLoader.h"
    1.69 +#endif
    1.70 +#ifndef ASSIMP_BUILD_NO_MD2_IMPORTER
    1.71 +#	include "MD2Loader.h"
    1.72 +#endif
    1.73 +#ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
    1.74 +#	include "PlyLoader.h"
    1.75 +#endif
    1.76 +#ifndef ASSIMP_BUILD_NO_ASE_IMPORTER
    1.77 +#	include "ASELoader.h"
    1.78 +#endif
    1.79 +#ifndef ASSIMP_BUILD_NO_OBJ_IMPORTER
    1.80 +#	include "ObjFileImporter.h"
    1.81 +#endif
    1.82 +#ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
    1.83 +#	include "HMPLoader.h"
    1.84 +#endif
    1.85 +#ifndef ASSIMP_BUILD_NO_SMD_IMPORTER
    1.86 +#	include "SMDLoader.h"
    1.87 +#endif
    1.88 +#ifndef ASSIMP_BUILD_NO_MDC_IMPORTER
    1.89 +#	include "MDCLoader.h"
    1.90 +#endif
    1.91 +#ifndef ASSIMP_BUILD_NO_MD5_IMPORTER
    1.92 +#	include "MD5Loader.h"
    1.93 +#endif
    1.94 +#ifndef ASSIMP_BUILD_NO_STL_IMPORTER
    1.95 +#	include "STLLoader.h"
    1.96 +#endif
    1.97 +#ifndef ASSIMP_BUILD_NO_LWO_IMPORTER
    1.98 +#	include "LWOLoader.h"
    1.99 +#endif
   1.100 +#ifndef ASSIMP_BUILD_NO_DXF_IMPORTER
   1.101 +#	include "DXFLoader.h"
   1.102 +#endif
   1.103 +#ifndef ASSIMP_BUILD_NO_NFF_IMPORTER
   1.104 +#	include "NFFLoader.h"
   1.105 +#endif
   1.106 +#ifndef ASSIMP_BUILD_NO_RAW_IMPORTER
   1.107 +#	include "RawLoader.h"
   1.108 +#endif
   1.109 +#ifndef ASSIMP_BUILD_NO_OFF_IMPORTER
   1.110 +#	include "OFFLoader.h"
   1.111 +#endif
   1.112 +#ifndef ASSIMP_BUILD_NO_AC_IMPORTER
   1.113 +#	include "ACLoader.h"
   1.114 +#endif
   1.115 +#ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
   1.116 +#	include "BVHLoader.h"
   1.117 +#endif
   1.118 +#ifndef ASSIMP_BUILD_NO_IRRMESH_IMPORTER
   1.119 +#	include "IRRMeshLoader.h"
   1.120 +#endif
   1.121 +#ifndef ASSIMP_BUILD_NO_IRR_IMPORTER
   1.122 +#	include "IRRLoader.h"
   1.123 +#endif
   1.124 +#ifndef ASSIMP_BUILD_NO_Q3D_IMPORTER
   1.125 +#	include "Q3DLoader.h"
   1.126 +#endif
   1.127 +#ifndef ASSIMP_BUILD_NO_B3D_IMPORTER
   1.128 +#	include "B3DImporter.h"
   1.129 +#endif
   1.130 +#ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
   1.131 +#	include "ColladaLoader.h"
   1.132 +#endif
   1.133 +#ifndef ASSIMP_BUILD_NO_TERRAGEN_IMPORTER
   1.134 +#	include "TerragenLoader.h"
   1.135 +#endif
   1.136 +#ifndef ASSIMP_BUILD_NO_CSM_IMPORTER
   1.137 +#	include "CSMLoader.h"
   1.138 +#endif
   1.139 +#ifndef ASSIMP_BUILD_NO_3D_IMPORTER
   1.140 +#	include "UnrealLoader.h"
   1.141 +#endif
   1.142 +#ifndef ASSIMP_BUILD_NO_LWS_IMPORTER
   1.143 +#	include "LWSLoader.h"
   1.144 +#endif
   1.145 +#ifndef ASSIMP_BUILD_NO_OGRE_IMPORTER
   1.146 +#	include "OgreImporter.hpp"
   1.147 +#endif
   1.148 +#ifndef ASSIMP_BUILD_NO_MS3D_IMPORTER
   1.149 +#	include "MS3DLoader.h"
   1.150 +#endif
   1.151 +#ifndef ASSIMP_BUILD_NO_COB_IMPORTER
   1.152 +#	include "COBLoader.h"
   1.153 +#endif
   1.154 +#ifndef ASSIMP_BUILD_NO_BLEND_IMPORTER
   1.155 +#	include "BlenderLoader.h"
   1.156 +#endif
   1.157 +#ifndef ASSIMP_BUILD_NO_Q3BSP_IMPORTER
   1.158 +#	include "Q3BSPFileImporter.h"
   1.159 +#endif
   1.160 +#ifndef ASSIMP_BUILD_NO_NDO_IMPORTER
   1.161 +#	include "NDOLoader.h"
   1.162 +#endif
   1.163 +#ifndef ASSIMP_BUILD_NO_IFC_IMPORTER
   1.164 +#	include "IFCLoader.h"
   1.165 +#endif
   1.166 +#ifndef ASSIMP_BUILD_NO_XGL_IMPORTER
   1.167 +#   include "XGLLoader.h"
   1.168 +#endif 
   1.169 +#ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
   1.170 +#   include "FBXImporter.h"
   1.171 +#endif 
   1.172 +
   1.173 +namespace Assimp {
   1.174 +
   1.175 +// ------------------------------------------------------------------------------------------------
   1.176 +void GetImporterInstanceList(std::vector< BaseImporter* >& out)
   1.177 +{
   1.178 +	// ----------------------------------------------------------------------------
   1.179 +	// Add an instance of each worker class here
   1.180 +	// (register_new_importers_here)
   1.181 +	// ----------------------------------------------------------------------------
   1.182 +	out.reserve(64);
   1.183 +#if (!defined ASSIMP_BUILD_NO_X_IMPORTER)
   1.184 +	out.push_back( new XFileImporter());
   1.185 +#endif
   1.186 +#if (!defined ASSIMP_BUILD_NO_OBJ_IMPORTER)
   1.187 +	out.push_back( new ObjFileImporter());
   1.188 +#endif
   1.189 +#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
   1.190 +	out.push_back( new Discreet3DSImporter());
   1.191 +#endif
   1.192 +#if (!defined ASSIMP_BUILD_NO_MD3_IMPORTER)
   1.193 +	out.push_back( new MD3Importer());
   1.194 +#endif
   1.195 +#if (!defined ASSIMP_BUILD_NO_MD2_IMPORTER)
   1.196 +	out.push_back( new MD2Importer());
   1.197 +#endif
   1.198 +#if (!defined ASSIMP_BUILD_NO_PLY_IMPORTER)
   1.199 +	out.push_back( new PLYImporter());
   1.200 +#endif
   1.201 +#if (!defined ASSIMP_BUILD_NO_MDL_IMPORTER)
   1.202 +	out.push_back( new MDLImporter());
   1.203 +#endif
   1.204 +#if (!defined ASSIMP_BUILD_NO_ASE_IMPORTER)
   1.205 +	out.push_back( new ASEImporter());
   1.206 +#endif
   1.207 +#if (!defined ASSIMP_BUILD_NO_HMP_IMPORTER)
   1.208 +	out.push_back( new HMPImporter());
   1.209 +#endif
   1.210 +#if (!defined ASSIMP_BUILD_NO_SMD_IMPORTER)
   1.211 +	out.push_back( new SMDImporter());
   1.212 +#endif
   1.213 +#if (!defined ASSIMP_BUILD_NO_MDC_IMPORTER)
   1.214 +	out.push_back( new MDCImporter());
   1.215 +#endif
   1.216 +#if (!defined ASSIMP_BUILD_NO_MD5_IMPORTER)
   1.217 +	out.push_back( new MD5Importer());
   1.218 +#endif
   1.219 +#if (!defined ASSIMP_BUILD_NO_STL_IMPORTER)
   1.220 +	out.push_back( new STLImporter());
   1.221 +#endif
   1.222 +#if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER)
   1.223 +	out.push_back( new LWOImporter());
   1.224 +#endif
   1.225 +#if (!defined ASSIMP_BUILD_NO_DXF_IMPORTER)
   1.226 +	out.push_back( new DXFImporter());
   1.227 +#endif
   1.228 +#if (!defined ASSIMP_BUILD_NO_NFF_IMPORTER)
   1.229 +	out.push_back( new NFFImporter());
   1.230 +#endif
   1.231 +#if (!defined ASSIMP_BUILD_NO_RAW_IMPORTER)
   1.232 +	out.push_back( new RAWImporter());
   1.233 +#endif
   1.234 +#if (!defined ASSIMP_BUILD_NO_OFF_IMPORTER)
   1.235 +	out.push_back( new OFFImporter());
   1.236 +#endif
   1.237 +#if (!defined ASSIMP_BUILD_NO_AC_IMPORTER)
   1.238 +	out.push_back( new AC3DImporter());
   1.239 +#endif
   1.240 +#if (!defined ASSIMP_BUILD_NO_BVH_IMPORTER)
   1.241 +	out.push_back( new BVHLoader());
   1.242 +#endif
   1.243 +#if (!defined ASSIMP_BUILD_NO_IRRMESH_IMPORTER)
   1.244 +	out.push_back( new IRRMeshImporter());
   1.245 +#endif
   1.246 +#if (!defined ASSIMP_BUILD_NO_IRR_IMPORTER)
   1.247 +	out.push_back( new IRRImporter());
   1.248 +#endif
   1.249 +#if (!defined ASSIMP_BUILD_NO_Q3D_IMPORTER)
   1.250 +	out.push_back( new Q3DImporter());
   1.251 +#endif
   1.252 +#if (!defined ASSIMP_BUILD_NO_B3D_IMPORTER)
   1.253 +	out.push_back( new B3DImporter());
   1.254 +#endif
   1.255 +#if (!defined ASSIMP_BUILD_NO_COLLADA_IMPORTER)
   1.256 +	out.push_back( new ColladaLoader());
   1.257 +#endif
   1.258 +#if (!defined ASSIMP_BUILD_NO_TERRAGEN_IMPORTER)
   1.259 +	out.push_back( new TerragenImporter());
   1.260 +#endif
   1.261 +#if (!defined ASSIMP_BUILD_NO_CSM_IMPORTER)
   1.262 +	out.push_back( new CSMImporter());
   1.263 +#endif
   1.264 +#if (!defined ASSIMP_BUILD_NO_3D_IMPORTER)
   1.265 +	out.push_back( new UnrealImporter());
   1.266 +#endif
   1.267 +#if (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
   1.268 +	out.push_back( new LWSImporter());
   1.269 +#endif
   1.270 +#if (!defined ASSIMP_BUILD_NO_OGRE_IMPORTER)
   1.271 +	out.push_back( new Ogre::OgreImporter());
   1.272 +#endif
   1.273 +#if (!defined ASSIMP_BUILD_NO_MS3D_IMPORTER)
   1.274 +	out.push_back( new MS3DImporter());
   1.275 +#endif
   1.276 +#if (!defined ASSIMP_BUILD_NO_COB_IMPORTER)
   1.277 +	out.push_back( new COBImporter());
   1.278 +#endif
   1.279 +#if (!defined ASSIMP_BUILD_NO_BLEND_IMPORTER)
   1.280 +	out.push_back( new BlenderImporter());
   1.281 +#endif
   1.282 +#if (!defined ASSIMP_BUILD_NO_Q3BSP_IMPORTER)
   1.283 +	out.push_back( new Q3BSPFileImporter() );
   1.284 +#endif
   1.285 +#if (!defined ASSIMP_BUILD_NO_NDO_IMPORTER)
   1.286 +	out.push_back( new NDOImporter() );
   1.287 +#endif
   1.288 +#if (!defined ASSIMP_BUILD_NO_IFC_IMPORTER)
   1.289 +	out.push_back( new IFCImporter() );
   1.290 +#endif
   1.291 +#if ( !defined ASSIMP_BUILD_NO_XGL_IMPORTER )
   1.292 +	out.push_back( new XGLImporter() );
   1.293 +#endif
   1.294 +#if ( !defined ASSIMP_BUILD_NO_FBX_IMPORTER )
   1.295 +	out.push_back( new FBXImporter() );
   1.296 +#endif
   1.297 +}
   1.298 +
   1.299 +}