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 __itkPathAndImageToPathFilter_h 00019 #define __itkPathAndImageToPathFilter_h 00020 00021 #include "itkPathToPathFilter.h" 00022 00023 namespace itk 00024 { 00037 template< class TInputPath, class TInputImage, class TOutputPath > 00038 class ITK_EXPORT PathAndImageToPathFilter: 00039 public PathToPathFilter< TInputPath, TOutputPath > 00040 { 00041 public: 00043 typedef PathAndImageToPathFilter Self; 00044 typedef PathToPathFilter< TInputPath, TOutputPath > Superclass; 00045 typedef SmartPointer< Self > Pointer; 00046 typedef SmartPointer< const Self > ConstPointer; 00047 00049 itkNewMacro(Self); 00050 00052 itkTypeMacro(PathAndImageToPathFilter, PathToPathFilter); 00053 00055 typedef TInputPath InputPathType; 00056 typedef typename InputPathType::Pointer InputPathPointer; 00057 typedef typename InputPathType::ConstPointer InputPathConstPointer; 00058 typedef typename InputPathType::InputType InputPathInputType; 00059 typedef typename InputPathType::OutputType InputPathOutputType; 00060 typedef typename InputPathType::IndexType InputPathIndexType; 00061 typedef typename InputPathType::OffsetType InputPathOffsetType; 00062 typedef TInputImage InputImageType; 00063 typedef typename InputImageType::ConstPointer InputImagePointer; 00064 typedef typename InputImageType::RegionType InputImageRegionType; 00065 typedef typename InputImageType::PixelType InputImagePixelType; 00066 typedef TOutputPath OutputPathType; 00067 typedef typename OutputPathType::Pointer OutputPathPointer; 00068 typedef typename OutputPathType::InputType OutputPathInputType; 00069 typedef typename OutputPathType::OutputType OutputPathOutputType; 00070 typedef typename OutputPathType::IndexType OutputPathIndexType; 00071 typedef typename OutputPathType::OffsetType OutputPathOffsetType; 00072 00074 itkStaticConstMacro(InputImageDimension, unsigned int, 00075 TInputImage::ImageDimension); 00076 00078 virtual void SetPathInput(const TInputPath *path); 00079 00080 const InputPathType * GetPathInput(void); 00081 00083 virtual void SetImageInput(const TInputImage *image); 00084 00085 const InputImageType * GetImageInput(void); 00086 00087 protected: 00088 PathAndImageToPathFilter(); 00089 virtual ~PathAndImageToPathFilter() {} 00090 00091 virtual void PrintSelf(std::ostream & os, Indent indent) const; 00092 00100 virtual void GenerateInputRequestedRegion(); 00101 00102 private: 00103 PathAndImageToPathFilter(const Self &); //purposely not implemented 00104 void operator=(const Self &); //purposely not implemented 00105 }; 00106 } // end namespace itk 00107 00108 #ifndef ITK_MANUAL_INSTANTIATION 00109 #include "itkPathAndImageToPathFilter.hxx" 00110 #endif 00111 00112 #endif 00113