Commit 3e227125 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Moving PropageRequestedRegion() at the correct place in ImageList, and...

BUG: Moving PropageRequestedRegion() at the correct place in ImageList, and remove the unnecessary call in PipelineMemoryPrintCalculator (part of fir for #1516)
parent c47e4540
......@@ -33,6 +33,19 @@ ImageList<TImage>
::UpdateOutputData()
{
Superclass::UpdateOutputData();
for (ConstIterator it = this->Begin(); it != this->End(); ++it)
{
it.Get()->GetSource()->UpdateOutputData(it.Get());
}
}
template <class TImage>
void
ImageList<TImage>
::PropagateRequestedRegion() throw (itk::InvalidRequestedRegionError)
{
Superclass::PropagateRequestedRegion();
for (ConstIterator it = this->Begin(); it != this->End(); ++it)
{
if (it.Get()->GetUpdateMTime() < it.Get()->GetPipelineMTime()
......@@ -54,19 +67,9 @@ ImageList<TImage>
throw e;
}
it.Get()->GetSource()->UpdateOutputData(it.Get());
}
}
}
}
template <class TImage>
void
ImageList<TImage>
::PropagateRequestedRegion() throw (itk::InvalidRequestedRegionError)
{
Superclass::PropagateRequestedRegion();
}
template <class TImage>
......
......@@ -187,11 +187,8 @@ PipelineMemoryPrintCalculator
it != imageList->End(); ++it) \
{ \
if(it.Get()->GetSource()) \
{ \
it.Get()->PropagateRequestedRegion(); \
print += this->EvaluateProcessObjectPrintRecursive(it.Get()->GetSource());\
} \
else \
else \
print += this->EvaluateDataObjectPrint(it.Get()); \
} \
return print; \
......
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