MCPcopy Create free account
hub / github.com/carbonengine/trinity / StopCurveSet

Method StopCurveSet

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3443–3466  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Stop the curve set with the appropriate name --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3441// Stop the curve set with the appropriate name
3442// --------------------------------------------------------------------------------
3443void 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:

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected