2011-08-01 20:58:31 +00:00
|
|
|
/*
|
|
|
|
---------------------------------------------------------------------------
|
2012-02-03 03:38:30 +00:00
|
|
|
Open Asset Import Library (assimp)
|
2011-08-01 20:58:31 +00:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2012-02-03 03:38:30 +00:00
|
|
|
Copyright (c) 2006-2012, assimp team
|
2011-08-01 20:58:31 +00:00
|
|
|
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
with or without modification, are permitted provided that the following
|
|
|
|
conditions are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer.
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer in the documentation and/or other
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
2012-02-03 03:38:30 +00:00
|
|
|
* Neither the name of the assimp team, nor the names of its
|
2011-08-01 20:58:31 +00:00
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
derived from this software without specific prior
|
2012-02-03 03:38:30 +00:00
|
|
|
written permission of the assimp team.
|
2011-08-01 20:58:31 +00:00
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file ImporterRegistry.cpp
|
|
|
|
|
|
|
|
Central registry for all importers available. Do not edit this file
|
|
|
|
directly (unless you are adding new loaders), instead use the
|
|
|
|
corresponding preprocessor flag to selectively disable formats.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "AssimpPCH.h"
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Importers
|
|
|
|
// (include_new_importers_here)
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X_IMPORTER
|
|
|
|
# include "XFileImporter.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
|
|
|
|
# include "3DSLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD3_IMPORTER
|
|
|
|
# include "MD3Loader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MDL_IMPORTER
|
|
|
|
# include "MDLLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD2_IMPORTER
|
|
|
|
# include "MD2Loader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
|
|
|
|
# include "PlyLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_ASE_IMPORTER
|
|
|
|
# include "ASELoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OBJ_IMPORTER
|
|
|
|
# include "ObjFileImporter.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
|
|
|
|
# include "HMPLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_SMD_IMPORTER
|
|
|
|
# include "SMDLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MDC_IMPORTER
|
|
|
|
# include "MDCLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD5_IMPORTER
|
|
|
|
# include "MD5Loader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_STL_IMPORTER
|
|
|
|
# include "STLLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_LWO_IMPORTER
|
|
|
|
# include "LWOLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_DXF_IMPORTER
|
|
|
|
# include "DXFLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_NFF_IMPORTER
|
|
|
|
# include "NFFLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_RAW_IMPORTER
|
|
|
|
# include "RawLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OFF_IMPORTER
|
|
|
|
# include "OFFLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AC_IMPORTER
|
|
|
|
# include "ACLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
|
|
|
|
# include "BVHLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IRRMESH_IMPORTER
|
|
|
|
# include "IRRMeshLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IRR_IMPORTER
|
|
|
|
# include "IRRLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_Q3D_IMPORTER
|
|
|
|
# include "Q3DLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_B3D_IMPORTER
|
|
|
|
# include "B3DImporter.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
|
|
|
|
# include "ColladaLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_TERRAGEN_IMPORTER
|
|
|
|
# include "TerragenLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_CSM_IMPORTER
|
|
|
|
# include "CSMLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3D_IMPORTER
|
|
|
|
# include "UnrealLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_LWS_IMPORTER
|
|
|
|
# include "LWSLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OGRE_IMPORTER
|
2014-05-01 14:19:03 +00:00
|
|
|
# include "OgreImporter.h"
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
2014-08-27 21:00:19 +00:00
|
|
|
#ifndef ASSIMP_BUILD_NO_OPEMGEX_IMPORTER
|
|
|
|
# include "OpenGEXImporter.h"
|
|
|
|
#endif
|
2011-08-01 20:58:31 +00:00
|
|
|
#ifndef ASSIMP_BUILD_NO_MS3D_IMPORTER
|
|
|
|
# include "MS3DLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_COB_IMPORTER
|
|
|
|
# include "COBLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_BLEND_IMPORTER
|
|
|
|
# include "BlenderLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_Q3BSP_IMPORTER
|
|
|
|
# include "Q3BSPFileImporter.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_NDO_IMPORTER
|
|
|
|
# include "NDOLoader.h"
|
|
|
|
#endif
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IFC_IMPORTER
|
|
|
|
# include "IFCLoader.h"
|
|
|
|
#endif
|
2012-03-20 16:52:33 +00:00
|
|
|
#ifndef ASSIMP_BUILD_NO_XGL_IMPORTER
|
|
|
|
# include "XGLLoader.h"
|
|
|
|
#endif
|
2012-06-23 01:36:55 +00:00
|
|
|
#ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
|
|
|
|
# include "FBXImporter.h"
|
|
|
|
#endif
|
2014-08-05 22:39:54 +00:00
|
|
|
#ifndef ASSIMP_BUILD_NO_ASSBIN_IMPORTER
|
|
|
|
# include "AssbinLoader.h"
|
|
|
|
#endif
|
2011-08-01 20:58:31 +00:00
|
|
|
|
|
|
|
namespace Assimp {
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void GetImporterInstanceList(std::vector< BaseImporter* >& out)
|
|
|
|
{
|
2015-02-07 11:47:53 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Add an instance of each worker class here
|
|
|
|
// (register_new_importers_here)
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
out.reserve(64);
|
2011-08-01 20:58:31 +00:00
|
|
|
#if (!defined ASSIMP_BUILD_NO_X_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new XFileImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OBJ_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new ObjFileImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new Discreet3DSImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD3_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new MD3Importer());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD2_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new MD2Importer());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_PLY_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new PLYImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MDL_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new MDLImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_ASE_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new ASEImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_HMP_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new HMPImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_SMD_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new SMDImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MDC_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new MDCImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD5_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new MD5Importer());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_STL_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new STLImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new LWOImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_DXF_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new DXFImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_NFF_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new NFFImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_RAW_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new RAWImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OFF_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new OFFImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_AC_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new AC3DImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_BVH_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new BVHLoader());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IRRMESH_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new IRRMeshImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IRR_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new IRRImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_Q3D_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new Q3DImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_B3D_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new B3DImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_COLLADA_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new ColladaLoader());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_TERRAGEN_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new TerragenImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_CSM_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new CSMImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3D_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new UnrealImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new LWSImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OGRE_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new Ogre::OgreImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
2014-08-27 21:00:19 +00:00
|
|
|
#if (!defined ASSIMP_BUILD_NO_OPEMGEX_IMPORTER )
|
|
|
|
out.push_back( new OpenGEX::OpenGEXImporter() );
|
|
|
|
#endif
|
2011-08-01 20:58:31 +00:00
|
|
|
#if (!defined ASSIMP_BUILD_NO_MS3D_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new MS3DImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_COB_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new COBImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_BLEND_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new BlenderImporter());
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_Q3BSP_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new Q3BSPFileImporter() );
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_NDO_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new NDOImporter() );
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IFC_IMPORTER)
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new IFCImporter() );
|
2011-08-01 20:58:31 +00:00
|
|
|
#endif
|
2012-03-20 16:52:33 +00:00
|
|
|
#if ( !defined ASSIMP_BUILD_NO_XGL_IMPORTER )
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new XGLImporter() );
|
2012-03-20 16:52:33 +00:00
|
|
|
#endif
|
2012-06-23 01:36:55 +00:00
|
|
|
#if ( !defined ASSIMP_BUILD_NO_FBX_IMPORTER )
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new FBXImporter() );
|
2014-08-05 22:39:54 +00:00
|
|
|
#endif
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_ASSBIN_IMPORTER )
|
2015-02-07 11:47:53 +00:00
|
|
|
out.push_back( new AssbinImporter() );
|
2012-06-23 01:36:55 +00:00
|
|
|
#endif
|
2011-08-01 20:58:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|