ITK  4.8.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 >
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();
81 
83  virtual void SetImageInput(const TInputImage *image);
84 
85  const InputImageType * GetImageInput();
86 
87 protected:
90 
91  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
92 
100  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
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
Light weight base class for most itk classes.
Represent the offset between two n-dimensional indexes in a n-dimensional image.
Definition: itkOffset.h:55
OutputPathType::IndexType OutputPathIndexType
PathToPathFilter< TInputPath, TOutputPath > Superclass
InputPathType::OutputType InputPathOutputType
virtual void SetImageInput(const TInputImage *image)
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
virtual void GenerateInputRequestedRegion() override
InputPathType::ConstPointer InputPathConstPointer
virtual void SetPathInput(const TInputPath *path)
const InputImageType * GetImageInput()
OutputPathType::OutputType OutputPathOutputType
Base class for filters that take a path as input and produce a path as output.
static const unsigned int InputImageDimension
InputImageType::ConstPointer InputImagePointer
OutputPathType::OffsetType OutputPathOffsetType
SmartPointer< const Self > ConstPointer
virtual void PrintSelf(std::ostream &os, Indent indent) const override
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:71
InputImageType::RegionType InputImageRegionType
const InputPathType * GetPathInput()