Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# Ogre::SkeletonSerializer Class Reference

Class for serialising skeleton data to/from an OGRE .skeleton file. More...

`#include <OgreSkeletonSerializer.h>`

Inheritance diagram for Ogre::SkeletonSerializer:

[legend]
List of all members.

## Public Methods

| SkeletonSerializer ()
virtual | ~SkeletonSerializer ()
void | exportSkeleton (const Skeleton *pSkeleton, const String &filename)
| Exports a skeleton to the file specified.
void | importSkeleton (DataChunk &chunk, Skeleton *pDest)
| Imports Skeleton and animation data from a .skeleton file DataChunk.

## Protected Methods

virtual void | writeFileHeader (void)
virtual void | writeChunkHeader (unsigned short id, unsigned long size)
void | writeReals (const Real *pReal, size_t count)
void | writeShorts (const unsigned short *pShort, size_t count)
void | writeInts (const unsigned int *pInt, size_t count)
void | writeLongs (const unsigned long *pLong, size_t count)
void | writeBools (const bool *pLong, size_t count)
void | writeObject (const Vector3 &vec)
void | writeObject (const Quaternion &q)
void | writeString (const String &string)
void | writeData (const void *buf, size_t size, size_t count)
virtual void | readFileHeader (DataChunk &chunk)
virtual unsigned short | readChunk (DataChunk &chunk)
void | readBools (DataChunk &chunk, bool *pDest, size_t count)
void | readReals (DataChunk &chunk, Real *pDest, size_t count)
void | readShorts (DataChunk &chunk, unsigned short *pDest, size_t count)
void | readInts (DataChunk &chunk, unsigned int *pDest, size_t count)
void | readLongs (DataChunk &chunk, unsigned long *pDest, size_t count)
void | readObject (DataChunk &chunk, Vector3 *pDest)
void | readObject (DataChunk &chunk, Quaternion *pDest)
String | readString (DataChunk &chunk)
String | readString (DataChunk &chunk, size_t numChars)
virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1)
virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1)
virtual void | flipEndian (void *pData, size_t size, size_t count)
virtual void | flipEndian (void *pData, size_t size)

## Protected Attributes

unsigned long | mCurrentChunkLen
FILE * | mpfFile
String | mVersion

## Private Methods

void | writeSkeleton (const Skeleton *pSkel)
void | writeBone (const Bone *pBone)
void | writeBoneParent (unsigned short boneId, unsigned short parentId)
void | writeAnimation (const Animation *anim)
void | writeAnimationTrack (const AnimationTrack *track)
void | writeKeyFrame (const KeyFrame *key)
void | readBone (DataChunk &chunk)
void | readBoneParent (DataChunk &chunk)
void | readAnimation (DataChunk &chunk)
void | readAnimationTrack (DataChunk &chunk, Animation *anim)
void | readKeyFrame (DataChunk &chunk, AnimationTrack *track)
unsigned long | calcBoneSize (const Bone *pBone)
unsigned long | calcBoneParentSize (void)
unsigned long | calcAnimationSize (const Animation *pAnim)
unsigned long | calcAnimationTrackSize (const AnimationTrack *pTrack)
unsigned long | calcKeyFrameSize (const KeyFrame *pKey)

## Private Attributes

Skeleton * | mpSkeleton

## Detailed Description

Class for serialising skeleton data to/from an OGRE .skeleton file.

Remarks:
  This class allows exporters to write OGRE .skeleton files easily, and allows the OGRE engine to import .skeleton files into instatiated OGRE Skeleton objects. Note that a .skeleton file includes not only the Skeleton, but also definitions of any Animations it uses.

  To export a Skeleton:

  1. Create a Skeleton object and populate it using it's methods.
  2. Call the exportSkeleton method

Definition at line 47 of file OgreSkeletonSerializer.h.

## Constructor & Destructor Documentation

Ogre::SkeletonSerializer::SkeletonSerializer | ( |  | ) |

| Definition at line 45 of file OgreSkeletonSerializer.cpp. References Ogre::Serializer::mVersion.

Ogre::SkeletonSerializer::~SkeletonSerializer | ( |  | ) | `[virtual]`

| Definition at line 52 of file OgreSkeletonSerializer.cpp.

## Member Function Documentation

unsigned long Ogre::SkeletonSerializer::calcAnimationSize | ( | const Animation * | pAnim | ) | `[private]`

| Definition at line 250 of file OgreSkeletonSerializer.cpp. References calcAnimationTrackSize(), Ogre::CHUNK_OVERHEAD_SIZE, Ogre::Animation::getName(), Ogre::Animation::getNumTracks(), and Ogre::Animation::getTrack(). Referenced by writeAnimation().

unsigned long Ogre::SkeletonSerializer::calcAnimationTrackSize | ( | const AnimationTrack * | pTrack | ) | `[private]`

| Definition at line 270 of file OgreSkeletonSerializer.cpp. References calcKeyFrameSize(), Ogre::CHUNK_OVERHEAD_SIZE, Ogre::AnimationTrack::getKeyFrame(), and Ogre::AnimationTrack::getNumKeyFrames(). Referenced by calcAnimationSize(), and writeAnimationTrack().

unsigned long Ogre::SkeletonSerializer::calcBoneParentSize | ( | void |  | ) | `[private]`

| Definition at line 236 of file OgreSkeletonSerializer.cpp. References Ogre::CHUNK_OVERHEAD_SIZE. Referenced by writeBoneParent().

unsigned long Ogre::SkeletonSerializer::calcBoneSize | ( | const Bone * | pBone | ) | `[private]`

| Definition at line 219 of file OgreSkeletonSerializer.cpp. References Ogre::CHUNK_OVERHEAD_SIZE. Referenced by writeBone().

unsigned long Ogre::SkeletonSerializer::calcKeyFrameSize | ( | const KeyFrame * | pKey | ) | `[private]`

| Definition at line 287 of file OgreSkeletonSerializer.cpp. References Ogre::CHUNK_OVERHEAD_SIZE. Referenced by calcAnimationTrackSize(), readKeyFrame(), and writeKeyFrame().

void Ogre::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton,
|  | const String & | filename
| ) |

Exports a skeleton to the file specified.

Remarks:
  This method takes an externally created Skeleton object, and exports both it and animations it uses to a .skeleton file.

Parameters:

  pSkeleton | Pointer to the Skeleton to export
  filename | The destination filename

Definition at line 56 of file OgreSkeletonSerializer.cpp.

References Ogre::Skeleton::getAnimation(), Ogre::Animation::getName(), Ogre::Skeleton::getNumAnimations(), Ogre::Serializer::mpfFile, Ogre::String, writeAnimation(), Ogre::Serializer::writeFileHeader(), and writeSkeleton().

void Ogre::Serializer::flipEndian | ( | void * | pData,
|  | size_t | size
| ) | `[protected, virtual, inherited]`

| Definition at line 310 of file OgreSerializer.cpp.

void Ogre::Serializer::flipEndian | ( | void * | pData,
|  | size_t | size,
|  | size_t | count
| ) | `[protected, virtual, inherited]`

| Definition at line 302 of file OgreSerializer.cpp. Referenced by Ogre::Serializer::flipFromLittleEndian(), and Ogre::Serializer::flipToLittleEndian().

void Ogre::Serializer::flipFromLittleEndian | ( | void * | pData,
|  | size_t | size,
|  | size_t | count = 1
| ) | `[protected, virtual, inherited]`

| Definition at line 295 of file OgreSerializer.cpp. References Ogre::Serializer::flipEndian(). Referenced by Ogre::Serializer::readInts(), Ogre::Serializer::readLongs(), Ogre::Serializer::readReals(), and Ogre::Serializer::readShorts().

void Ogre::Serializer::flipToLittleEndian | ( | void * | pData,
|  | size_t | size,
|  | size_t | count = 1
| ) | `[protected, virtual, inherited]`

| Definition at line 288 of file OgreSerializer.cpp. References Ogre::Serializer::flipEndian(). Referenced by Ogre::Serializer::writeInts(), Ogre::Serializer::writeLongs(), Ogre::Serializer::writeReals(), and Ogre::Serializer::writeShorts().

void Ogre::SkeletonSerializer::importSkeleton | ( | DataChunk & | chunk,
|  | Skeleton * | pDest
| ) |

Imports Skeleton and animation data from a .skeleton file DataChunk.

Remarks:
  This method imports data from a DataChunk opened from a .skeleton file and places it's contents into the Skeleton object which is passed in.

Parameters:

  chunk | The DataChunk holding the .skeleton data. Must be initialised (pos at the start of the buffer).
  pDest | Pointer to the Skeleton object which will receive the data. Should be blank already.

Definition at line 88 of file OgreSkeletonSerializer.cpp.

References Ogre::DataChunk::isEOF(), mpSkeleton, readAnimation(), readBone(), readBoneParent(), Ogre::Serializer::readChunk(), Ogre::Serializer::readFileHeader(), Ogre::Skeleton::setBindingPose(), Ogre::SKELETON_ANIMATION, Ogre::SKELETON_BONE, and Ogre::SKELETON_BONE_PARENT.

Referenced by Ogre::Skeleton::load().

void Ogre::SkeletonSerializer::readAnimation | ( | DataChunk & | chunk | ) | `[private]`

Definition at line 344 of file OgreSkeletonSerializer.cpp.

References Ogre::CHUNK_OVERHEAD_SIZE, Ogre::Skeleton::createAnimation(), Ogre::DataChunk::isEOF(), mpSkeleton, readAnimationTrack(), Ogre::Serializer::readChunk(), Ogre::Serializer::readReals(), Ogre::Serializer::readString(), Ogre::Real, Ogre::SKELETON_ANIMATION_TRACK, Ogre::DataChunk::skip(), and Ogre::String.

Referenced by importSkeleton().

void Ogre::SkeletonSerializer::readAnimationTrack | ( | DataChunk & | chunk,
|  | Animation * | anim
| ) | `[private]`

| Definition at line 381 of file OgreSkeletonSerializer.cpp. References Ogre::CHUNK_OVERHEAD_SIZE, Ogre::Animation::createTrack(), Ogre::Skeleton::getBone(), Ogre::DataChunk::isEOF(), mpSkeleton, Ogre::Serializer::readChunk(), readKeyFrame(), Ogre::Serializer::readShorts(), Ogre::SKELETON_ANIMATION_TRACK_KEYFRAME, and Ogre::DataChunk::skip(). Referenced by readAnimation().

void Ogre::SkeletonSerializer::readBone | ( | DataChunk & | chunk | ) | `[private]`

| Definition at line 303 of file OgreSkeletonSerializer.cpp. References Ogre::Skeleton::createBone(), mpSkeleton, Ogre::Serializer::readObject(), Ogre::Serializer::readShorts(), Ogre::Serializer::readString(), Ogre::Node::setOrientation(), Ogre::Node::setPosition(), and Ogre::String. Referenced by importSkeleton().

void Ogre::SkeletonSerializer::readBoneParent | ( | DataChunk & | chunk | ) | `[private]`

| Definition at line 324 of file OgreSkeletonSerializer.cpp. References Ogre::Node::addChild(), Ogre::Skeleton::getBone(), mpSkeleton, and Ogre::Serializer::readShorts(). Referenced by importSkeleton().

void Ogre::Serializer::readBools | ( | DataChunk & | chunk,
|  | bool * | pDest,
|  | size_t | count
| ) | `[protected, inherited]`

| Definition at line 196 of file OgreSerializer.cpp. References free, malloc, and Ogre::DataChunk::read(). Referenced by Ogre::MeshSerializerImpl::readEdgeList(), Ogre::MeshSerializerImpl::readMesh(), Ogre::MeshSerializerImpl::readMeshLodInfo(), Ogre::MeshSerializerImpl::readMeshLodUsageGenerated(), and Ogre::MeshSerializerImpl::readSubMesh().

unsigned short Ogre::Serializer::readChunk | ( | DataChunk & | chunk | ) | `[protected, virtual, inherited]`

Definition at line 187 of file OgreSerializer.cpp.

References Ogre::Serializer::mCurrentChunkLen, Ogre::Serializer::readLongs(), and Ogre::Serializer::readShorts().

Referenced by Ogre::MeshSerializerImpl::importMesh(), importSkeleton(), readAnimation(), readAnimationTrack(), Ogre::MeshSerializerImpl::readEdgeList(), Ogre::MeshSerializerImpl_v1_2::readGeometry(), Ogre::MeshSerializerImpl::readGeometry(), Ogre::MeshSerializerImpl::readGeometryVertexBuffer(), Ogre::MeshSerializerImpl::readGeometryVertexDeclaration(), Ogre::MeshSerializerImpl::readMesh(), Ogre::MeshSerializerImpl::readMeshLodInfo(), Ogre::MeshSerializerImpl::readMeshLodUsageGenerated(), Ogre::MeshSerializerImpl::readMeshLodUsageManual(), Ogre::MeshSerializerImpl::readSubMesh(), and Ogre::MeshSerializerImpl::readSubMeshNameTable().

void Ogre::Serializer::readFileHeader | ( | DataChunk & | chunk | ) | `[protected, virtual, inherited]`

| Definition at line 160 of file OgreSerializer.cpp. References Except, Ogre::HEADER_CHUNK_ID, Ogre::Serializer::mVersion, Ogre::Serializer::readShorts(), Ogre::Serializer::readString(), and Ogre::String. Referenced by Ogre::MeshSerializerImpl::importMesh(), and importSkeleton().

void Ogre::Serializer::readInts | ( | DataChunk & | chunk,
|  | unsigned int * | pDest,
|  | size_t | count
| ) | `[protected, inherited]`

Definition at line 224 of file OgreSerializer.cpp.

References Ogre::Serializer::flipFromLittleEndian(), and Ogre::DataChunk::read().

Referenced by Ogre::MeshSerializerImpl_v1_2::readGeometry(), Ogre::MeshSerializerImpl::readGeometry(), Ogre::MeshSerializerImpl::readMeshBoneAssignment(), Ogre::MeshSerializerImpl::readMeshLodUsageGenerated(), Ogre::MeshSerializerImpl::readSubMesh(), and Ogre::MeshSerializerImpl::readSubMeshBoneAssignment().

void Ogre::SkeletonSerializer::readKeyFrame | ( | DataChunk & | chunk,
|  | AnimationTrack * | track
| ) | `[private]`

| Definition at line 418 of file OgreSkeletonSerializer.cpp. References calcKeyFrameSize(), Ogre::AnimationTrack::createKeyFrame(), Ogre::Serializer::mCurrentChunkLen, Ogre::Serializer::readObject(), Ogre::Serializer::readReals(), Ogre::Real, Ogre::KeyFrame::setRotation(), Ogre::KeyFrame::setScale(), and Ogre::KeyFrame::setTranslate(). Referenced by readAnimationTrack().

void Ogre::Serializer::readLongs | ( | DataChunk & | chunk,
|  | unsigned long * | pDest,
|  | size_t | count
| ) | `[protected, inherited]`

| Definition at line 230 of file OgreSerializer.cpp. References Ogre::Serializer::flipFromLittleEndian(), and Ogre::DataChunk::read(). Referenced by Ogre::Serializer::readChunk(), Ogre::MeshSerializerImpl::readEdgeList(), and Ogre::MeshSerializerImpl_v1_2::readGeometryColours().

void Ogre::Serializer::readObject | ( | DataChunk & | chunk,
|  | Quaternion * | pDest
| ) | `[protected, inherited]`

| Definition at line 278 of file OgreSerializer.cpp. References Ogre::Serializer::readReals(), Ogre::Quaternion::w, Ogre::Quaternion::x, Ogre::Quaternion::y, and Ogre::Quaternion::z.

void Ogre::Serializer::readObject | ( | DataChunk & | chunk,
|  | Vector3 * | pDest
| ) | `[protected, inherited]`

| Definition at line 271 of file OgreSerializer.cpp. References Ogre::Serializer::readReals(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. Referenced by readBone(), and readKeyFrame().

void Ogre::Serializer::readReals | ( | DataChunk & | chunk,
|  | Real * | pDest,
|  | size_t | count
| ) | `[protected, inherited]`

Definition at line 212 of file OgreSerializer.cpp.

References Ogre::Serializer::flipFromLittleEndian(), Ogre::DataChunk::read(), and Ogre::Real.

Referenced by readAnimation(), Ogre::MeshSerializerImpl::readBoundsInfo(), Ogre::MeshSerializerImpl::readEdgeList(), Ogre::MeshSerializerImpl_v1_2::readGeometryNormals(), Ogre::MeshSerializerImpl_v1_2::readGeometryPositions(), Ogre::MeshSerializerImpl_v1_1::readGeometryTexCoords(), Ogre::MeshSerializerImpl_v1_2::readGeometryTexCoords(), readKeyFrame(), Ogre::MeshSerializerImpl::readMeshBoneAssignment(), Ogre::MeshSerializerImpl::readMeshLodInfo(), Ogre::Serializer::readObject(), and Ogre::MeshSerializerImpl::readSubMeshBoneAssignment().

void Ogre::Serializer::readShorts | ( | DataChunk & | chunk,
|  | unsigned short * | pDest,
|  | size_t | count
| ) | `[protected, inherited]`

Definition at line 218 of file OgreSerializer.cpp.

References Ogre::Serializer::flipFromLittleEndian(), and Ogre::DataChunk::read().

Referenced by Ogre::MeshSerializer::importMesh(), readAnimationTrack(), readBone(), readBoneParent(), Ogre::Serializer::readChunk(), Ogre::MeshSerializerImpl::readEdgeList(), Ogre::Serializer::readFileHeader(), Ogre::MeshSerializerImpl_v1_1::readGeometryTexCoords(), Ogre::MeshSerializerImpl_v1_2::readGeometryTexCoords(), Ogre::MeshSerializerImpl::readGeometryVertexBuffer(), Ogre::MeshSerializerImpl::readGeometryVertexElement(), Ogre::MeshSerializerImpl::readMeshBoneAssignment(), Ogre::MeshSerializerImpl::readMeshLodInfo(), Ogre::MeshSerializerImpl::readMeshLodUsageGenerated(), Ogre::MeshSerializerImpl::readSubMesh(), Ogre::MeshSerializerImpl::readSubMeshBoneAssignment(), Ogre::MeshSerializerImpl::readSubMeshNameTable(), and Ogre::MeshSerializerImpl::readSubMeshOperation().

String Ogre::Serializer::readString | ( | DataChunk & | chunk,
|  | size_t | numChars
| ) | `[protected, inherited]`

| Definition at line 236 of file OgreSerializer.cpp. References Ogre::DataChunk::read(), and Ogre::String.

String Ogre::Serializer::readString | ( | DataChunk & | chunk | ) | `[protected, inherited]`

Definition at line 245 of file OgreSerializer.cpp.

References Ogre::DataChunk::readUpTo(), and Ogre::String.

Referenced by Ogre::MeshSerializer::importMesh(), readAnimation(), readBone(), Ogre::Serializer::readFileHeader(), Ogre::MeshSerializerImpl::readMeshLodUsageManual(), Ogre::MeshSerializerImpl::readSkeletonLink(), Ogre::MeshSerializerImpl::readSubMesh(), and Ogre::MeshSerializerImpl::readSubMeshNameTable().

void Ogre::SkeletonSerializer::writeAnimation | ( | const Animation * | anim | ) | `[private]`

| Definition at line 167 of file OgreSkeletonSerializer.cpp. References calcAnimationSize(), Ogre::Animation::getLength(), Ogre::Animation::getName(), Ogre::Animation::getTrackIterator(), Ogre::Real, Ogre::SKELETON_ANIMATION, writeAnimationTrack(), Ogre::Serializer::writeChunkHeader(), Ogre::Serializer::writeReals(), and Ogre::Serializer::writeString(). Referenced by exportSkeleton().

void Ogre::SkeletonSerializer::writeAnimationTrack | ( | const AnimationTrack * | track | ) | `[private]`

| Definition at line 186 of file OgreSkeletonSerializer.cpp. References calcAnimationTrackSize(), Ogre::AnimationTrack::getAssociatedNode(), Ogre::Bone::getHandle(), Ogre::AnimationTrack::getKeyFrame(), Ogre::AnimationTrack::getNumKeyFrames(), Ogre::SKELETON_ANIMATION_TRACK, Ogre::Serializer::writeChunkHeader(), writeKeyFrame(), and Ogre::Serializer::writeShorts(). Referenced by writeAnimation().

void Ogre::SkeletonSerializer::writeBone | ( | const Bone * | pBone | ) | `[private]`

| Definition at line 141 of file OgreSkeletonSerializer.cpp. References calcBoneSize(), Ogre::Bone::getHandle(), Ogre::Node::getName(), Ogre::Node::getOrientation(), Ogre::Node::getPosition(), Ogre::SKELETON_BONE, Ogre::Serializer::writeChunkHeader(), Ogre::Serializer::writeObject(), Ogre::Serializer::writeShorts(), and Ogre::Serializer::writeString(). Referenced by writeSkeleton().

void Ogre::SkeletonSerializer::writeBoneParent | ( | unsigned short | boneId,
|  | unsigned short | parentId
| ) | `[private]`

| Definition at line 156 of file OgreSkeletonSerializer.cpp. References calcBoneParentSize(), Ogre::SKELETON_BONE_PARENT, Ogre::Serializer::writeChunkHeader(), and Ogre::Serializer::writeShorts(). Referenced by writeSkeleton().

void Ogre::Serializer::writeBools | ( | const bool * | pLong,
|  | size_t | count
| ) | `[protected, inherited]`

| Definition at line 127 of file OgreSerializer.cpp. References free, malloc, and Ogre::Serializer::writeData(). Referenced by Ogre::MeshSerializerImpl::writeEdgeList(), Ogre::MeshSerializerImpl::writeLodSummary(), Ogre::MeshSerializerImpl::writeLodUsageGenerated(), Ogre::MeshSerializerImpl::writeMesh(), and Ogre::MeshSerializerImpl::writeSubMesh().

void Ogre::Serializer::writeChunkHeader | ( | unsigned short | id,
|  | unsigned long | size
| ) | `[protected, virtual, inherited]`

Definition at line 61 of file OgreSerializer.cpp.

References Ogre::Serializer::writeLongs(), and Ogre::Serializer::writeShorts().

Referenced by writeAnimation(), writeAnimationTrack(), writeBone(), writeBoneParent(), Ogre::MeshSerializerImpl::writeBoundsInfo(), Ogre::MeshSerializerImpl::writeEdgeList(), Ogre::MeshSerializerImpl::writeGeometry(), writeKeyFrame(), Ogre::MeshSerializerImpl::writeLodSummary(), Ogre::MeshSerializerImpl::writeLodUsageGenerated(), Ogre::MeshSerializerImpl::writeLodUsageManual(), Ogre::MeshSerializerImpl::writeMesh(), Ogre::MeshSerializerImpl::writeMeshBoneAssignment(), Ogre::MeshSerializerImpl::writeSkeletonLink(), Ogre::MeshSerializerImpl::writeSubMesh(), Ogre::MeshSerializerImpl::writeSubMeshBoneAssignment(), Ogre::MeshSerializerImpl::writeSubMeshNameTable(), and Ogre::MeshSerializerImpl::writeSubMeshOperation().

void Ogre::Serializer::writeData | ( | const void * | buf,
|  | size_t | size,
|  | size_t | count
| ) | `[protected, inherited]`

| Definition at line 148 of file OgreSerializer.cpp. References Ogre::Serializer::mpfFile. Referenced by Ogre::Serializer::writeBools(), Ogre::MeshSerializerImpl::writeGeometry(), Ogre::Serializer::writeInts(), Ogre::Serializer::writeLongs(), Ogre::Serializer::writeReals(), and Ogre::Serializer::writeShorts().

void Ogre::Serializer::writeFileHeader | ( | void |  | ) | `[protected, virtual, inherited]`

| Definition at line 51 of file OgreSerializer.cpp. References Ogre::HEADER_CHUNK_ID, Ogre::Serializer::mVersion, Ogre::Serializer::writeShorts(), and Ogre::Serializer::writeString(). Referenced by Ogre::MeshSerializerImpl::exportMesh(), and exportSkeleton().

void Ogre::Serializer::writeInts | ( | const unsigned int * | pInt,
|  | size_t | count
| ) | `[protected, inherited]`

Definition at line 97 of file OgreSerializer.cpp.

References Ogre::Serializer::flipToLittleEndian(), free, malloc, and Ogre::Serializer::writeData().

Referenced by Ogre::MeshSerializerImpl::writeGeometry(), Ogre::MeshSerializerImpl::writeLodUsageGenerated(), Ogre::MeshSerializerImpl::writeMeshBoneAssignment(), Ogre::MeshSerializerImpl::writeSubMesh(), and Ogre::MeshSerializerImpl::writeSubMeshBoneAssignment().

void Ogre::SkeletonSerializer::writeKeyFrame | ( | const KeyFrame * | key | ) | `[private]`

Definition at line 203 of file OgreSkeletonSerializer.cpp.

References calcKeyFrameSize(), Ogre::KeyFrame::getRotation(), Ogre::KeyFrame::getScale(), Ogre::KeyFrame::getTime(), Ogre::KeyFrame::getTranslate(), Ogre::Real, Ogre::SKELETON_ANIMATION_TRACK_KEYFRAME, Ogre::Serializer::writeChunkHeader(), Ogre::Serializer::writeObject(), and Ogre::Serializer::writeReals().

Referenced by writeAnimationTrack().

void Ogre::Serializer::writeLongs | ( | const unsigned long * | pLong,
|  | size_t | count
| ) | `[protected, inherited]`

| Definition at line 112 of file OgreSerializer.cpp. References Ogre::Serializer::flipToLittleEndian(), free, malloc, and Ogre::Serializer::writeData(). Referenced by Ogre::Serializer::writeChunkHeader(), and Ogre::MeshSerializerImpl::writeEdgeList().

void Ogre::Serializer::writeObject | ( | const Quaternion & | q | ) | `[protected, inherited]`

| Definition at line 263 of file OgreSerializer.cpp. References Ogre::Quaternion::w, Ogre::Serializer::writeReals(), Ogre::Quaternion::x, Ogre::Quaternion::y, and Ogre::Quaternion::z.

void Ogre::Serializer::writeObject | ( | const Vector3 & | vec | ) | `[protected, inherited]`

| Definition at line 255 of file OgreSerializer.cpp. References Ogre::Serializer::writeReals(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. Referenced by writeBone(), and writeKeyFrame().

void Ogre::Serializer::writeReals | ( | const Real * | pReal,
|  | size_t | count
| ) | `[protected, inherited]`

Definition at line 67 of file OgreSerializer.cpp.

References Ogre::Serializer::flipToLittleEndian(), free, malloc, Ogre::Real, and Ogre::Serializer::writeData().

Referenced by writeAnimation(), Ogre::MeshSerializerImpl::writeBoundsInfo(), Ogre::MeshSerializerImpl::writeEdgeList(), writeKeyFrame(), Ogre::MeshSerializerImpl::writeLodUsageGenerated(), Ogre::MeshSerializerImpl::writeLodUsageManual(), Ogre::MeshSerializerImpl::writeMeshBoneAssignment(), Ogre::Serializer::writeObject(), and Ogre::MeshSerializerImpl::writeSubMeshBoneAssignment().

void Ogre::Serializer::writeShorts | ( | const unsigned short * | pShort,
|  | size_t | count
| ) | `[protected, inherited]`

Definition at line 82 of file OgreSerializer.cpp.

References Ogre::Serializer::flipToLittleEndian(), free, malloc, and Ogre::Serializer::writeData().

Referenced by writeAnimationTrack(), writeBone(), writeBoneParent(), Ogre::Serializer::writeChunkHeader(), Ogre::MeshSerializerImpl::writeEdgeList(), Ogre::Serializer::writeFileHeader(), Ogre::MeshSerializerImpl::writeGeometry(), Ogre::MeshSerializerImpl::writeLodSummary(), Ogre::MeshSerializerImpl::writeLodUsageGenerated(), Ogre::MeshSerializerImpl::writeMeshBoneAssignment(), Ogre::MeshSerializerImpl::writeSubMesh(), Ogre::MeshSerializerImpl::writeSubMeshBoneAssignment(), Ogre::MeshSerializerImpl::writeSubMeshNameTable(), and Ogre::MeshSerializerImpl::writeSubMeshOperation().

void Ogre::SkeletonSerializer::writeSkeleton | ( | const Skeleton * | pSkel | ) | `[private]`

| Definition at line 118 of file OgreSkeletonSerializer.cpp. References Ogre::Skeleton::getBone(), Ogre::Bone::getHandle(), Ogre::Skeleton::getNumBones(), Ogre::Node::getParent(), writeBone(), and writeBoneParent(). Referenced by exportSkeleton().

void Ogre::Serializer::writeString | ( | const String & | string | ) | `[protected, inherited]`

| Definition at line 153 of file OgreSerializer.cpp. References Ogre::Serializer::mpfFile, and Ogre::String. Referenced by writeAnimation(), writeBone(), Ogre::Serializer::writeFileHeader(), Ogre::MeshSerializerImpl::writeLodUsageManual(), Ogre::MeshSerializerImpl::writeSkeletonLink(), Ogre::MeshSerializerImpl::writeSubMesh(), and Ogre::MeshSerializerImpl::writeSubMeshNameTable().

## Member Data Documentation

unsigned long Ogre::Serializer::mCurrentChunkLen`[protected, inherited]`

| Definition at line 48 of file OgreSerializer.h. Referenced by Ogre::Serializer::readChunk(), readKeyFrame(), and Ogre::MeshSerializerImpl::readMesh().

FILE* Ogre::Serializer::mpfFile`[protected, inherited]`

| Definition at line 49 of file OgreSerializer.h. Referenced by Ogre::MeshSerializerImpl::exportMesh(), exportSkeleton(), Ogre::Serializer::writeData(), and Ogre::Serializer::writeString().

Skeleton* Ogre::SkeletonSerializer::mpSkeleton`[private]`

| Definition at line 75 of file OgreSkeletonSerializer.h. Referenced by importSkeleton(), readAnimation(), readAnimationTrack(), readBone(), and readBoneParent().

String Ogre::Serializer::mVersion`[protected, inherited]`

| Definition at line 50 of file OgreSerializer.h. Referenced by Ogre::MeshSerializerImpl::MeshSerializerImpl(), Ogre::MeshSerializerImpl_v1_1::MeshSerializerImpl_v1_1(), Ogre::MeshSerializerImpl_v1_2::MeshSerializerImpl_v1_2(), Ogre::Serializer::readFileHeader(), Ogre::Serializer::Serializer(), SkeletonSerializer(), and Ogre::Serializer::writeFileHeader().

The documentation for this class was generated from the following files:

- OgreSkeletonSerializer.h
- OgreSkeletonSerializer.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:40 2004