#include <StdMeshLoader.h>
Public Types | |
typedef std::map< StdCopyStrBuf, std::shared_ptr< StdMeshSkeleton > > | SkeletonMap |
typedef SkeletonMap::const_iterator | skeleton_iterator |
Public Member Functions | |
virtual | ~StdMeshSkeletonLoader ()=default |
void | StoreSkeleton (const char *groupname, const char *filename, std::shared_ptr< StdMeshSkeleton > skeleton) |
void | RemoveSkeleton (const StdCopyStrBuf &filepath) |
void | RemoveSkeleton (const char *groupname, const char *filename) |
void | RemoveSkeletonsInGroup (const char *groupname) |
virtual StdMeshSkeleton * | GetSkeletonByDefinition (const char *definition) const =0 |
std::shared_ptr< StdMeshSkeleton > | GetSkeletonByName (const StdStrBuf &name) const |
void | LoadSkeletonXml (const char *groupname, const char *filename, const char *sourcefile, size_t size) |
void | LoadSkeletonBinary (const char *groupname, const char *filename, const char *sourcefile, size_t size) |
void | ResolveIncompleteSkeletons () |
void | Clear () |
skeleton_iterator | skeletons_begin () const |
skeleton_iterator | skeletons_end () const |
Static Public Member Functions | |
static void | MakeFullSkeletonPath (StdCopyStrBuf &out, const char *groupname, const char *filename) |
Definition at line 49 of file StdMeshLoader.h.
typedef SkeletonMap::const_iterator StdMeshSkeletonLoader::skeleton_iterator |
Definition at line 83 of file StdMeshLoader.h.
typedef std::map<StdCopyStrBuf, std::shared_ptr<StdMeshSkeleton> > StdMeshSkeletonLoader::SkeletonMap |
Definition at line 82 of file StdMeshLoader.h.
|
virtualdefault |
|
inline |
Definition at line 74 of file StdMeshLoader.h.
|
pure virtual |
std::shared_ptr< StdMeshSkeleton > StdMeshSkeletonLoader::GetSkeletonByName | ( | const StdStrBuf & | name | ) | const |
Definition at line 295 of file StdMeshLoaderBinary.cpp.
Referenced by StdMeshLoader::LoadMeshBinary(), and StdMeshLoader::LoadMeshXml().
void StdMeshSkeletonLoader::LoadSkeletonBinary | ( | const char * | groupname, |
const char * | filename, | ||
const char * | sourcefile, | ||
size_t | size | ||
) |
Definition at line 304 of file StdMeshLoaderBinary.cpp.
References Ogre::DataStream::AtEof(), b, Ogre::Skeleton::ChunkBlendMode::blend_mode, Ogre::Skeleton::ChunkBoneParent::childHandle, Ogre::Skeleton::CID_Animation, Ogre::Skeleton::CID_BlendMode, Ogre::Skeleton::CID_Bone, Ogre::Skeleton::CID_Bone_Parent, Ogre::Skeleton::CID_Header, Ogre::Skeleton::ChunkBone::handle, StdMeshBone::Index, StdMeshTransformation::Inverse(), StdMeshBone::InverseTransformation, StdMeshAnimation::Length, LogF(), StdMeshAnimation::Name, Ogre::Skeleton::ChunkBone::name, Ogre::Skeleton::ChunkBone::orientation, Ogre::Skeleton::ChunkBoneParent::parentHandle, Ogre::ChunkBase< ChunkID >::Peek(), Ogre::Skeleton::ChunkBone::position, Ogre::Skeleton::Chunk::Read(), StdMeshTransformation::rotate, Ogre::Skeleton::ChunkBone::scale, StdMeshTransformation::scale, StoreSkeleton(), StdMeshBone::Transformation, StdMeshKeyFrame::Transformation, OgreToClonk::TransformTransformation(), and StdMeshTransformation::translate.
Referenced by C4DefGraphics::LoadSkeleton().
void StdMeshSkeletonLoader::LoadSkeletonXml | ( | const char * | groupname, |
const char * | filename, | ||
const char * | sourcefile, | ||
size_t | size | ||
) |
Definition at line 381 of file StdMeshLoaderXml.cpp.
References StdMeshQuaternion::AngleAxis(), FormatString(), StdStrBuf::getData(), StdMeshBone::ID, StdMeshBone::Index, StdMeshTransformation::Inverse(), StdMeshBone::InverseTransformation, StdMeshAnimation::Length, StdMeshBone::Name, StdMeshAnimation::Name, StdMeshTransformation::rotate, s, StdMeshTransformation::scale, StdMeshBone::Transformation, StdMeshKeyFrame::Transformation, OgreToClonk::TransformTransformation(), StdMeshTransformation::translate, StdMeshVector::UnitScale(), StdMeshVector::x, StdMeshVector::y, and StdMeshVector::z.
Referenced by C4DefGraphics::LoadSkeleton().
|
inlinestatic |
Definition at line 66 of file StdMeshLoader.h.
References StdStrBuf::Append(), StdStrBuf::AppendBackslash(), and StdStrBuf::ToLowerCase().
Referenced by StdMeshLoader::LoadMeshBinary(), StdMeshLoader::LoadMeshXml(), RemoveSkeleton(), and StoreSkeleton().
void StdMeshSkeletonLoader::RemoveSkeleton | ( | const char * | groupname, |
const char * | filename | ||
) |
Definition at line 254 of file StdMeshLoaderBinary.cpp.
References MakeFullSkeletonPath(), and RemoveSkeleton().
void StdMeshSkeletonLoader::RemoveSkeleton | ( | const StdCopyStrBuf & | filepath | ) |
Definition at line 261 of file StdMeshLoaderBinary.cpp.
Referenced by C4DefGraphics::LoadSkeleton(), RemoveSkeleton(), and RemoveSkeletonsInGroup().
void StdMeshSkeletonLoader::RemoveSkeletonsInGroup | ( | const char * | groupname | ) |
Definition at line 224 of file StdMeshLoaderBinary.cpp.
References StdStrBuf::getData(), GetParentPath(), RemoveSkeleton(), and StdStrBuf::ToLowerCase().
void StdMeshSkeletonLoader::ResolveIncompleteSkeletons | ( | ) |
Definition at line 597 of file StdMeshLoaderBinary.cpp.
|
inline |
Definition at line 85 of file StdMeshLoader.h.
Referenced by StdMeshAnimationUpdate::StdMeshAnimationUpdate().
|
inline |
Definition at line 86 of file StdMeshLoader.h.
Referenced by StdMeshAnimationUpdate::StdMeshAnimationUpdate().
void StdMeshSkeletonLoader::StoreSkeleton | ( | const char * | groupname, |
const char * | filename, | ||
std::shared_ptr< StdMeshSkeleton > | skeleton | ||
) |
Definition at line 181 of file StdMeshLoaderBinary.cpp.
References StdStrBuf::getData(), GetExtension(), GetFilenameOnly(), and MakeFullSkeletonPath().
Referenced by LoadSkeletonBinary().