00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkFloodFilledSpatialFunctionConditionalConstIterator_h
00018 #define __itkFloodFilledSpatialFunctionConditionalConstIterator_h
00019
00020 #include "itkFloodFilledFunctionConditionalConstIterator.h"
00021
00022 namespace itk
00023 {
00024
00032 template<class TImage, class TFunction>
00033 class ITK_EXPORT FloodFilledSpatialFunctionConditionalConstIterator: public FloodFilledFunctionConditionalConstIterator<TImage, TFunction>
00034 {
00035 public:
00037 typedef FloodFilledSpatialFunctionConditionalConstIterator Self;
00038 typedef FloodFilledFunctionConditionalConstIterator<TImage, TFunction> Superclass;
00039
00041 typedef typename Superclass::FunctionType FunctionType;
00042
00044 typedef typename Superclass::FunctionInputType FunctionInputType;
00045
00047 typedef typename Superclass::IndexType IndexType;
00048
00050 typedef typename Superclass::SizeType SizeType;
00051
00053 typedef typename Superclass::RegionType RegionType;
00054
00056 typedef typename Superclass::ImageType ImageType;
00057
00059 typedef typename Superclass::InternalPixelType InternalPixelType;
00060
00062 typedef typename Superclass::PixelType PixelType;
00063
00067 FloodFilledSpatialFunctionConditionalConstIterator(const ImageType *imagePtr,
00068 FunctionType *fnPtr,
00069 IndexType startIndex);
00070
00074 FloodFilledSpatialFunctionConditionalConstIterator(const ImageType *imagePtr,
00075 FunctionType *fnPtr);
00077 virtual ~FloodFilledSpatialFunctionConditionalConstIterator() {};
00078
00080 bool IsPixelIncluded(const IndexType & index) const;
00081
00083 void SetOriginInclusionStrategy() { m_InclusionStrategy = 0; }
00084
00086 void SetCenterInclusionStrategy() { m_InclusionStrategy = 1; }
00087
00089 void SetCompleteInclusionStrategy() { m_InclusionStrategy = 2; }
00090
00092 void SetIntersectInclusionStrategy() { m_InclusionStrategy = 3; }
00093
00094 protected:
00095
00107 unsigned char m_InclusionStrategy;
00108
00109 };
00110
00111 }
00112
00113 #ifndef ITK_MANUAL_INSTANTIATION
00114 #include "itkFloodFilledSpatialFunctionConditionalConstIterator.txx"
00115 #endif
00116
00117 #endif