ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkFloodFilledImageFunctionConditionalConstIterator_h 00019 #define __itkFloodFilledImageFunctionConditionalConstIterator_h 00020 00021 #include "itkFloodFilledFunctionConditionalConstIterator.h" 00022 00023 namespace itk 00024 { 00034 template< class TImage, class TFunction > 00035 class ITK_EXPORT FloodFilledImageFunctionConditionalConstIterator: 00036 public FloodFilledFunctionConditionalConstIterator< TImage, TFunction > 00037 { 00038 public: 00039 00041 typedef FloodFilledImageFunctionConditionalConstIterator 00042 Self; 00043 typedef FloodFilledFunctionConditionalConstIterator< TImage, TFunction > 00044 Superclass; 00045 00047 typedef typename Superclass::FunctionType FunctionType; 00048 00050 typedef typename Superclass::FunctionInputType FunctionInputType; 00051 00053 typedef typename Superclass::IndexType IndexType; 00054 00056 typedef typename Superclass::SeedsContainerType SeedsContainerType; 00057 00059 typedef typename Superclass::SizeType SizeType; 00060 00062 typedef typename Superclass::RegionType RegionType; 00063 00065 typedef typename Superclass::ImageType ImageType; 00066 00068 typedef typename Superclass::InternalPixelType InternalPixelType; 00069 00071 typedef typename Superclass::PixelType PixelType; 00072 00077 itkStaticConstMacro(NDimensions, unsigned int, Superclass::NDimensions); 00078 00082 FloodFilledImageFunctionConditionalConstIterator( 00083 const ImageType *imagePtr, 00084 FunctionType *fnPtr, 00085 IndexType startIndex):Superclass(imagePtr, 00086 fnPtr, 00087 startIndex) {} 00088 00092 FloodFilledImageFunctionConditionalConstIterator( 00093 const ImageType *imagePtr, 00094 FunctionType *fnPtr, 00095 std::vector< IndexType > & startIndex):Superclass(imagePtr, 00096 fnPtr, 00097 startIndex) {} 00098 00102 FloodFilledImageFunctionConditionalConstIterator( 00103 const ImageType *imagePtr, 00104 FunctionType *fnPtr):Superclass(imagePtr, 00105 fnPtr) {} 00106 00108 virtual ~FloodFilledImageFunctionConditionalConstIterator() {} 00109 00111 bool IsPixelIncluded(const IndexType & index) const; 00112 }; 00113 } // end namespace itk 00114 00115 #ifndef ITK_MANUAL_INSTANTIATION 00116 #include "itkFloodFilledImageFunctionConditionalConstIterator.hxx" 00117 #endif 00118 00119 #endif 00120