Go to the documentation of this file.
48 #ifndef AI_ASSIMP_HPP_INC
49 #define AI_ASSIMP_HPP_INC
52 #pragma GCC system_header
56 #error This header requires C++ to be used. Use assimp.h for plain C.
68 class ProgressHandler;
78 class SharedPostProcessInfo;
86 #define AI_PROPERTY_WAS_NOT_EXISTING 0xffffffff
125 static const unsigned int MaxLenHint = 200;
225 return SetPropertyInteger(szName, value);
260 int iErrorReturn = 0xffffffff)
const;
270 return GetPropertyInteger(szName, bErrorReturn) != 0;
278 ai_real fErrorReturn = 10e10)
const;
287 const std::string &sErrorReturn =
"")
const;
402 unsigned int pFlags);
445 const char *pHint =
"");
467 const aiScene *ApplyCustomizedPostProcessing(BaseProcess *rootProcess,
bool requestValidation);
476 const std::string &pFile,
477 unsigned int pFlags);
549 inline bool IsExtensionSupported(
const std::string &szExtension)
const;
569 inline void GetExtensionList(std::string &szOut)
const;
637 ImporterPimpl *
Pimpl() {
return pimpl; }
638 const ImporterPimpl *Pimpl()
const {
return pimpl; }
642 ImporterPimpl *pimpl;
653 return ReadFile(pFile.c_str(), pFlags);
668 #endif // AI_ASSIMP_HPP_INC
IOSystem * GetIOHandler() const
const aiScene * ReadFileFromMemory(const void *pBuffer, size_t pLength, unsigned int pFlags, const char *pHint="")
const std::exception_ptr & GetException() const
int GetPropertyInteger(const char *szName, int iErrorReturn=0xffffffff) const
Definition: Importer.hpp:120
Importer & operator=(const Importer &)=delete
bool SetPropertyBool(const char *szName, bool value)
Definition: Importer.hpp:224
Importer(const Importer &other)=delete
void SetProgressHandler(ProgressHandler *pHandler)
aiReturn
Definition: types.h:397
bool SetPropertyInteger(const char *szName, int iValue)
const aiScene * GetScene() const
void GetExtensionList(aiString &szOut) const
const char * GetErrorString() const
const aiScene * ApplyPostProcessing(unsigned int pFlags)
BaseImporter * GetImporter(size_t index) const
ai_real GetPropertyFloat(const char *szName, ai_real fErrorReturn=10e10) const
bool ValidateFlags(unsigned int pFlags) const
Check whether a given set of post-processing flags is supported.
const aiScene * ReadFile(const char *pFile, unsigned int pFlags)
bool SetPropertyFloat(const char *szName, ai_real fValue)
Definition: importerdesc.h:91
BaseImporter * GetImporter(const char *szExtension) const
void SetIOHandler(IOSystem *pIOHandler)
bool GetPropertyBool(const char *szName, bool bErrorReturn=false) const
Definition: Importer.hpp:269
aiReturn UnregisterPPStep(BaseProcess *pImp)
bool SetPropertyString(const char *szName, const std::string &sValue)
bool IsExtensionSupported(const char *szExtension) const
aiReturn UnregisterLoader(BaseImporter *pImp)
const aiImporterDesc * GetImporterInfo(size_t index) const
char data[MAXLEN]
Definition: types.h:390
aiReturn RegisterPPStep(BaseProcess *pImp)
aiReturn RegisterLoader(BaseImporter *pImp)
size_t GetImporterCount() const
bool IsDefaultProgressHandler() const
ProgressHandler * GetProgressHandler() const
aiScene * GetOrphanedScene()
void GetMemoryRequirements(aiMemoryInfo &in) const
aiMatrix4x4 GetPropertyMatrix(const char *szName, const aiMatrix4x4 &sErrorReturn=aiMatrix4x4()) const
size_t GetImporterIndex(const char *szExtension) const
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:93
Definition: matrix4x4.h:266
Definition: BaseImporter.h:87
std::string GetPropertyString(const char *szName, const std::string &sErrorReturn="") const
Definition: ai_assert.h:50
bool IsDefaultIOHandler() const
bool SetPropertyMatrix(const char *szName, const aiMatrix4x4 &sValue)
ImporterPimpl * Pimpl()
Definition: Importer.hpp:637
void SetExtraVerbose(bool bDo)
CPP-API: Abstract interface for custom progress report receivers.
Definition: ProgressHandler.hpp:67