ITK  4.13.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< typename TInputPath, typename TInputImage, typename TOutputPath >
38 class ITK_TEMPLATE_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;
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();
81 
83  virtual void SetImageInput(const TInputImage *image);
84 
85  const InputImageType * GetImageInput();
86 
87 protected:
89  virtual ~PathAndImageToPathFilter() ITK_OVERRIDE {}
90 
91  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
92 
100  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
101 
102 private:
103  ITK_DISALLOW_COPY_AND_ASSIGN(PathAndImageToPathFilter);
104 };
105 } // end namespace itk
106 
107 #ifndef ITK_MANUAL_INSTANTIATION
108 #include "itkPathAndImageToPathFilter.hxx"
109 #endif
110 
111 #endif
Light weight base class for most itk classes.
Represent the offset between two n-dimensional indexes in a n-dimensional image.
Definition: itkOffset.h:56
OutputPathType::IndexType OutputPathIndexType
PathToPathFilter< TInputPath, TOutputPath > Superclass
InputPathType::OutputType InputPathOutputType
Base class for filters that take both a path and an image as input and produce a path as output...
OutputPathType::InputType OutputPathInputType
InputPathType::OffsetType InputPathOffsetType
InputPathType::InputType InputPathInputType
InputPathType::ConstPointer InputPathConstPointer
OutputPathType::OutputType OutputPathOutputType
Base class for filters that take a path as input and produce a path as output.
InputImageType::ConstPointer InputImagePointer
OutputPathType::OffsetType OutputPathOffsetType
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
InputPathType::IndexType InputPathIndexType
InputImageType::PixelType InputImagePixelType
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:72
InputImageType::RegionType InputImageRegionType