torque Torque Game Engine Documentation
TGE Version 1.5.2

TSShape::Sequence Struct Reference

#include <tsShape.h>


Detailed Description

A Sequence holds all the information necessary to perform a particular animation (sequence).

Sequences index a range of keyframes. Keyframes are assumed to be equally spaced in time.

Each node and object is either a member of the sequence or not. If not, they are set to default values when we switch to the sequence unless they are members of some other active sequence. Blended sequences "add" a transform to the current transform of a node. Any object animation of a blended sequence over-rides any existing object state. Blended sequences are always applied after non-blended sequences.


Public Member Functions

Flag Tests
Each of these tests a different flag against the object's flag list to determine the attributes of the given object.

bool testFlags (U32 comp) const
bool animatesScale () const
bool animatesUniformScale () const
bool animatesAlignedScale () const
bool animatesArbitraryScale () const
bool isBlend () const
bool isCyclic () const
bool makePath () const
IO
void read (Stream *, bool readNameIndex=true)
void write (Stream *, bool writeNameIndex=true)

Data Fields

S32 nameIndex
S32 numKeyframes
F32 duration
S32 baseRotation
S32 baseTranslation
S32 baseScale
S32 baseObjectState
S32 baseDecalState
S32 firstGroundFrame
S32 numGroundFrames
S32 firstTrigger
S32 numTriggers
F32 toolBegin
S32 priority
U32 flags
U32 dirtyFlags
 determined at load time
Bitsets
These bitsets code whether this sequence cares about certain aspects of animation e.g., the rotation, translation, or scale of node transforms, or the visibility, frame or material frame of objects.

TSIntegerSet rotationMatters
 Set of nodes.
TSIntegerSet translationMatters
 Set of nodes.
TSIntegerSet scaleMatters
 Set of nodes.
TSIntegerSet visMatters
 Set of objects.
TSIntegerSet frameMatters
 Set of objects.
TSIntegerSet matFrameMatters
 Set of objects.
TSIntegerSet decalMatters
 Set of decals.
TSIntegerSet iflMatters
 Set of IFLs.


Member Function Documentation

bool TSShape::Sequence::testFlags ( U32  comp  )  const [inline]

bool TSShape::Sequence::animatesScale (  )  const [inline]

bool TSShape::Sequence::animatesUniformScale (  )  const [inline]

bool TSShape::Sequence::animatesAlignedScale (  )  const [inline]

bool TSShape::Sequence::animatesArbitraryScale (  )  const [inline]

bool TSShape::Sequence::isBlend (  )  const [inline]

bool TSShape::Sequence::isCyclic (  )  const [inline]

bool TSShape::Sequence::makePath (  )  const [inline]

void TSShape::Sequence::read ( Stream ,
bool  readNameIndex = true 
)

void TSShape::Sequence::write ( Stream ,
bool  writeNameIndex = true 
)


Field Documentation

determined at load time




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen