Commit 4d76ceb0 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: stop the current watched process

parent 88a6c353
......@@ -527,24 +527,7 @@ int Application::ExecuteAndWriteOutput()
void
Application::Stop()
{
std::vector<std::string> paramList = GetParametersKeys(true);
for (std::vector<std::string>::const_iterator it = paramList.begin();
it != paramList.end();
++it)
{
std::string key = *it;
if (GetParameterType(key) == ParameterType_OutputImage
&& IsParameterEnabled(key) && HasValue(key) )
{
Parameter* param = GetParameterByKey(key);
OutputImageParameter* outputParam = dynamic_cast<OutputImageParameter*>(param);
if(outputParam!=ITK_NULLPTR)
{
outputParam->GetWriter()->SetAbortGenerateData(true);
}
}
}
m_ProgressSource->SetAbortGenerateData(true);
}
/* Enable the use of an optional parameter. Returns the previous state */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment