45 #ifndef INCLUDED_AI_ASSIMP_HPP 46 #define INCLUDED_AI_ASSIMP_HPP 49 # error This header requires C++ to be used. Use assimp.h for plain C. 63 class ProgressHandler;
73 class SharedPostProcessInfo;
82 #define AI_PROPERTY_WAS_NOT_EXISTING 0xffffffff 153 aiReturn RegisterLoader(BaseImporter* pImp);
164 aiReturn UnregisterLoader(BaseImporter* pImp);
177 aiReturn RegisterPPStep(BaseProcess* pImp);
188 aiReturn UnregisterPPStep(BaseProcess* pImp);
205 void SetPropertyInteger(
const char* szName,
int iValue,
206 bool* bWasExisting = NULL);
216 SetPropertyInteger(szName,value,bWasExisting);
223 void SetPropertyFloat(
const char* szName,
float fValue,
224 bool* bWasExisting = NULL);
230 void SetPropertyString(
const char* szName,
const std::string& sValue,
231 bool* bWasExisting = NULL);
237 void SetPropertyMatrix(
const char* szName,
const aiMatrix4x4& sValue,
238 bool* bWasExisting = NULL);
253 int GetPropertyInteger(
const char* szName,
254 int iErrorReturn = 0xffffffff)
const;
264 return GetPropertyInteger(szName,bErrorReturn)!=0;
271 float GetPropertyFloat(
const char* szName,
272 float fErrorReturn = 10e10f)
const;
280 const std::string GetPropertyString(
const char* szName,
281 const std::string& sErrorReturn =
"")
const;
289 const aiMatrix4x4 GetPropertyMatrix(
const char* szName,
307 void SetIOHandler(
IOSystem* pIOHandler);
325 bool IsDefaultIOHandler()
const;
356 bool IsDefaultProgressHandler()
const;
370 bool ValidateFlags(
unsigned int pFlags)
const;
394 const aiScene* ReadFile(
396 unsigned int pFlags);
435 const aiScene* ReadFileFromMemory(
439 const char* pHint =
"");
459 const aiScene* ApplyPostProcessing(
unsigned int pFlags);
467 const aiScene* ReadFile(
468 const std::string& pFile,
469 unsigned int pFlags);
488 const char* GetErrorString()
const;
494 const aiScene* GetScene()
const;
515 aiScene* GetOrphanedScene();
527 bool IsExtensionSupported(
const char* szExtension)
const;
535 inline bool IsExtensionSupported(
const std::string& szExtension)
const;
547 void GetExtensionList(
aiString& szOut)
const;
555 inline void GetExtensionList(std::string& szOut)
const;
559 size_t GetImporterCount()
const;
577 BaseImporter* GetImporter(
size_t index)
const;
589 BaseImporter* GetImporter (
const char* szExtension)
const;
599 size_t GetImporterIndex (
const char* szExtension)
const;
613 void GetMemoryRequirements(aiMemoryInfo& in)
const;
622 void SetExtraVerbose(
bool bDo);
627 ImporterPimpl*
Pimpl() {
return pimpl; };
628 const ImporterPimpl* Pimpl()
const {
return pimpl; };
633 ImporterPimpl* pimpl;
645 return ReadFile(pFile.c_str(),pFlags);
655 return IsExtensionSupported(szExtension.c_str());
659 #endif // INCLUDED_AI_ASSIMP_HPP 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:263
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: DefaultLogger.hpp:51
Definition: matrix4x4.h:236
CPP-API: The Importer class forms an C++ interface to the functionality of the Open Asset Import Libr...
Definition: Importer.hpp:116
Defines constants for configurable properties for the library.
CPP-API: Abstract interface for custom progress report receivers.
Definition: ProgressHandler.hpp:54
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:67
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:251
Meta information about a particular importer.
Definition: importerdesc.h:87
char data[MAXLEN]
String buffer.
Definition: types.h:366
ImporterPimpl * Pimpl()
Private, do not use.
Definition: Importer.hpp:627
const aiScene * ReadFile(const char *pFile, unsigned int pFlags)
Reads the given file and returns its contents if successful.
void SetPropertyBool(const char *szName, bool value, bool *bWasExisting=NULL)
Set a boolean configuration property.
Definition: Importer.hpp:215