Assimp  v3.1.1 (June 2014)
Assimp::KeyIterator Class Reference

Helper class to iterate through all keys in an animation channel. More...

Public Member Functions

bool Finished () const
 Returns true if all keys have been processed. More...
 
const aiVector3DGetCurPosition () const
 Getters to retrieve the current state of the iterator. More...
 
const aiVector3DGetCurTargetPosition () const
 
double GetCurTime () const
 
 KeyIterator (const std::vector< aiVectorKey > *_objPos, const std::vector< aiVectorKey > *_targetObjPos, const aiVector3D *defaultObjectPos=NULL, const aiVector3D *defaultTargetPos=NULL)
 Constructs a new key iterator. More...
 
void operator++ ()
 Increment the iterator. More...
 
void operator++ (int)
 

Detailed Description

Helper class to iterate through all keys in an animation channel.

Missing tracks are interpolated. This is a helper class for TargetAnimationHelper, but it can be freely used for other purposes.

Constructor & Destructor Documentation

◆ KeyIterator()

KeyIterator::KeyIterator ( const std::vector< aiVectorKey > *  _objPos,
const std::vector< aiVectorKey > *  _targetObjPos,
const aiVector3D defaultObjectPos = NULL,
const aiVector3D defaultTargetPos = NULL 
)

Constructs a new key iterator.

Parameters
_objPosObject position track. May be NULL.
_targetObjPosTarget object position track. May be NULL.
defaultObjectPosDefault object position to be used if no animated track is available. May be NULL.
defaultTargetPosDefault target position to be used if no animated track is available. May be NULL.

Member Function Documentation

◆ Finished()

bool Assimp::KeyIterator::Finished ( ) const
inline

Returns true if all keys have been processed.

◆ GetCurPosition()

const aiVector3D& Assimp::KeyIterator::GetCurPosition ( ) const
inline

Getters to retrieve the current state of the iterator.

◆ GetCurTargetPosition()

const aiVector3D& Assimp::KeyIterator::GetCurTargetPosition ( ) const
inline

◆ GetCurTime()

double Assimp::KeyIterator::GetCurTime ( ) const
inline

◆ operator++() [1/2]

void KeyIterator::operator++ ( )

Increment the iterator.

◆ operator++() [2/2]

void Assimp::KeyIterator::operator++ ( int  )
inline

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