-----------------------------------------------------------------------
| 700 | } |
| 701 | //----------------------------------------------------------------------- |
| 702 | void Animation::buildKeyFrameTimeList() const |
| 703 | { |
| 704 | OldNodeTrackList::const_iterator i; |
| 705 | NumericTrackList::const_iterator j; |
| 706 | VertexTrackList::const_iterator k; |
| 707 | NodeTrackList::const_iterator l; |
| 708 | |
| 709 | // Clear old keyframe times |
| 710 | mKeyFrameTimes.clear(); |
| 711 | |
| 712 | // Collect all keyframe times from each track |
| 713 | for( i = mOldNodeTrackList.begin(); i != mOldNodeTrackList.end(); ++i ) |
| 714 | { |
| 715 | i->second->_collectKeyFrameTimes( mKeyFrameTimes ); |
| 716 | } |
| 717 | for( l = mNodeTrackList.begin(); l != mNodeTrackList.end(); ++l ) |
| 718 | { |
| 719 | ( *l )->_collectKeyFrameTimes( mKeyFrameTimes ); |
| 720 | } |
| 721 | for( j = mNumericTrackList.begin(); j != mNumericTrackList.end(); ++j ) |
| 722 | { |
| 723 | j->second->_collectKeyFrameTimes( mKeyFrameTimes ); |
| 724 | } |
| 725 | for( k = mVertexTrackList.begin(); k != mVertexTrackList.end(); ++k ) |
| 726 | { |
| 727 | k->second->_collectKeyFrameTimes( mKeyFrameTimes ); |
| 728 | } |
| 729 | |
| 730 | // Build global index to local index map for each track |
| 731 | for( i = mOldNodeTrackList.begin(); i != mOldNodeTrackList.end(); ++i ) |
| 732 | { |
| 733 | i->second->_buildKeyFrameIndexMap( mKeyFrameTimes ); |
| 734 | } |
| 735 | for( l = mNodeTrackList.begin(); l != mNodeTrackList.end(); ++l ) |
| 736 | { |
| 737 | ( *l )->_buildKeyFrameIndexMap( mKeyFrameTimes ); |
| 738 | } |
| 739 | for( j = mNumericTrackList.begin(); j != mNumericTrackList.end(); ++j ) |
| 740 | { |
| 741 | j->second->_buildKeyFrameIndexMap( mKeyFrameTimes ); |
| 742 | } |
| 743 | for( k = mVertexTrackList.begin(); k != mVertexTrackList.end(); ++k ) |
| 744 | { |
| 745 | k->second->_buildKeyFrameIndexMap( mKeyFrameTimes ); |
| 746 | } |
| 747 | |
| 748 | // Reset dirty flag |
| 749 | mKeyFrameTimesDirty = false; |
| 750 | } |
| 751 | //----------------------------------------------------------------------- |
| 752 | void Animation::setUseBaseKeyFrame( bool useBaseKeyFrame, Real keyframeTime, |
| 753 | const String &baseAnimName ) |
nothing calls this directly
no test coverage detected