Developer Documentation
SkeletonT< PointT >::AnimationIterator Class Reference

Iterator class for the animations attached to a skeleton. More...

#include <ObjectTypes/Skeleton/SkeletonT.hh>

Public Member Functions

 AnimationIterator (std::vector< Animation * > &_animations)
 Default constructor. More...
 
 AnimationIterator (std::vector< Animation * > &_animations, unsigned int _animationIndex)
 Constructor - Creates an iterator for the given animation set starting at a specific position.
 
AnimationIteratoroperator++ ()
 Increase the iterator. More...
 
AnimationHandle operator* () const
 Get an animation handle for the current animation.
 
AnimationIteratoroperator= (const AnimationIterator &other)
 Operator =.
 
 operator bool () const
 boolean operator More...
 

Private Attributes

unsigned int currentIndex_
 
std::vector< Animation * > & animations_
 

Detailed Description

template<class PointT>
class SkeletonT< PointT >::AnimationIterator

Iterator class for the animations attached to a skeleton.

This iterator can be used to iterate over all animations that are attached to the skeleton

Definition at line 120 of file SkeletonT.hh.

Constructor & Destructor Documentation

template<typename PointT >
SkeletonT< PointT >::AnimationIterator::AnimationIterator ( std::vector< Animation * > &  _animations)

Default constructor.

Creates an iterator pointing to the beginning of the vector of animations

Definition at line 294 of file SkeletonT.cc.

Member Function Documentation

template<typename PointT >
SkeletonT< PointT >::AnimationIterator::operator bool ( ) const

boolean operator

Returns true if the iterator is pointing to a valid handle

Definition at line 356 of file SkeletonT.cc.

template<typename PointT >
SkeletonT< PointT >::AnimationIterator & SkeletonT< PointT >::AnimationIterator::operator++ ( )

Increase the iterator.

The iterator will be changed to the next animation in the list

Definition at line 328 of file SkeletonT.cc.


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