|
OGRE
1.9.0
|
Class for serialising skeleton data to/from an OGRE .skeleton file. More...
#include <OgreSkeletonSerializer.h>

Public Types | |
| enum | Endian { ENDIAN_NATIVE , ENDIAN_BIG , ENDIAN_LITTLE } |
| The endianness of written files. More... | |
Public Member Functions | |
| SkeletonSerializer () | |
| virtual | ~SkeletonSerializer () |
| void | exportSkeleton (const Skeleton *pSkeleton, const String &filename, SkeletonVersion ver=SKELETON_VERSION_LATEST, Endian endianMode=ENDIAN_NATIVE) |
| Exports a skeleton to the file specified. | |
| void | exportSkeleton (const Skeleton *pSkeleton, DataStreamPtr stream, SkeletonVersion ver=SKELETON_VERSION_LATEST, Endian endianMode=ENDIAN_NATIVE) |
| Exports a skeleton to the stream specified. | |
| void | importSkeleton (DataStreamPtr &stream, Skeleton *pDest) |
| Imports Skeleton and animation data from a .skeleton file DataStream. | |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
Protected Member Functions | |
| size_t | calcAnimationSize (const Skeleton *pSkel, const Animation *pAnim) |
| size_t | calcAnimationTrackSize (const Skeleton *pSkel, const NodeAnimationTrack *pTrack) |
| size_t | calcBoneParentSize (const Skeleton *pSkel) |
| size_t | calcBoneSize (const Skeleton *pSkel, const Bone *pBone) |
| size_t | calcBoneSizeWithoutScale (const Skeleton *pSkel, const Bone *pBone) |
| size_t | calcKeyFrameSize (const Skeleton *pSkel, const TransformKeyFrame *pKey) |
| size_t | calcKeyFrameSizeWithoutScale (const Skeleton *pSkel, const TransformKeyFrame *pKey) |
| size_t | calcSkeletonAnimationLinkSize (const Skeleton *pSkel, const LinkedSkeletonAnimationSource &link) |
| virtual void | determineEndianness (DataStreamPtr &stream) |
| Determine the endianness of the incoming stream compared to native. | |
| virtual void | determineEndianness (Endian requestedEndian) |
| Determine the endianness to write with based on option. | |
| virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1) |
| virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1) |
| void | readAnimation (DataStreamPtr &stream, Skeleton *pSkel) |
| void | readAnimationTrack (DataStreamPtr &stream, Animation *anim, Skeleton *pSkel) |
| void | readBone (DataStreamPtr &stream, Skeleton *pSkel) |
| void | readBoneParent (DataStreamPtr &stream, Skeleton *pSkel) |
| void | readBools (DataStreamPtr &stream, bool *pDest, size_t count) |
| virtual unsigned short | readChunk (DataStreamPtr &stream) |
| void | readFileHeader (DataStreamPtr &stream) |
| void | readFloats (DataStreamPtr &stream, double *pDest, size_t count) |
| void | readFloats (DataStreamPtr &stream, float *pDest, size_t count) |
| void | readInts (DataStreamPtr &stream, uint32 *pDest, size_t count) |
| void | readKeyFrame (DataStreamPtr &stream, NodeAnimationTrack *track, Skeleton *pSkel) |
| void | readObject (DataStreamPtr &stream, Quaternion &pDest) |
| void | readObject (DataStreamPtr &stream, Vector3 &pDest) |
| void | readShorts (DataStreamPtr &stream, uint16 *pDest, size_t count) |
| void | readSkeletonAnimationLink (DataStreamPtr &stream, Skeleton *pSkel) |
| String | readString (DataStreamPtr &stream) |
| String | readString (DataStreamPtr &stream, size_t numChars) |
| void | setWorkingVersion (SkeletonVersion ver) |
| void | writeAnimation (const Skeleton *pSkel, const Animation *anim, SkeletonVersion ver) |
| void | writeAnimationTrack (const Skeleton *pSkel, const NodeAnimationTrack *track) |
| void | writeBone (const Skeleton *pSkel, const Bone *pBone) |
| void | writeBoneParent (const Skeleton *pSkel, unsigned short boneId, unsigned short parentId) |
| void | writeBools (const bool *const pLong, size_t count) |
| virtual void | writeChunkHeader (uint16 id, size_t size) |
| void | writeData (const void *const buf, size_t size, size_t count) |
| virtual void | writeFileHeader (void) |
| Default to native endian, derive from header. | |
| void | writeFloats (const double *const pfloat, size_t count) |
| void | writeFloats (const float *const pfloat, size_t count) |
| void | writeInts (const uint32 *const pInt, size_t count) |
| void | writeKeyFrame (const Skeleton *pSkel, const TransformKeyFrame *key) |
| void | writeObject (const Quaternion &q) |
| void | writeObject (const Vector3 &vec) |
| void | writeShorts (const uint16 *const pShort, size_t count) |
| void | writeSkeleton (const Skeleton *pSkel, SkeletonVersion ver) |
| void | writeSkeletonAnimationLink (const Skeleton *pSkel, const LinkedSkeletonAnimationSource &link) |
| void | writeString (const String &string) |
Protected Attributes | |
| uint32 | mCurrentstreamLen |
| bool | mFlipEndian |
| DataStreamPtr | mStream |
| String | mVersion |
Class for serialising skeleton data to/from an OGRE .skeleton file.
Definition at line 68 of file OgreSkeletonSerializer.h.
|
inherited |
The endianness of written files.
| Enumerator | |
|---|---|
| ENDIAN_NATIVE | Use the platform native endian. |
| ENDIAN_BIG | Use big endian (0x1000 is serialised as 0x10 0x00) |
| ENDIAN_LITTLE | Use little endian (0x1000 is serialised as 0x00 0x10) |
Definition at line 57 of file OgreSerializer.h.
| Ogre::SkeletonSerializer::SkeletonSerializer | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtualinherited |
Determine the endianness of the incoming stream compared to native.
|
protectedvirtualinherited |
Determine the endianness to write with based on option.
| void Ogre::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
| const String & | filename, | ||
| SkeletonVersion | ver = SKELETON_VERSION_LATEST, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a skeleton to the file specified.
| pSkeleton | Weak reference to the Skeleton to export |
| filename | The destination filename |
| endianMode | The endian mode to write in |
References Ogre::Serializer::ENDIAN_NATIVE, and Ogre::SKELETON_VERSION_LATEST.
| void Ogre::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
| DataStreamPtr | stream, | ||
| SkeletonVersion | ver = SKELETON_VERSION_LATEST, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a skeleton to the stream specified.
| pSkeleton | Weak reference to the Skeleton to export |
| stream | The destination stream |
| endianMode | The endian mode to write in |
References Ogre::Serializer::ENDIAN_NATIVE, and Ogre::SKELETON_VERSION_LATEST.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
| void Ogre::SkeletonSerializer::importSkeleton | ( | DataStreamPtr & | stream, |
| Skeleton * | pDest ) |
Imports Skeleton and animation data from a .skeleton file DataStream.
| stream | The DataStream holding the .skeleton data. Must be initialised (pos at the start of the buffer). |
| pDest | Weak reference to the Skeleton object which will receive the data. Should be blank already. |
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtual |
Reimplemented from Ogre::Serializer.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Default to native endian, derive from header.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
Definition at line 70 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 73 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 71 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 72 of file OgreSerializer.h.
1.13.2