[Insight-developers] itkMacros for ConstPointers

Miller, James V (CRD) millerjv@crd.ge.com
Thu, 3 May 2001 14:29:35 -0400


Luis,

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.

Jim



-----Original Message-----
From: Luis Ibanez [mailto:ibanez@choroid.cs.unc.edu]
Sent: Thursday, May 03, 2001 1:38 PM
To: insight-Developers
Subject: [Insight-developers] itkMacros for ConstPointers



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





_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers