[Insight-developers] ConstShapedNeighborhoodIterator inheritance

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Sun Oct 9 16:10:38 EDT 2005


Hi,

ConstShapedNeighborhoodIterator is a subclass of NeighborhoodIterator. Sadely, 
all members of the superclass are private:

class ITK_EXPORT ConstShapedNeighborhoodIterator
  :  private NeighborhoodIterator<TImage, TBoundaryCondition>

It prevent usage of Set/GetCenterPixel() methods, which  is really annoying. 
Is there a good reason to do that ?
Is it possible to switch to a public inheritance ?

class ITK_EXPORT ConstShapedNeighborhoodIterator
  :  public NeighborhoodIterator<TImage, TBoundaryCondition>

Thanks,

Gaetan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20051009/a1b6f9f6/attachment.pgp


More information about the Insight-developers mailing list