[Insight-developers] itkMacros for ConstPointers

Luis Ibanez ibanez@choroid.cs.unc.edu
Thu, 3 May 2001 13:37:53 -0400 (EDT)


Hi,

Two macros were added to itkMacro.h, they are

itkGetConstObjectMacro( name, type )
itkSetConstObjectMacro( name, type )

They use const pointers and ConstPointer to support
constness.  Our current Macros expect to have normal
pointers.  In principle most filter should only use
ConstPointer for their inputs, because they are not
expected to be modified when the filter is executed.

The classes in the registration framework are going
to be modified in order to use ConstPointers.
(eg. the Metrics are not expected to modify images,
and in general, a registration method is not supposed
to modify the images being registered [there are a
couple of exception to that] )



Luis