ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkImageAndPathToImageFilter.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 __itkImageAndPathToImageFilter_h
19 #define __itkImageAndPathToImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
38 template< class TInputImage, class TInputPath, class TOutputImage >
39 class ITK_EXPORT ImageAndPathToImageFilter:
40  public ImageToImageFilter< TInputImage, TOutputImage >
41 {
42 public:
48 
50  itkNewMacro(Self);
51 
54 
56  typedef TInputImage InputImageType;
57  typedef typename InputImageType::ConstPointer InputImagePointer;
58  typedef typename InputImageType::RegionType InputImageRegionType;
59  typedef typename InputImageType::PixelType InputImagePixelType;
60  typedef TInputPath InputPathType;
67  typedef TOutputImage OutputImageType;
68  typedef typename OutputImageType::Pointer OutputImagePointer;
69  typedef typename OutputImageType::RegionType OutputImageRegionType;
70  typedef typename OutputImageType::PixelType OutputImagePixelType;
71 
73  itkStaticConstMacro(InputImageDimension, unsigned int,
74  TInputImage::ImageDimension);
75  itkStaticConstMacro(OutputImageDimension, unsigned int,
76  TOutputImage::ImageDimension);
78 
80  virtual void SetImageInput(const TInputImage *image);
81 
82  const InputImageType * GetImageInput(void);
83 
85  virtual void SetPathInput(const TInputPath *path);
86 
87  const InputPathType * GetPathInput(void);
88 
89 protected:
92 
93  virtual void PrintSelf(std::ostream & os, Indent indent) const;
94 
95 private:
96  ImageAndPathToImageFilter(const Self &); //purposely not implemented
97  void operator=(const Self &); //purposely not implemented
98 };
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkImageAndPathToImageFilter.hxx"
103 #endif
104 
105 #endif
106