Skip to content
Snippets Groups Projects
Commit 0b5efcd9 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

ENH: Overwrite GetOutput() and manually trigger Update() before returning output

TODO: Superclass GetOutput() does not trigger Update() as it should
parent 194774fc
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,13 @@ public:
itkGetConstMacro( LogToFile, bool );
itkBooleanMacro( LogToFile );
// TODO: Superclass GetOutput() does not trigger an Update() by itself as it should
TFixedImage* GetOutput()
{
this->Update();
return static_cast< TFixedImage* >( itk::ProcessObject::GetPrimaryOutput() );
}
protected:
void GenerateData( void ) ITK_OVERRIDE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment