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

itkFloodFilledSpatialFunctionConditionalIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFloodFilledSpatialFunctionConditionalIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/12/11 20:29:18 $
00007   Version:   $Revision: 1.25 $
00008 
00009   Copyright (c) Insight Software 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 __itkFloodFilledSpatialFunctionConditionalIterator_h
00018 #define __itkFloodFilledSpatialFunctionConditionalIterator_h
00019 
00020 #include "itkFloodFilledSpatialFunctionConditionalConstIterator.h"
00021 
00022 namespace itk
00023 {
00024 
00032 template<class TImage, class TFunction>
00033 class ITK_EXPORT FloodFilledSpatialFunctionConditionalIterator: public FloodFilledSpatialFunctionConditionalConstIterator<TImage, TFunction>
00034 {
00035 public:
00036 
00038   typedef FloodFilledSpatialFunctionConditionalIterator Self;
00039   typedef FloodFilledSpatialFunctionConditionalConstIterator<TImage, TFunction> Superclass;
00040 
00042   typedef typename Superclass::FunctionType FunctionType;
00043 
00045   typedef typename Superclass::FunctionInputType FunctionInputType;
00046 
00048   typedef typename Superclass::IndexType  IndexType;
00049 
00051   typedef typename Superclass::SizeType    SizeType;
00052 
00054   typedef typename Superclass::RegionType    RegionType;
00055 
00057   typedef typename Superclass::ImageType   ImageType;
00058 
00060   typedef typename Superclass::InternalPixelType   InternalPixelType;
00061 
00063   typedef typename Superclass::PixelType   PixelType;
00064 
00068   FloodFilledSpatialFunctionConditionalIterator(ImageType *imagePtr,
00069                                      FunctionType *fnPtr,
00070                                      IndexType startIndex): Superclass(imagePtr, fnPtr, startIndex) {}
00071 
00075   FloodFilledSpatialFunctionConditionalIterator(ImageType *imagePtr,
00076                                      FunctionType *fnPtr): Superclass(imagePtr, fnPtr) {}
00077 
00079   const PixelType & Get(void) const
00080     { return const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ); }
00081 
00083   PixelType & Get(void)
00084     { return const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ); }
00085 
00087   void Set( const PixelType & value)
00088     { const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ) = value; }
00089 
00091   virtual ~FloodFilledSpatialFunctionConditionalIterator() {};
00092 };
00093 
00094 } // end namespace itk
00095 
00096 #endif 
00097 

Generated at Wed Nov 5 21:32:14 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000