2016-09-26 09:57:44 +00:00
|
|
|
|
/*
|
2015-05-19 03:48:29 +00:00
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
Open Asset Import Library (assimp)
|
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
|
2019-01-30 08:41:39 +00:00
|
|
|
|
Copyright (c) 2006-2019, assimp team
|
2018-01-28 18:42:05 +00:00
|
|
|
|
|
2017-05-09 17:57:36 +00:00
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
|
|
All rights reserved.
|
|
|
|
|
|
2015-05-19 03:52:10 +00:00
|
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
|
with or without modification, are permitted provided that the following
|
2015-05-19 03:48:29 +00:00
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
* Neither the name of the assimp team, nor the names of its
|
|
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
|
derived from this software without specific prior
|
|
|
|
|
written permission of the assimp team.
|
|
|
|
|
|
2015-05-19 03:52:10 +00:00
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
2015-05-19 03:48:29 +00:00
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
2015-05-19 03:52:10 +00:00
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
2015-05-19 03:48:29 +00:00
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
2015-05-19 03:52:10 +00:00
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
2015-05-19 03:48:29 +00:00
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
2015-05-19 03:52:10 +00:00
|
|
|
|
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
|
2015-05-19 03:48:29 +00:00
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-02-28 02:32:44 +00:00
|
|
|
|
#include <vector>
|
2018-01-06 00:18:33 +00:00
|
|
|
|
#include <assimp/BaseImporter.h>
|
2017-02-28 02:32:44 +00:00
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
// Importers
|
|
|
|
|
// (include_new_importers_here)
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "X/XFileImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AMF_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "AMF/AMFImporter.hpp"
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "3DS/3DSLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD3_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MD3/MD3Loader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MDL_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MDL/MDLLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD2_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MD2/MD2Loader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Ply/PlyLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_ASE_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "ASE/ASELoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OBJ_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Obj/ObjFileImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "HMP/HMPLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_SMD_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "SMD/SMDLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MDC_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MDC/MDCLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD5_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MD5/MD5Loader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_STL_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "STL/STLLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_LWO_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "LWO/LWOLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_DXF_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "DXF/DXFLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_NFF_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "NFF/NFFLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_RAW_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Raw/RawLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_SIB_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "SIB/SIBImporter.h"
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OFF_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "OFF/OFFLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AC_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "AC/ACLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "BVH/BVHLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IRRMESH_IMPORTER
|
2019-06-11 19:55:21 +00:00
|
|
|
|
# include "Irr/IRRMeshLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IRR_IMPORTER
|
2019-06-11 19:55:21 +00:00
|
|
|
|
# include "Irr/IRRLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_Q3D_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Q3D/Q3DLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_B3D_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "B3D/B3DImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Collada/ColladaLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_TERRAGEN_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Terragen/TerragenLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_CSM_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "CSM/CSMLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3D_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Unreal/UnrealLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_LWS_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "LWS/LWSLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OGRE_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Ogre/OgreImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OPENGEX_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "OpenGEX/OpenGEXImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MS3D_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MS3D/MS3DLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_COB_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "COB/COBLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_BLEND_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Blender/BlenderLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_Q3BSP_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Q3BSP/Q3BSPFileImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_NDO_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "NDO/NDOLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IFC_IMPORTER
|
2018-01-13 09:27:45 +00:00
|
|
|
|
# include "Importer/IFC/IFCLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_XGL_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "XGL/XGLLoader.h"
|
2015-05-19 03:52:10 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "FBX/FBXImporter.h"
|
2015-05-19 03:52:10 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_ASSBIN_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "Assbin/AssbinLoader.h"
|
2015-05-19 03:52:10 +00:00
|
|
|
|
#endif
|
2015-11-26 19:49:00 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_GLTF_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "glTF/glTFImporter.h"
|
|
|
|
|
# include "glTF2/glTF2Importer.h"
|
2015-11-26 19:49:00 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_C4D_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "C4D/C4DImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3MF_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "3MF/D3MFImporter.h"
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#endif
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X3D_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "X3D/X3DImporter.hpp"
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#endif
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MMD_IMPORTER
|
2019-06-10 21:26:00 +00:00
|
|
|
|
# include "MMD/MMDImporter.h"
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#endif
|
2018-12-04 20:28:50 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_STEP_IMPORTER
|
2018-09-02 11:04:52 +00:00
|
|
|
|
# include "Importer/StepFile/StepFileImporter.h"
|
|
|
|
|
#endif
|
2019-05-24 15:22:54 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_JT_IMPORTER
|
|
|
|
|
# include "JTImporter.h"
|
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
|
|
namespace Assimp {
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
void GetImporterInstanceList(std::vector< BaseImporter* >& out)
|
|
|
|
|
{
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
// Add an instance of each worker class here
|
|
|
|
|
// (register_new_importers_here)
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
out.reserve(64);
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_X_IMPORTER)
|
|
|
|
|
out.push_back( new XFileImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OBJ_IMPORTER)
|
|
|
|
|
out.push_back( new ObjFileImporter());
|
|
|
|
|
#endif
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AMF_IMPORTER
|
|
|
|
|
out.push_back( new AMFImporter() );
|
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
|
|
|
|
|
out.push_back( new Discreet3DSImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD3_IMPORTER)
|
|
|
|
|
out.push_back( new MD3Importer());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD2_IMPORTER)
|
|
|
|
|
out.push_back( new MD2Importer());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_PLY_IMPORTER)
|
|
|
|
|
out.push_back( new PLYImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MDL_IMPORTER)
|
|
|
|
|
out.push_back( new MDLImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_ASE_IMPORTER)
|
2017-06-26 20:01:15 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
|
2015-05-19 03:48:29 +00:00
|
|
|
|
out.push_back( new ASEImporter());
|
2017-06-26 20:01:15 +00:00
|
|
|
|
# endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_HMP_IMPORTER)
|
|
|
|
|
out.push_back( new HMPImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_SMD_IMPORTER)
|
|
|
|
|
out.push_back( new SMDImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MDC_IMPORTER)
|
|
|
|
|
out.push_back( new MDCImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD5_IMPORTER)
|
|
|
|
|
out.push_back( new MD5Importer());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_STL_IMPORTER)
|
|
|
|
|
out.push_back( new STLImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER)
|
|
|
|
|
out.push_back( new LWOImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_DXF_IMPORTER)
|
|
|
|
|
out.push_back( new DXFImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_NFF_IMPORTER)
|
|
|
|
|
out.push_back( new NFFImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_RAW_IMPORTER)
|
|
|
|
|
out.push_back( new RAWImporter());
|
|
|
|
|
#endif
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_SIB_IMPORTER)
|
|
|
|
|
out.push_back( new SIBImporter());
|
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OFF_IMPORTER)
|
|
|
|
|
out.push_back( new OFFImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_AC_IMPORTER)
|
|
|
|
|
out.push_back( new AC3DImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_BVH_IMPORTER)
|
|
|
|
|
out.push_back( new BVHLoader());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IRRMESH_IMPORTER)
|
|
|
|
|
out.push_back( new IRRMeshImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IRR_IMPORTER)
|
|
|
|
|
out.push_back( new IRRImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_Q3D_IMPORTER)
|
|
|
|
|
out.push_back( new Q3DImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_B3D_IMPORTER)
|
|
|
|
|
out.push_back( new B3DImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_COLLADA_IMPORTER)
|
|
|
|
|
out.push_back( new ColladaLoader());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_TERRAGEN_IMPORTER)
|
|
|
|
|
out.push_back( new TerragenImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_CSM_IMPORTER)
|
|
|
|
|
out.push_back( new CSMImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3D_IMPORTER)
|
|
|
|
|
out.push_back( new UnrealImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
|
|
|
|
|
out.push_back( new LWSImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OGRE_IMPORTER)
|
|
|
|
|
out.push_back( new Ogre::OgreImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OPENGEX_IMPORTER )
|
|
|
|
|
out.push_back( new OpenGEX::OpenGEXImporter() );
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MS3D_IMPORTER)
|
|
|
|
|
out.push_back( new MS3DImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_COB_IMPORTER)
|
|
|
|
|
out.push_back( new COBImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_BLEND_IMPORTER)
|
|
|
|
|
out.push_back( new BlenderImporter());
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_Q3BSP_IMPORTER)
|
|
|
|
|
out.push_back( new Q3BSPFileImporter() );
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_NDO_IMPORTER)
|
|
|
|
|
out.push_back( new NDOImporter() );
|
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IFC_IMPORTER)
|
|
|
|
|
out.push_back( new IFCImporter() );
|
|
|
|
|
#endif
|
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_XGL_IMPORTER )
|
|
|
|
|
out.push_back( new XGLImporter() );
|
|
|
|
|
#endif
|
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_FBX_IMPORTER )
|
|
|
|
|
out.push_back( new FBXImporter() );
|
|
|
|
|
#endif
|
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_ASSBIN_IMPORTER )
|
|
|
|
|
out.push_back( new AssbinImporter() );
|
|
|
|
|
#endif
|
2015-11-26 19:49:00 +00:00
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_GLTF_IMPORTER )
|
2017-09-06 18:50:02 +00:00
|
|
|
|
out.push_back( new glTFImporter() );
|
2017-08-24 21:15:48 +00:00
|
|
|
|
out.push_back( new glTF2Importer() );
|
2015-11-26 19:49:00 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_C4D_IMPORTER )
|
2015-05-19 03:48:29 +00:00
|
|
|
|
out.push_back( new C4DImporter() );
|
|
|
|
|
#endif
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#if ( !defined ASSIMP_BUILD_NO_3MF_IMPORTER )
|
2017-02-24 00:35:15 +00:00
|
|
|
|
out.push_back( new D3MFImporter() );
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#endif
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X3D_IMPORTER
|
|
|
|
|
out.push_back( new X3DImporter() );
|
|
|
|
|
#endif
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MMD_IMPORTER
|
|
|
|
|
out.push_back( new MMDImporter() );
|
|
|
|
|
#endif
|
2018-12-04 20:28:50 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_STEP_IMPORTER
|
2018-10-05 17:41:52 +00:00
|
|
|
|
out.push_back(new StepFile::StepFileImporter());
|
2018-09-02 11:04:52 +00:00
|
|
|
|
#endif
|
2019-05-24 15:22:54 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_JT_IMPORTER
|
|
|
|
|
out.push_back(new JTImporter());
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-01-16 14:02:45 +00:00
|
|
|
|
/** will delete all registered importers. */
|
|
|
|
|
void DeleteImporterInstanceList(std::vector< BaseImporter* >& deleteList){
|
|
|
|
|
for(size_t i= 0; i<deleteList.size();++i){
|
|
|
|
|
delete deleteList[i];
|
2019-05-24 15:22:54 +00:00
|
|
|
|
deleteList[i]=nullptr;
|
2016-01-16 14:02:45 +00:00
|
|
|
|
}//for
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
} // namespace Assimp
|