Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkConstRandomAccessNeighborhoodIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkConstRandomAccessNeighborhoodIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/12/11 17:43:46 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkConstRandomAccessNeighborhoodIterator_h
00018 #define __itkConstRandomAccessNeighborhoodIterator_h
00019 
00020 #include "itkMacro.h"
00021 #include "itkConstNeighborhoodIterator.h"
00022 
00023 namespace itk {
00024 
00040 template<class TImage>
00041 class ITK_EXPORT ConstRandomAccessNeighborhoodIterator
00042   :  public ConstNeighborhoodIterator<TImage>
00043 {
00044 public:
00046   typedef ConstRandomAccessNeighborhoodIterator Self;
00047   typedef ConstNeighborhoodIterator<TImage> Superclass;
00048   
00050   typedef typename Superclass::InternalPixelType InternalPixelType;
00051   typedef typename Superclass::PixelType  PixelType;
00052   typedef typename Superclass::SizeType   SizeType;
00053   typedef typename Superclass::SizeValueType SizeValueType;
00054   typedef typename Superclass::ImageType  ImageType;
00055   typedef typename Superclass::RegionType RegionType;
00056   typedef typename Superclass::IndexType  IndexType;
00057   typedef typename Superclass::IndexValueType IndexValueType;
00058   typedef typename Superclass::OffsetType OffsetType;
00059   typedef typename Superclass::OffsetValueType OffsetValueType;
00060   typedef typename Superclass::RadiusType RadiusType;
00061   typedef typename Superclass::NeighborhoodType NeighborhoodType;
00062   itkStaticConstMacro(Dimension, unsigned int, Superclass::Dimension);
00063   typedef typename Superclass::Iterator      Iterator;
00064   typedef typename Superclass::ConstIterator ConstIterator;
00065   typedef typename Superclass::ImageBoundaryConditionPointerType
00066    ImageBoundaryConditionPointerType;
00067     
00069   ConstRandomAccessNeighborhoodIterator()
00070     : Superclass()
00071   {  itkGenericOutputMacro( << "The ConstRandomAccessNeighborhood is deprecated and will be removed.  Use ConstNeighborhoodIterator instead"); }
00072 
00074   virtual ~ConstRandomAccessNeighborhoodIterator() {}
00075   
00077   ConstRandomAccessNeighborhoodIterator( const
00078                                          ConstRandomAccessNeighborhoodIterator
00079                                          &orig )
00080     : Superclass(orig)
00081     { itkGenericOutputMacro( << "The ConstRandomAccessNeighborhood iterator is deprecated and will be removed.  Please use the ConstNeighborhoodIterator instead."); }
00082   
00085   ConstRandomAccessNeighborhoodIterator(const SizeType &radius,
00086                        const ImageType * ptr,
00087                        const RegionType &region
00088                                         )
00089     : Superclass(radius, ptr, region)
00090      { itkGenericOutputMacro( << "The ConstRandomAccessNeighborhood iterator is deprecated and will be removed.  Please use the NeighborhoodIterator instead."); }
00091 
00093   Self &operator=(const Self& orig)
00094     {
00095     Superclass::operator=(orig);
00096     return *this;
00097     }
00098 
00100   virtual void PrintSelf(std::ostream &, Indent) const;
00101 
00102 };
00103   
00104 } // namespace itk
00105 
00106 
00107 #ifndef ITK_MANUAL_INSTANTIATION
00108 #include "itkConstRandomAccessNeighborhoodIterator.txx"
00109 #endif
00110 
00111 #endif

Generated at Fri May 21 01:14:34 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000