Importer class for the MD5 file format.
More...
Inherits Assimp::BaseImporter.
|
enum | TextFileMode { ALLOW_EMPTY,
FORBID_EMPTY
} |
|
static bool | CheckMagicToken (IOSystem *pIOHandler, const std::string &pFile, const void *magic, unsigned int num, unsigned int offset=0, unsigned int size=4) |
| Check whether a file starts with one or more magic tokens. More...
|
|
static void | ConvertToUTF8 (std::vector< char > &data) |
| An utility for all text file loaders. More...
|
|
static void | ConvertUTF8toISO8859_1 (std::string &data) |
| An utility for all text file loaders. More...
|
|
template<typename T > |
static AI_FORCE_INLINE void | CopyVector (std::vector< T > &vec, T *&out, unsigned int &outLength) |
| Utility function to move a std::vector into a aiScene array. More...
|
|
static std::string | GetExtension (const std::string &pFile) |
| Extract file extension from a string. More...
|
|
static bool | SearchFileHeaderForToken (IOSystem *pIOSystem, const std::string &file, const char **tokens, unsigned int numTokens, unsigned int searchBytes=200, bool tokensSol=false) |
| A utility for CanRead(). More...
|
|
static bool | SimpleExtensionCheck (const std::string &pFile, const char *ext0, const char *ext1=NULL, const char *ext2=NULL) |
| Check whether a file has a specific file extension. More...
|
|
static void | TextFileToBuffer (IOStream *stream, std::vector< char > &data, TextFileMode mode=FORBID_EMPTY) |
| Utility for text file loaders which copies the contents of the file into a memory buffer and converts it to our UTF8 representation. More...
|
|
Importer class for the MD5 file format.
§ MD5Importer()
MD5Importer::MD5Importer |
( |
| ) |
|
§ ~MD5Importer()
MD5Importer::~MD5Importer |
( |
| ) |
|
§ AttachChilds_Anim()
Construct node hierarchy from a given MD5ANIM.
- Parameters
-
iParentID | Current parent ID |
piParent | Parent node to attach to |
bones | Input bones |
node_anims | Generated node animations |
§ AttachChilds_Mesh()
void MD5Importer::AttachChilds_Mesh |
( |
int |
iParentID, |
|
|
aiNode * |
piParent, |
|
|
BoneList & |
bones |
|
) |
| |
|
protected |
Construct node hierarchy from a given MD5MESH.
- Parameters
-
iParentID | Current parent ID |
piParent | Parent node to attach to |
bones | Input bones |
§ CanRead()
bool MD5Importer::CanRead |
( |
const std::string & |
pFile, |
|
|
IOSystem * |
pIOHandler, |
|
|
bool |
checkSig |
|
) |
| const |
|
virtual |
§ GetInfo()
Return importer meta information.
See #BaseImporter::GetInfo for the details
Implements Assimp::BaseImporter.
§ InternReadFile()
void MD5Importer::InternReadFile |
( |
const std::string & |
pFile, |
|
|
aiScene * |
pScene, |
|
|
IOSystem * |
pIOHandler |
|
) |
| |
|
protectedvirtual |
§ LoadFileIntoMemory()
void MD5Importer::LoadFileIntoMemory |
( |
IOStream * |
pFile | ) |
|
|
protected |
Load the contents of a specific file into memory and alocates a buffer to keep it.
mBuffer is modified to point to this buffer.
- Parameters
-
pFile | File stream to be read |
§ LoadMD5AnimFile()
void MD5Importer::LoadMD5AnimFile |
( |
| ) |
|
|
protected |
§ LoadMD5CameraFile()
void MD5Importer::LoadMD5CameraFile |
( |
| ) |
|
|
protected |
§ LoadMD5MeshFile()
void MD5Importer::LoadMD5MeshFile |
( |
| ) |
|
|
protected |
§ MakeDataUnique()
Build unique vertex buffers from a given MD5ANIM.
- Parameters
-
§ SetupProperties()
void MD5Importer::SetupProperties |
( |
const Importer * |
pImp | ) |
|
|
protectedvirtual |
Called prior to ReadFile().
The function is a request to the importer to update its configuration basing on the Importer's configuration property list.
Reimplemented from Assimp::BaseImporter.
§ UnloadFileFromMemory()
void MD5Importer::UnloadFileFromMemory |
( |
| ) |
|
|
protected |
§ bHadMD5Anim
bool Assimp::MD5Importer::bHadMD5Anim |
|
protected |
true if a MD5ANIM file has already been parsed
§ bHadMD5Camera
bool Assimp::MD5Importer::bHadMD5Camera |
|
protected |
true if a MD5CAMERA file has already been parsed
§ bHadMD5Mesh
bool Assimp::MD5Importer::bHadMD5Mesh |
|
protected |
true if a MD5MESH file has already been parsed
§ configNoAutoLoad
bool Assimp::MD5Importer::configNoAutoLoad |
|
protected |
configuration option: prevent anim autoload
§ fileSize
unsigned int Assimp::MD5Importer::fileSize |
|
protected |
§ iLineNumber
unsigned int Assimp::MD5Importer::iLineNumber |
|
protected |
Current line number.
For debugging purposes
§ mBuffer
char* Assimp::MD5Importer::mBuffer |
|
protected |
Buffer to hold the loaded file.
§ mFile
std::string Assimp::MD5Importer::mFile |
|
protected |
Path to the file, excluding the file extension but with the dot.
§ mIOHandler
IOSystem* Assimp::MD5Importer::mIOHandler |
|
protected |
§ pIOHandler
IOSystem* Assimp::MD5Importer::pIOHandler |
|
protected |
(Custom) I/O handler implementation
§ pScene
aiScene* Assimp::MD5Importer::pScene |
|
protected |
The documentation for this class was generated from the following files: