-
-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add and use ProcessObject::MakeRequiredOutputs
#4688
Add and use ProcessObject::MakeRequiredOutputs
#4688
Conversation
c0c14a0
to
b23ad5b
Compare
cafc8f5
to
5d3c7ca
Compare
/azp run ITK.Windows |
Meant to be used in constructors of derived classes that would otherwise directly call `MakeOutput` for each of their required outputs.
Paved the way for those filters to use `ProcessObject::MakeRequiredOutputs`. `MakeOutput` member functions are usually declared public, rather than protected.
Reduced amount of duplicate code in constructors that "make" all of their required outputs.
5d3c7ca
to
ddbed4a
Compare
ProcessObject::SetRequiredOutputs
ProcessObject::MakeRequiredOutputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@blowekamp Brad would you mind double checking that this looks OK? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some cases there the correct derive MakeOutput is no longer called.
Modules/Filtering/DistanceMap/include/itkDanielssonDistanceMapImageFilter.hxx
Show resolved
Hide resolved
Modules/Filtering/DistanceMap/include/itkDanielssonDistanceMapImageFilter.hxx
Show resolved
Hide resolved
abb5928
into
InsightSoftwareConsortium:master
SetNthOutput(i, MakeOutput(i))
in afor
loop #4687