ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkZeroFluxNeumannBoundaryCondition.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkZeroFluxNeumannBoundaryCondition_h
19 #define __itkZeroFluxNeumannBoundaryCondition_h
21 
22 namespace itk
23 {
57 template< class TInputImage, class TOutputImage = TInputImage >
59  public ImageBoundaryCondition< TInputImage, TOutputImage >
60 {
61 public:
65 
67  typedef typename Superclass::PixelType PixelType;
71  typedef typename Superclass::IndexType IndexType;
72  typedef typename Superclass::SizeType SizeType;
75 
78 
80  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
81 
84 
86  virtual const char * GetNameOfClass() const
87  {
88  return "itkZeroFluxNeumannBoundaryCondition";
89  }
90 
93  virtual OutputPixelType operator()(const OffsetType & point_index,
94  const OffsetType & boundary_offset,
95  const NeighborhoodType *data) const;
96 
99  virtual OutputPixelType operator()(
100  const OffsetType & point_index,
101  const OffsetType & boundary_offset,
102  const NeighborhoodType *data,
103  const NeighborhoodAccessorFunctorType & neighborhoodAccessorFunctor) const;
104 
116  virtual RegionType GetInputRequestedRegion( const RegionType & inputLargestPossibleRegion,
117  const RegionType & outputRequestedRegion ) const;
118 
126  OutputPixelType GetPixel( const IndexType & index, const TInputImage * image ) const;
127 
128 };
129 } // end namespace itk
130 
131 // Define instantiation macro for this template.
132 #define ITK_TEMPLATE_ZeroFluxNeumannBoundaryCondition(_, EXPORT, TypeX, TypeY) \
133  namespace itk \
134  { \
135  _( 1 ( class EXPORT ZeroFluxNeumannBoundaryCondition< ITK_TEMPLATE_1 TypeX > ) ) \
136  namespace Templates \
137  { \
138  typedef ZeroFluxNeumannBoundaryCondition< ITK_TEMPLATE_1 TypeX > \
139  ZeroFluxNeumannBoundaryCondition##TypeY; \
140  } \
141  }
142 
143 #if ITK_TEMPLATE_EXPLICIT
144 #include "Templates/itkZeroFluxNeumannBoundaryCondition+-.h"
145 #endif
146 
147 #if ITK_TEMPLATE_TXX
148 #include "itkZeroFluxNeumannBoundaryCondition.hxx"
149 #endif
150 
151 /*
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkZeroFluxNeumannBoundaryCondition.hxx"
154 #endif
155 */
156 
157 #endif
158