Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 }
00107
00108 #endif
00109