[Insight-developers] itkMacros for ConstPointers
Luis Ibanez
ibanez@cs.unc.edu
Fri, 04 May 2001 11:30:37 -0400
"Miller, James V (CRD)" wrote:
> While a filter does not modify is input bulk data, a filter does cause the input to be modified (in
> terms of requested regions, etc.). If the inputs to a filter are made to be const pointers, then
> we'll need to make some of these control structures mutable.
>
Agree,
Declaring the three types of regions as mutable
seems to be reasonable. Anyway, if an image is
used as input for three different filters, each
filter can independently change the 'requested'
region for the image, and that should not trigger
an update in the other two filters. That means
also that changes in regions should not require
to call Modified().
Can this changes in the code be done without
breaking the pipeline mechanisms ?
I would find interesting to modify itkProcessObject
itself to make m_Inputs a list of ConstPointers to
ObjectData.
Luis