47 #ifndef AI_ASSIMP_HPP_INC 48 #define AI_ASSIMP_HPP_INC 51 # error This header requires C++ to be used. Use assimp.h for plain C. 63 class ProgressHandler;
73 class SharedPostProcessInfo;
81 #define AI_PROPERTY_WAS_NOT_EXISTING 0xffffffff 120 static const unsigned int MaxLenHint = 200;
157 aiReturn RegisterLoader(BaseImporter* pImp);
168 aiReturn UnregisterLoader(BaseImporter* pImp);
181 aiReturn RegisterPPStep(BaseProcess* pImp);
192 aiReturn UnregisterPPStep(BaseProcess* pImp);
207 bool SetPropertyInteger(
const char* szName,
int iValue);
217 return SetPropertyInteger(szName,value);
224 bool SetPropertyFloat(
const char* szName, ai_real fValue);
230 bool SetPropertyString(
const char* szName,
const std::string& sValue);
236 bool SetPropertyMatrix(
const char* szName,
const aiMatrix4x4& sValue);
251 int GetPropertyInteger(
const char* szName,
252 int iErrorReturn = 0xffffffff)
const;
262 return GetPropertyInteger(szName,bErrorReturn)!=0;
269 ai_real GetPropertyFloat(
const char* szName,
270 ai_real fErrorReturn = 10e10)
const;
278 const std::string GetPropertyString(
const char* szName,
279 const std::string& sErrorReturn =
"")
const;
287 const aiMatrix4x4 GetPropertyMatrix(
const char* szName,
305 void SetIOHandler(
IOSystem* pIOHandler);
323 bool IsDefaultIOHandler()
const;
354 bool IsDefaultProgressHandler()
const;
368 bool ValidateFlags(
unsigned int pFlags)
const;
394 unsigned int pFlags);
433 const aiScene* ReadFileFromMemory(
437 const char* pHint =
"");
457 const aiScene* ApplyPostProcessing(
unsigned int pFlags);
459 const aiScene* ApplyCustomizedPostProcessing( BaseProcess *rootProcess,
bool requestValidation );
468 const std::string& pFile,
469 unsigned int pFlags);
488 const char* GetErrorString()
const;
494 const aiScene* GetScene()
const;
524 bool IsExtensionSupported(
const char* szExtension)
const;
532 inline bool IsExtensionSupported(
const std::string& szExtension)
const;
544 void GetExtensionList(
aiString& szOut)
const;
552 inline void GetExtensionList(std::string& szOut)
const;
556 size_t GetImporterCount()
const;
574 BaseImporter* GetImporter(
size_t index)
const;
586 BaseImporter* GetImporter (
const char* szExtension)
const;
596 size_t GetImporterIndex (
const char* szExtension)
const;
616 void SetExtraVerbose(
bool bDo);
620 ImporterPimpl*
Pimpl() {
return pimpl; }
621 const ImporterPimpl* Pimpl()
const {
return pimpl; }
626 ImporterPimpl* pimpl;
638 return ReadFile(pFile.c_str(),pFlags);
648 return IsExtensionSupported(szExtension.c_str());
653 #endif // AI_ASSIMP_HPP_INC void GetExtensionList(aiString &szOut) const
Get a full list of all file extensions supported by ASSIMP.
bool GetPropertyBool(const char *szName, bool bErrorReturn=false) const
Get a boolean configuration property.
Definition: Importer.hpp:261
bool IsExtensionSupported(const char *szExtension) const
Returns whether a given file extension is supported by ASSIMP.
Basic data types and primitives, such as vectors or colors.
Assimp's CPP-API and all internal APIs.
Definition: DefaultIOStream.h:51
Definition: matrix4x4.h:269
CPP-API: The Importer class forms an C++ interface to the functionality of the Open Asset Import Libr...
Definition: Importer.hpp:115
CPP-API: Abstract interface for custom progress report receivers.
Definition: ProgressHandler.hpp:58
Stores the memory requirements for different components (e.g.
Definition: types.h:463
aiReturn
Standard return type for some library functions.
Definition: types.h:375
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:84
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:252
bool SetPropertyBool(const char *szName, bool value)
Set a boolean configuration property.
Definition: Importer.hpp:216
Meta information about a particular importer.
Definition: importerdesc.h:89
The root structure of the imported data.
Definition: scene.h:240
char data[MAXLEN]
String buffer.
Definition: types.h:367
ImporterPimpl * Pimpl()
Private, do not use.
Definition: Importer.hpp:620
const aiScene * ReadFile(const char *pFile, unsigned int pFlags)
Reads the given file and returns its contents if successful.