| 275 | } |
| 276 | |
| 277 | float TriCurveSet::GetMaxCurveDuration() const |
| 278 | { |
| 279 | float maxDuration = 0.0f; |
| 280 | |
| 281 | for( ITriFunctionVector::const_iterator it = m_curves.begin(); it != m_curves.end(); ++it ) |
| 282 | { |
| 283 | float l = 0.0f; |
| 284 | if( ITriDurationPtr f = BlueCastPtr( *it ) ) |
| 285 | { |
| 286 | l = f->Length(); |
| 287 | } |
| 288 | else if( ITriCurveLengthPtr f = BlueCastPtr( *it ) ) |
| 289 | { |
| 290 | l = f->Length(); |
| 291 | } |
| 292 | |
| 293 | if( l > maxDuration ) |
| 294 | { |
| 295 | maxDuration = l; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | return maxDuration; |
| 300 | } |
| 301 | |
| 302 | float TriCurveSet::GetRangeDuration( const char* rangeName ) const |
| 303 | { |
no test coverage detected