---------------------------------------------------------------------
| 350 | const String &Animation::getName() const { return mName; } |
| 351 | //--------------------------------------------------------------------- |
| 352 | void Animation::apply( Real timePos, Real weight, Real scale ) |
| 353 | { |
| 354 | _applyBaseKeyFrame(); |
| 355 | |
| 356 | // Calculate time index for fast keyframe search |
| 357 | TimeIndex timeIndex = _getTimeIndex( timePos ); |
| 358 | |
| 359 | { |
| 360 | NodeTrackList::iterator i; |
| 361 | for( i = mNodeTrackList.begin(); i != mNodeTrackList.end(); ++i ) |
| 362 | { |
| 363 | ( *i )->apply( timeIndex, weight, scale ); |
| 364 | } |
| 365 | } |
| 366 | { |
| 367 | OldNodeTrackList::iterator i; |
| 368 | for( i = mOldNodeTrackList.begin(); i != mOldNodeTrackList.end(); ++i ) |
| 369 | { |
| 370 | i->second->apply( timeIndex, weight, scale ); |
| 371 | } |
| 372 | } |
| 373 | NumericTrackList::iterator j; |
| 374 | for( j = mNumericTrackList.begin(); j != mNumericTrackList.end(); ++j ) |
| 375 | { |
| 376 | j->second->apply( timeIndex, weight, scale ); |
| 377 | } |
| 378 | VertexTrackList::iterator k; |
| 379 | for( k = mVertexTrackList.begin(); k != mVertexTrackList.end(); ++k ) |
| 380 | { |
| 381 | k->second->apply( timeIndex, weight, scale ); |
| 382 | } |
| 383 | } |
| 384 | //--------------------------------------------------------------------- |
| 385 | void Animation::applyToNode( OldNode *node, Real timePos, Real weight, Real scale ) |
| 386 | { |
no test coverage detected