ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkPathToPathFilter_h 00019 #define __itkPathToPathFilter_h 00020 00021 #include "itkPathSource.h" 00022 00023 namespace itk 00024 { 00036 template< class TInputPath, class TOutputPath > 00037 class ITK_EXPORT PathToPathFilter:public PathSource< TOutputPath > 00038 { 00039 public: 00041 typedef PathToPathFilter Self; 00042 typedef PathSource< TOutputPath > Superclass; 00043 typedef SmartPointer< Self > Pointer; 00044 typedef SmartPointer< const Self > ConstPointer; 00045 00047 itkNewMacro(Self); 00048 00050 itkTypeMacro(PathToPathFilter, PathSource); 00051 00053 typedef TInputPath InputPathType; 00054 typedef typename InputPathType::Pointer InputPathPointer; 00055 typedef typename InputPathType::ConstPointer InputPathConstPointer; 00056 00058 using Superclass::SetInput; 00059 virtual void SetInput(const InputPathType *path); 00060 00061 virtual void SetInput(unsigned int, const TInputPath *path); 00062 00063 const InputPathType * GetInput(void); 00064 00065 const InputPathType * GetInput(unsigned int idx); 00066 00067 protected: 00068 PathToPathFilter(); 00069 ~PathToPathFilter() {} 00070 00071 virtual void PrintSelf(std::ostream & os, Indent indent) const; 00072 00080 virtual void GenerateInputRequestedRegion(); 00081 00082 private: 00083 PathToPathFilter(const Self &); //purposely not implemented 00084 void operator=(const Self &); //purposely not implemented 00085 }; 00086 } // end namespace itk 00087 00088 #ifndef ITK_MANUAL_INSTANTIATION 00089 #include "itkPathToPathFilter.hxx" 00090 #endif 00091 00092 #endif 00093