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 __itkShapedFloodFilledImageFunctionConditionalConstIterator_h 00019 #define __itkShapedFloodFilledImageFunctionConditionalConstIterator_h 00020 00021 #include "itkShapedFloodFilledFunctionConditionalConstIterator.h" 00022 00023 namespace itk 00024 { 00037 template< class TImage, class TFunction > 00038 class ITK_EXPORT ShapedFloodFilledImageFunctionConditionalConstIterator: 00039 public ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction > 00040 { 00041 public: 00042 00044 typedef ShapedFloodFilledImageFunctionConditionalConstIterator 00045 Self; 00046 typedef ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction > 00047 Superclass; 00048 00050 typedef typename Superclass::FunctionType FunctionType; 00051 00053 typedef typename Superclass::FunctionInputType FunctionInputType; 00054 00056 typedef typename Superclass::IndexType IndexType; 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 ShapedFloodFilledImageFunctionConditionalConstIterator( 00083 const ImageType *imagePtr, 00084 FunctionType *fnPtr, 00085 IndexType startIndex):Superclass(imagePtr, 00086 fnPtr, 00087 startIndex) {} 00088 00092 ShapedFloodFilledImageFunctionConditionalConstIterator( 00093 const ImageType *imagePtr, 00094 FunctionType *fnPtr, 00095 std::vector< IndexType > & startIndex):Superclass(imagePtr, 00096 fnPtr, 00097 startIndex) {} 00098 00102 ShapedFloodFilledImageFunctionConditionalConstIterator( 00103 const ImageType *imagePtr, 00104 FunctionType *fnPtr):Superclass(imagePtr, 00105 fnPtr) {} 00106 00108 virtual ~ShapedFloodFilledImageFunctionConditionalConstIterator() {} 00109 00111 bool IsPixelIncluded(const IndexType & index) const; 00112 }; 00113 } // end namespace itk 00114 00115 #ifndef ITK_MANUAL_INSTANTIATION 00116 #include "itkShapedFloodFilledImageFunctionConditionalConstIterator.hxx" 00117 #endif 00118 00119 #endif 00120