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

itkShapedFloodFilledImageFunctionConditionalIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkShapedFloodFilledImageFunctionConditionalIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-28 16:16:26 $
00007   Version:   $Revision: 1.2 $
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 __itkShapedFloodFilledImageFunctionConditionalIterator_h
00018 #define __itkShapedFloodFilledImageFunctionConditionalIterator_h
00019 
00020 #include "itkShapedFloodFilledImageFunctionConditionalConstIterator.h"
00021 
00022 namespace itk
00023 {
00024 
00035 template<class TImage, class TFunction>
00036 class ITK_EXPORT ShapedFloodFilledImageFunctionConditionalIterator: public ShapedFloodFilledImageFunctionConditionalConstIterator<TImage, TFunction>
00037 {
00038 public:
00039 
00041   typedef ShapedFloodFilledImageFunctionConditionalIterator Self;
00042   typedef ShapedFloodFilledImageFunctionConditionalConstIterator<TImage, TFunction> Superclass;
00043 
00045   typedef typename Superclass::FunctionType FunctionType;
00046 
00048   typedef typename Superclass::FunctionInputType FunctionInputType;
00049 
00051   typedef typename Superclass::IndexType  IndexType;
00052 
00054   typedef typename Superclass::SizeType    SizeType;
00055 
00057   typedef typename Superclass::RegionType    RegionType;
00058 
00060   typedef typename Superclass::ImageType   ImageType;
00061 
00063   typedef typename Superclass::InternalPixelType   InternalPixelType;
00064 
00066   typedef typename Superclass::PixelType   PixelType;
00067 
00072   itkStaticConstMacro(NDimensions, unsigned int, Superclass::NDimensions);
00073 
00077   ShapedFloodFilledImageFunctionConditionalIterator(ImageType *imagePtr,
00078                                      FunctionType *fnPtr,
00079                                      IndexType startIndex): Superclass(imagePtr, fnPtr, startIndex) {};
00080 
00084   ShapedFloodFilledImageFunctionConditionalIterator(ImageType *imagePtr,
00085                                      FunctionType *fnPtr,
00086                                      std::vector<IndexType>& startIndex): Superclass(imagePtr, fnPtr, startIndex) {};
00087 
00091   ShapedFloodFilledImageFunctionConditionalIterator(ImageType *imagePtr,
00092                                      FunctionType *fnPtr): Superclass(imagePtr, fnPtr) {};
00093 
00095   const PixelType & Get(void) const
00096     { return const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ); }
00097 
00099   void Set( const PixelType & value)
00100     { const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ) = value; }
00101 
00103   virtual ~ShapedFloodFilledImageFunctionConditionalIterator() {};
00104 };
00105 
00106 } // end namespace itk
00107 
00108 #endif 
00109 

Generated at Thu May 28 11:36:14 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000