-------------------------------------------------------------------------------- Description: Stop the curve set with the appropriate name --------------------------------------------------------------------------------
| 3441 | // Stop the curve set with the appropriate name |
| 3442 | // -------------------------------------------------------------------------------- |
| 3443 | void EveSpaceObject2::StopCurveSet( const std::string& name ) |
| 3444 | { |
| 3445 | for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ ) |
| 3446 | { |
| 3447 | if( ( *it )->GetName() == name ) |
| 3448 | { |
| 3449 | ( *it )->Stop(); |
| 3450 | } |
| 3451 | } |
| 3452 | for( auto childIt = m_children.begin(); childIt != m_children.end(); childIt++ ) |
| 3453 | { |
| 3454 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) ) |
| 3455 | { |
| 3456 | owner->StopCurveSet( name ); |
| 3457 | } |
| 3458 | } |
| 3459 | for( auto childIt = m_effectChildren.begin(); childIt != m_effectChildren.end(); childIt++ ) |
| 3460 | { |
| 3461 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) ) |
| 3462 | { |
| 3463 | owner->StopCurveSet( name ); |
| 3464 | } |
| 3465 | } |
| 3466 | } |
| 3467 | |
| 3468 | // -------------------------------------------------------------------------------- |
| 3469 | // Description: |