ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkPathToPathFilter.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 __itkPathToPathFilter_h
19 #define __itkPathToPathFilter_h
20 
21 #include "itkPathSource.h"
22 
23 namespace itk
24 {
36 template< typename TInputPath, typename TOutputPath >
37 class PathToPathFilter:public PathSource< TOutputPath >
38 {
39 public:
45 
47  itkNewMacro(Self);
48 
50  itkTypeMacro(PathToPathFilter, PathSource);
51 
53  typedef TInputPath InputPathType;
54  typedef typename InputPathType::Pointer InputPathPointer;
55  typedef typename InputPathType::ConstPointer InputPathConstPointer;
56 
59  virtual void SetInput(const InputPathType *path);
60 
61  virtual void SetInput(unsigned int, const TInputPath *path);
62 
63  const InputPathType * GetInput(void);
64 
65  const InputPathType * GetInput(unsigned int idx);
66 
67 protected:
70 
71  virtual void PrintSelf(std::ostream & os, Indent indent) const;
72 
80  virtual void GenerateInputRequestedRegion();
81 
82 private:
83  PathToPathFilter(const Self &); //purposely not implemented
84  void operator=(const Self &); //purposely not implemented
85 };
86 } // end namespace itk
87 
88 #ifndef ITK_MANUAL_INSTANTIATION
89 #include "itkPathToPathFilter.hxx"
90 #endif
91 
92 #endif
Light weight base class for most itk classes.
PathSource< TOutputPath > Superclass
Base class for all process objects that output path data.
Definition: itkPathSource.h:41
virtual void SetInput(const InputPathType *path)
const InputPathType * GetInput(void)
InputPathType::ConstPointer InputPathConstPointer
SmartPointer< Self > Pointer
void operator=(const Self &)
InputPathType::Pointer InputPathPointer
virtual void PrintSelf(std::ostream &os, Indent indent) const
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
virtual void GenerateInputRequestedRegion()
Base class for filters that take a path as input and produce a path as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer