Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkZeroFluxNeumannBoundaryCondition.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkZeroFluxNeumannBoundaryCondition.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-06-09 13:52:32 $
00007   Version:   $Revision: 1.21 $
00008 
00009   Copyright (c) Insight Software 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 ITK_EXPORT  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 
00073   typedef typename Superclass::NeighborhoodAccessorFunctorType 
00074                                  NeighborhoodAccessorFunctorType;
00075   
00077   itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00078 
00080   ZeroFluxNeumannBoundaryCondition() {}
00081 
00084   virtual PixelType operator()(const OffsetType& point_index,
00085                                const OffsetType& boundary_offset,
00086                                const NeighborhoodType *data) const;
00087 
00090   virtual PixelType operator()(
00091       const OffsetType& point_index,
00092       const OffsetType& boundary_offset,
00093       const NeighborhoodType *data,
00094       const NeighborhoodAccessorFunctorType &neighborhoodAccessorFunctor) const;
00095 };
00097 
00098 } // end namespace itk
00099 
00100 // Define instantiation macro for this template.
00101 #define ITK_TEMPLATE_ZeroFluxNeumannBoundaryCondition(_, EXPORT, x, y) namespace itk { \
00102   _(1(class EXPORT ZeroFluxNeumannBoundaryCondition< ITK_TEMPLATE_1 x >)) \
00103   namespace Templates { typedef ZeroFluxNeumannBoundaryCondition< ITK_TEMPLATE_1 x > \
00104                                                   ZeroFluxNeumannBoundaryCondition##y; } \
00105   }
00106 
00107 #if ITK_TEMPLATE_EXPLICIT
00108 # include "Templates/itkZeroFluxNeumannBoundaryCondition+-.h"
00109 #endif
00110 
00111 #if ITK_TEMPLATE_TXX
00112 # include "itkZeroFluxNeumannBoundaryCondition.txx"
00113 #endif
00114 
00115 /*
00116 #ifndef ITK_MANUAL_INSTANTIATION
00117 #include "itkZeroFluxNeumannBoundaryCondition.txx"
00118 #endif
00119 */
00120 
00121 #endif
00122 

Generated at Wed Jul 30 00:08:27 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000