-------------------------------------------------------------------------------- Description: Merges the locatorSets into the locator sets of the space object --------------------------------------------------------------------------------
| 2508 | // Merges the locatorSets into the locator sets of the space object |
| 2509 | // -------------------------------------------------------------------------------- |
| 2510 | void EveSpaceObject2::MergeToLocatorSet( const EveLocatorSets& locatorSet ) |
| 2511 | { |
| 2512 | const Locator* locators = (const Locator*)&( *locatorSet.GetLocators() )[0]; |
| 2513 | |
| 2514 | for( auto it = m_locatorSets.cbegin(); it != m_locatorSets.cend(); ++it ) |
| 2515 | { |
| 2516 | if( ( *it )->HasName( locatorSet.GetName() ) ) |
| 2517 | { |
| 2518 | ( *it )->Append( locators, locatorSet.GetLocators()->size() ); |
| 2519 | return; |
| 2520 | } |
| 2521 | } |
| 2522 | |
| 2523 | AddLocatorSet( locatorSet.GetName(), locators, locatorSet.GetLocators()->size() ); |
| 2524 | } |
| 2525 | |
| 2526 | |
| 2527 | // -------------------------------------------------------------------------------- |
no test coverage detected