00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkZeroFluxNeumannBoundaryCondition.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/12/17 17:50:35 $ 00007 Version: $Revision: 1.11 $ 00008 00009 Copyright (c) 2002 Insight 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 __itkZeroFluxNeumannBoundaryCondition_h 00018 #define __itkZeroFluxNeumannBoundaryCondition_h 00019 #include "itkNeighborhood.h" 00020 #include "itkImageBoundaryCondition.h" 00021 00022 namespace itk 00023 { 00024 00057 template<class TImage> 00058 class ZeroFluxNeumannBoundaryCondition 00059 : public ImageBoundaryCondition<TImage> 00060 { 00061 public: 00063 typedef ZeroFluxNeumannBoundaryCondition Self; 00064 typedef ImageBoundaryCondition<TImage> Superclass; 00065 00067 typedef typename Superclass::PixelType PixelType; 00068 typedef typename Superclass::PixelPointerType PixelPointerType; 00069 typedef typename Superclass::IndexType IndexType; 00070 typedef typename Superclass::OffsetType OffsetType; 00071 typedef typename Superclass::NeighborhoodType NeighborhoodType; 00072 00074 itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension); 00075 00077 ZeroFluxNeumannBoundaryCondition() {} 00078 00081 virtual PixelType operator()(const OffsetType& point_index, 00082 const OffsetType& boundary_offset, 00083 const NeighborhoodType *data) const; 00084 }; 00085 00086 } // end namespace itk 00087 00088 #ifndef ITK_MANUAL_INSTANTIATION 00089 #include "itkZeroFluxNeumannBoundaryCondition.txx" 00090 #endif 00091 00092 #endif