Assimp
v3.1.1 (June 2014)
|
Represents a data structure in a BLEND file. More...
Public Member Functions | |
template<typename T > | |
std::shared_ptr< ElemBase > | Allocate () const |
template<> | |
void | Convert (Object &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Object &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Group &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MTex &dest, const FileDatabase &db) const |
template<> | |
void | Convert (TFace &dest, const FileDatabase &db) const |
template<> | |
void | Convert (SubsurfModifierData &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MFace &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Group &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Lamp &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MDeformWeight &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MTex &dest, const FileDatabase &db) const |
template<> | |
void | Convert (PackedFile &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Base &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MTFace &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Material &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MTexPoly &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Mesh &dest, const FileDatabase &db) const |
template<> | |
void | Convert (TFace &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MDeformVert &dest, const FileDatabase &db) const |
template<> | |
void | Convert (World &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MLoopCol &dest, const FileDatabase &db) const |
template<> | |
void | Convert (SubsurfModifierData &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MVert &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MEdge &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MLoopUV &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MFace &dest, const FileDatabase &db) const |
template<> | |
void | Convert (GroupObject &dest, const FileDatabase &db) const |
template<> | |
void | Convert (ListBase &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MLoop &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Lamp &dest, const FileDatabase &db) const |
template<> | |
void | Convert (ModifierData &dest, const FileDatabase &db) const |
template<> | |
void | Convert (ID &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MCol &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MPoly &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Scene &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MDeformWeight &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Library &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Tex &dest, const FileDatabase &db) const |
template<> | |
void | Convert (PackedFile &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Camera &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MirrorModifierData &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Base &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Image &dest, const FileDatabase &db) const |
template<typename T > | |
void | Convert (T &dest, const FileDatabase &db) const |
Try to read an instance of the structure from the stream and attempt to convert to T . More... | |
template<typename T > | |
void | Convert (std::shared_ptr< ElemBase > in, const FileDatabase &db) const |
template<> | |
void | Convert (MTFace &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Material &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MTexPoly &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Mesh &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MDeformVert &dest, const FileDatabase &db) const |
template<> | |
void | Convert (World &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MLoopCol &dest, const FileDatabase &db) const |
template<> | |
void | Convert (int &dest, const FileDatabase &db) const |
template<> | |
void | Convert (short &dest, const FileDatabase &db) const |
template<> | |
void | Convert (char &dest, const FileDatabase &db) const |
template<> | |
void | Convert (float &dest, const FileDatabase &db) const |
template<> | |
void | Convert (double &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Pointer &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MVert &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MEdge &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MLoopUV &dest, const FileDatabase &db) const |
template<> | |
void | Convert (GroupObject &dest, const FileDatabase &db) const |
template<> | |
void | Convert (ListBase &dest, const FileDatabase &db) const |
template<> | |
void | Convert (int &dest, const FileDatabase &db) const |
template<> | |
void | Convert (short &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MLoop &dest, const FileDatabase &db) const |
template<> | |
void | Convert (ModifierData &dest, const FileDatabase &db) const |
template<> | |
void | Convert (char &dest, const FileDatabase &db) const |
template<> | |
void | Convert (ID &dest, const FileDatabase &db) const |
template<> | |
void | Convert (unsigned char &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MCol &dest, const FileDatabase &db) const |
template<> | |
void | Convert (float &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MPoly &dest, const FileDatabase &db) const |
template<> | |
void | Convert (double &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Scene &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Pointer &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Library &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Tex &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Camera &dest, const FileDatabase &db) const |
template<> | |
void | Convert (MirrorModifierData &dest, const FileDatabase &db) const |
template<> | |
void | Convert (Image &dest, const FileDatabase &db) const |
const Field * | Get (const std::string &ss) const |
bool | operator!= (const Structure &other) const |
bool | operator== (const Structure &other) const |
const Field & | operator[] (const std::string &ss) const |
Access a field of the structure by its canonical name. More... | |
const Field & | operator[] (const size_t i) const |
Access a field of the structure by its index. More... | |
template<int error_policy, typename T > | |
void | ReadField (T &out, const char *name, const FileDatabase &db) const |
template<int error_policy, typename T , size_t M> | |
void | ReadFieldArray (T(&out)[M], const char *name, const FileDatabase &db) const |
template<int error_policy, typename T , size_t M, size_t N> | |
void | ReadFieldArray2 (T(&out)[M][N], const char *name, const FileDatabase &db) const |
template<int error_policy, template< typename > class TOUT, typename T > | |
bool | ReadFieldPtr (TOUT< T > &out, const char *name, const FileDatabase &db, bool non_recursive=false) const |
template<int error_policy, template< typename > class TOUT, typename T , size_t N> | |
bool | ReadFieldPtr (TOUT< T >(&out)[N], const char *name, const FileDatabase &db) const |
Structure () | |
Public Attributes | |
vector< Field > | fields |
std::map< std::string, size_t > | indices |
std::string | name |
size_t | size |
Friends | |
template<template< typename > class> | |
class | ObjectCache |
Represents a data structure in a BLEND file.
A Structure defines n fields and their locatios and encodings the input stream. Usually, every Structure instance pertains to one equally-named data structure in the BlenderScene.h header. This class defines various utilities to map a binary blob
read from the file to such a structure instance with meaningful contents.
|
inline |
std::shared_ptr< ElemBase > Assimp::Blender::Structure::Allocate | ( | ) | const |
void Assimp::Blender::Structure::Convert | ( | Object & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Object & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Group & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MTex & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | TFace & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | SubsurfModifierData & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MFace & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Group & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Lamp & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MDeformWeight & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MTex & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | PackedFile & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Base & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MTFace & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Material & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MTexPoly & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Mesh & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | TFace & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MDeformVert & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | World & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MLoopCol & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | SubsurfModifierData & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MVert & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MEdge & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MLoopUV & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MFace & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | GroupObject & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | ListBase & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MLoop & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Lamp & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | ModifierData & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | ID & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MCol & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MPoly & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Scene & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MDeformWeight & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Library & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Tex & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | PackedFile & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Camera & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MirrorModifierData & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Base & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Image & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
Try to read an instance of the structure from the stream and attempt to convert to T
.
This is done by an appropriate specialization. If none is available, a compiler complain is the result.
dest | Destination value to be written |
db | File database, including input stream. |
void Assimp::Blender::Structure::Convert | ( | std::shared_ptr< ElemBase > | in, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MTFace & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Material & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MTexPoly & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Mesh & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MDeformVert & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | World & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MLoopCol & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Assimp::Blender::Structure::Convert | ( | MVert & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MEdge & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MLoopUV & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | GroupObject & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | ListBase & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | MLoop & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | ModifierData & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | ID & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | MCol & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | MPoly & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | Scene & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
void Assimp::Blender::Structure::Convert | ( | Library & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Tex & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Camera & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | MirrorModifierData & | dest, |
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::Convert | ( | Image & | dest, |
const FileDatabase & | db | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
Access a field of the structure by its canonical name.
The pointer version returns NULL on failure while the reference version raises an import error.
|
inline |
Access a field of the structure by its index.
void Assimp::Blender::Structure::ReadField | ( | T & | out, |
const char * | name, | ||
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::ReadFieldArray | ( | T(&) | out[M], |
const char * | name, | ||
const FileDatabase & | db | ||
) | const |
void Assimp::Blender::Structure::ReadFieldArray2 | ( | T(&) | out[M][N], |
const char * | name, | ||
const FileDatabase & | db | ||
) | const |
bool Assimp::Blender::Structure::ReadFieldPtr | ( | TOUT< T > & | out, |
const char * | name, | ||
const FileDatabase & | db, | ||
bool | non_recursive = false |
||
) | const |
bool Assimp::Blender::Structure::ReadFieldPtr | ( | TOUT< T >(&) | out[N], |
const char * | name, | ||
const FileDatabase & | db | ||
) | const |
|
friend |
std::map<std::string, size_t> Assimp::Blender::Structure::indices |
std::string Assimp::Blender::Structure::name |
size_t Assimp::Blender::Structure::size |