ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkPathAndImageToPathFilter.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 __itkPathAndImageToPathFilter_h
19 #define __itkPathAndImageToPathFilter_h
20 
21 #include "itkPathToPathFilter.h"
22 
23 namespace itk
24 {
37 template< class TInputPath, class TInputImage, class TOutputPath >
38 class ITK_EXPORT PathAndImageToPathFilter:
39  public PathToPathFilter< TInputPath, TOutputPath >
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
55  typedef TInputPath InputPathType;
56  typedef typename InputPathType::Pointer InputPathPointer;
57  typedef typename InputPathType::ConstPointer InputPathConstPointer;
58  typedef typename InputPathType::InputType InputPathInputType;
59  typedef typename InputPathType::OutputType InputPathOutputType;
60  typedef typename InputPathType::IndexType InputPathIndexType;
61  typedef typename InputPathType::OffsetType InputPathOffsetType;
62  typedef TInputImage InputImageType;
63  typedef typename InputImageType::ConstPointer InputImagePointer;
64  typedef typename InputImageType::RegionType InputImageRegionType;
65  typedef typename InputImageType::PixelType InputImagePixelType;
66  typedef TOutputPath OutputPathType;
72 
74  itkStaticConstMacro(InputImageDimension, unsigned int,
75  TInputImage::ImageDimension);
76 
78  virtual void SetPathInput(const TInputPath *path);
79 
80  const InputPathType * GetPathInput(void);
81 
83  virtual void SetImageInput(const TInputImage *image);
84 
85  const InputImageType * GetImageInput(void);
86 
87 protected:
90 
91  virtual void PrintSelf(std::ostream & os, Indent indent) const;
92 
100  virtual void GenerateInputRequestedRegion();
101 
102 private:
103  PathAndImageToPathFilter(const Self &); //purposely not implemented
104  void operator=(const Self &); //purposely not implemented
105 };
106 } // end namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "itkPathAndImageToPathFilter.hxx"
110 #endif
111 
112 #endif
113