OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::BoneTransform Struct Reference

Represents the transform of a single object, arranged in SoA (Structure of Arrays) More...

#include <OgreBoneTransform.h>

+ Collaboration diagram for Ogre::BoneTransform:

Public Member Functions

 BoneTransform ()
 
void advancePack ()
 Advances all pointers to the next pack, i.e. More...
 
void advancePack (size_t numAdvance)
 
void copy (const BoneTransform &inCopy)
 Copies all the scalar data from the parameter into this. More...
 

Public Attributes

SimpleMatrixAf4x3 *RESTRICT_ALIAS mDerivedTransform
 Caches the full transform into an affine 4x4 matrix. Note it's not Array form! (It's AoS) More...
 
SimpleMatrixAf4x3 *RESTRICT_ALIAS mFinalTransform
 Caches mDerivedTransform in Bone space, used for rendering. It's not Array form! (It's AoS) More...
 
unsigned char mIndex
 Which of the packed values is ours. Value in range [0; 4) for SSE2. More...
 
bool *RESTRICT_ALIAS mInheritOrientation
 Stores whether this node inherits orientation from it's parent. More...
 
bool *RESTRICT_ALIAS mInheritScale
 Stores whether this node inherits scale from it's parent. More...
 
ArrayQuaternion *RESTRICT_ALIAS mOrientation
 Stores the orientation of a node relative to it's parent. More...
 
Bone ** mOwner
 The Bone that owns this BoneTransform. Ours is mOwner[mIndex]. More...
 
SimpleMatrixAf4x3 const
**RESTRICT_ALIAS 
mParentNodeTransform
 Points to the Node parent's pointer. More...
 
SimpleMatrixAf4x3 const
**RESTRICT_ALIAS 
mParentTransform
 Points to the parent's pointer. More...
 
ArrayVector3 *RESTRICT_ALIAS mPosition
 Stores the position/translation of a node relative to its parent. More...
 
ArrayVector3 *RESTRICT_ALIAS mScale
 Stores the scaling factor applied to a node. More...
 

Detailed Description

Represents the transform of a single object, arranged in SoA (Structure of Arrays)

Definition at line 37 of file OgreBoneTransform.h.

Constructor & Destructor Documentation

Ogre::BoneTransform::BoneTransform ( )
inline

Definition at line 74 of file OgreBoneTransform.h.

Member Function Documentation

void Ogre::BoneTransform::advancePack ( )
inline

Advances all pointers to the next pack, i.e.

if we're processing 4 elements at a time, move to the next 4 elements.

Definition at line 132 of file OgreBoneTransform.h.

References ARRAY_PACKED_REALS, mDerivedTransform, mFinalTransform, mInheritOrientation, mInheritScale, mOrientation, mOwner, mParentNodeTransform, mParentTransform, mPosition, and mScale.

void Ogre::BoneTransform::advancePack ( size_t  numAdvance)
inline
void Ogre::BoneTransform::copy ( const BoneTransform inCopy)
inline

Copies all the scalar data from the parameter into this.

Remarks
A normal "=" operator, or an assignment constructor BoneTransform( BoneTransform & ) wouldn't work. This is because ArrayVector3 & co. would try to copy all the packed values, while we just want the scalar ones.

Furthermore, it would be confusing, because it would be not clear whether those two options should memcpy memory, or rebase the pointers, hence explicit functions are much preferred. rebasePtrs

Note that we do NOT copy the mIndex member.

Definition at line 101 of file OgreBoneTransform.h.

References Ogre::ArrayQuaternion::getAsQuaternion(), Ogre::ArrayVector3::getAsVector3(), mDerivedTransform, mFinalTransform, mIndex, mInheritOrientation, mInheritScale, mOrientation, mOwner, mParentNodeTransform, mParentTransform, mPosition, mScale, Ogre::ArrayQuaternion::setFromQuaternion(), and Ogre::ArrayVector3::setFromVector3().

Member Data Documentation

SimpleMatrixAf4x3* RESTRICT_ALIAS Ogre::BoneTransform::mDerivedTransform

Caches the full transform into an affine 4x4 matrix. Note it's not Array form! (It's AoS)

Definition at line 61 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

SimpleMatrixAf4x3* RESTRICT_ALIAS Ogre::BoneTransform::mFinalTransform

Caches mDerivedTransform in Bone space, used for rendering. It's not Array form! (It's AoS)

Definition at line 64 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

unsigned char Ogre::BoneTransform::mIndex

Which of the packed values is ours. Value in range [0; 4) for SSE2.

Definition at line 40 of file OgreBoneTransform.h.

Referenced by copy().

bool* RESTRICT_ALIAS Ogre::BoneTransform::mInheritOrientation

Stores whether this node inherits orientation from it's parent.

Ours is mInheritOrientation[mIndex]

Definition at line 68 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

bool* RESTRICT_ALIAS Ogre::BoneTransform::mInheritScale

Stores whether this node inherits scale from it's parent.

Ours is mInheritScale[mIndex]

Definition at line 72 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

ArrayQuaternion* RESTRICT_ALIAS Ogre::BoneTransform::mOrientation

Stores the orientation of a node relative to it's parent.

Definition at line 49 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

Bone** Ogre::BoneTransform::mOwner

The Bone that owns this BoneTransform. Ours is mOwner[mIndex].

Definition at line 43 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

SimpleMatrixAf4x3 const* * RESTRICT_ALIAS Ogre::BoneTransform::mParentNodeTransform

Points to the Node parent's pointer.

Definition at line 55 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

SimpleMatrixAf4x3 const* * RESTRICT_ALIAS Ogre::BoneTransform::mParentTransform

Points to the parent's pointer.

Definition at line 58 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

ArrayVector3* RESTRICT_ALIAS Ogre::BoneTransform::mPosition

Stores the position/translation of a node relative to its parent.

Definition at line 46 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().

ArrayVector3* RESTRICT_ALIAS Ogre::BoneTransform::mScale

Stores the scaling factor applied to a node.

Definition at line 52 of file OgreBoneTransform.h.

Referenced by advancePack(), and copy().


The documentation for this struct was generated from the following file: