47 #ifndef AI_EXPORT_HPP_INC 48 #define AI_EXPORT_HPP_INC 50 #ifndef ASSIMP_BUILD_NO_EXPORT 92 fpExportFunc mExportFunction;
95 unsigned int mEnforcePP;
98 ExportFormatEntry(
const char* pId,
const char* pDesc,
const char* pExtension, fpExportFunc pFunction,
unsigned int pEnforcePP = 0u)
100 mDescription.
id = pId;
103 mExportFunction = pFunction;
104 mEnforcePP = pEnforcePP;
111 mDescription.
id = NULL;
138 void SetIOHandler( IOSystem* pIOHandler);
147 IOSystem* GetIOHandler()
const;
154 bool IsDefaultIOHandler()
const;
175 const aiExportDataBlob* ExportToBlob(
const aiScene* pScene,
const std::string& pFormatId,
unsigned int pPreprocessing = 0u,
const ExportProperties* pProperties = NULL);
210 aiReturn Export(
const aiScene* pScene,
const char* pFormatId,
const char* pPath,
unsigned int pPreprocessing = 0u,
const ExportProperties* pProperties = NULL);
211 aiReturn Export(
const aiScene* pScene,
const std::string& pFormatId,
const std::string& pPath,
unsigned int pPreprocessing = 0u,
const ExportProperties* pProperties = NULL);
223 const char* GetErrorString()
const;
253 size_t GetExportFormatCount()
const;
293 void UnregisterExporter(
const char*
id);
297 ExporterPimpl* pimpl;
303 typedef unsigned int KeyType;
307 typedef std::map<KeyType, int> IntPropertyMap;
308 typedef std::map<KeyType, ai_real> FloatPropertyMap;
309 typedef std::map<KeyType, std::string> StringPropertyMap;
310 typedef std::map<KeyType, aiMatrix4x4> MatrixPropertyMap;
339 bool SetPropertyInteger(
const char* szName,
int iValue);
349 return SetPropertyInteger(szName,value);
356 bool SetPropertyFloat(
const char* szName, ai_real fValue);
362 bool SetPropertyString(
const char* szName,
const std::string& sValue);
368 bool SetPropertyMatrix(
const char* szName,
const aiMatrix4x4& sValue);
383 int GetPropertyInteger(
const char* szName,
384 int iErrorReturn = 0xffffffff)
const;
394 return GetPropertyInteger(szName,bErrorReturn)!=0;
401 ai_real GetPropertyFloat(
const char* szName,
402 ai_real fErrorReturn = 10e10f)
const;
410 const std::string GetPropertyString(
const char* szName,
411 const std::string& sErrorReturn =
"")
const;
419 const aiMatrix4x4 GetPropertyMatrix(
const char* szName,
426 bool HasPropertyInteger(
const char* szName)
const;
431 bool HasPropertyBool(
const char* szName)
const;
436 bool HasPropertyFloat(
const char* szName)
const;
441 bool HasPropertyString(
const char* szName)
const;
446 bool HasPropertyMatrix(
const char* szName)
const;
468 return ExportToBlob(pScene,pFormatId.c_str(),pPreprocessing, pProperties);
474 const std::string& pPath,
unsigned int pPreprocessing,
477 return Export(pScene,pFormatId.c_str(),pPath.c_str(),pPreprocessing, pProperties);
482 #endif // ASSIMP_BUILD_NO_EXPORT 483 #endif // AI_EXPORT_HPP_INC Definition: Exporter.hpp:300
Assimp's CPP-API and all internal APIs.
Definition: DefaultIOStream.h:51
Definition: matrix4x4.h:269
Defines the C-API for the Assimp export interface.
aiReturn
Standard return type for some library functions.
Definition: types.h:375
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:84
MatrixPropertyMap mMatrixProperties
List of Matrix properties.
Definition: Exporter.hpp:460
const aiExportDataBlob * ExportToBlob(const aiScene *pScene, const char *pFormatId, unsigned int pPreprocessing=0u, const ExportProperties *=NULL)
Exports the given scene to a chosen file format.
bool SetPropertyBool(const char *szName, bool value)
Set a boolean configuration property.
Definition: Exporter.hpp:348
The root structure of the imported data.
Definition: scene.h:240
Describes a blob of exported scene data.
Definition: cexport.h:200
IntPropertyMap mIntProperties
List of integer properties.
Definition: Exporter.hpp:451
class ASSIMP_API ExportProperties
CPP-API: The Exporter class forms an C++ interface to the export functionality of the Open Asset Impo...
Definition: Exporter.hpp:78
bool GetPropertyBool(const char *szName, bool bErrorReturn=false) const
Get a boolean configuration property.
Definition: Exporter.hpp:393
StringPropertyMap mStringProperties
List of string properties.
Definition: Exporter.hpp:457
Definition: Exporter.hpp:80
FloatPropertyMap mFloatProperties
List of floating-point properties.
Definition: Exporter.hpp:454
aiReturn Export(const aiScene *pScene, const char *pFormatId, const char *pPath, unsigned int pPreprocessing=0u, const ExportProperties *pProperties=NULL)
Convenience function to export directly to a file.
Internal description of an Assimp export format option.
Definition: Exporter.hpp:86
aiExportFormatDesc mDescription
Public description structure to be returned by aiGetExportFormatDescription()
Definition: Exporter.hpp:89