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

itkConstSmartNeighborhoodIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkConstSmartNeighborhoodIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/12/17 17:50:35 $
00007   Version:   $Revision: 1.13 $
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 __itkConstSmartNeighborhoodIterator_h
00018 #define __itkConstSmartNeighborhoodIterator_h
00019 
00020 #include "itkConstNeighborhoodIterator.h"
00021 #include "itkZeroFluxNeumannBoundaryCondition.h"
00022 
00023 namespace itk {
00024 
00040 template<class TImage, class TBoundaryCondition
00041                        = ZeroFluxNeumannBoundaryCondition<TImage>  >
00042 class ITK_EXPORT ConstSmartNeighborhoodIterator
00043   :  public ConstNeighborhoodIterator<TImage, TBoundaryCondition>
00044 {
00045 public:
00047   typedef ConstSmartNeighborhoodIterator Self;
00048   typedef ConstNeighborhoodIterator<TImage> Superclass;
00049   
00051   typedef typename Superclass::InternalPixelType InternalPixelType;
00052   typedef typename Superclass::PixelType PixelType;
00053     
00055   itkStaticConstMacro(Dimension, unsigned int,Superclass::Dimension);
00056 
00058   typedef typename Superclass::ImageType ImageType;
00059   typedef typename Superclass::RegionType RegionType;
00060   typedef typename Superclass::SizeType SizeType;
00061   typedef typename Superclass::SizeValueType SizeValueType;
00062   typedef typename Superclass::NeighborhoodType NeighborhoodType;
00063   typedef typename Superclass::IndexType IndexType;
00064   typedef typename Superclass::IndexValueType IndexValueType;
00065   typedef typename Superclass::OffsetType OffsetType;
00066   typedef typename Superclass::OffsetValueType OffsetValueType;
00067 
00069   typedef typename Superclass::ImageBoundaryConditionPointerType
00070          ImageBoundaryConditionPointerType;
00071 
00073   typedef TBoundaryCondition BoundaryConditionType;
00074   
00077   typedef typename Superclass::ConstIterator ConstIterator;
00078   
00080   ConstSmartNeighborhoodIterator()
00081     : Superclass()
00082   {
00083     itkGenericOutputMacro(<< "ConstSmartNeighborhoodIterator has been deprecated and will be removed.  Use ConstNeighborhoodIterator instead.");
00084     //for (unsigned int i=0; i < Dimension; i++)
00085     //       { m_InBounds[i] = false; }
00086     //    this->ResetBoundaryCondition();
00087     //    m_NeedToUseBoundaryCondition = true;
00088   }
00089 
00091   //  ConstSmartNeighborhoodIterator(const Self& orig);
00092 
00096   ConstSmartNeighborhoodIterator(const SizeType& radius,
00097                                  const ImageType *ptr,
00098                                  const RegionType& region)
00099     : Superclass(radius, ptr, region)
00100   {
00101     //this->Initialize(radius, ptr, region);
00102     //      for (unsigned int i=0; i < Dimension; i++)
00103     //         { m_InBounds[i] = false; }
00104     //      this->ResetBoundaryCondition();
00105     itkGenericOutputMacro(<< "ConstSmartNeighborhoodIterator has been deprecated and will be removed.  Use ConstNeighborhoodIterator instead.");
00106   }
00107 
00113   //  virtual void Initialize(const SizeType &radius, const ImageType *ptr,
00114   //                          const RegionType &region);
00115 
00117   Self &operator=(const Self& orig);
00118 
00121   //  virtual void PrintSelf(std::ostream &, Indent) const;
00122   
00124   //  const BoundaryConditionType *GetBoundaryCondition() const
00125   //    { return dynamic_cast<BoundaryConditionType *>(m_BoundaryCondition); }
00126   
00129   //  NeighborhoodType GetNeighborhood() const;
00130 
00134   //  virtual PixelType GetPixel(const unsigned long i) const;
00135 
00139   //  bool InBounds() const;
00140   
00146   //  virtual void OverrideBoundaryCondition(const ImageBoundaryConditionPointerType i)
00147   //    { m_BoundaryCondition = i; }
00148 
00151   //  virtual void ResetBoundaryCondition()
00152   //    { m_BoundaryCondition = &m_InternalBoundaryCondition;  }
00153 
00155   //  void SetBoundaryCondition( const TBoundaryCondition &c )
00156   //    { m_InternalBoundaryCondition = c; }
00157  
00158 protected:
00159   
00161   //  void SetBound(const SizeType&);
00162 
00167   //  ImageBoundaryConditionPointerType m_BoundaryCondition;  
00168 
00171   //  mutable bool m_InBounds[Dimension];
00172   
00174   //  IndexType m_InnerBoundsLow;
00175   
00177   //  IndexType m_InnerBoundsHigh;
00178   
00180   //  TBoundaryCondition m_InternalBoundaryCondition;
00181 
00183   //  bool m_NeedToUseBoundaryCondition;
00184   
00185 };
00186 
00187 } // namespace itk
00188 
00189 #ifndef ITK_MANUAL_INSTANTIATION
00190 #include "itkConstSmartNeighborhoodIterator.txx"
00191 #endif
00192 
00193 #endif 
00194 

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