Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageToVTKImageFilter_h
00018 #define __itkImageToVTKImageFilter_h
00019
00020 #include "itkVTKImageExport.h"
00021 #include "vtkImageImport.h"
00022 #include "vtkImageData.h"
00023
00024 namespace itk
00025 {
00026
00039 template <class TInputImage >
00040 class ITK_EXPORT ImageToVTKImageFilter : public ProcessObject
00041 {
00042 public:
00044 typedef ImageToVTKImageFilter Self;
00045 typedef ProcessObject Superclass;
00046 typedef SmartPointer<Self> Pointer;
00047 typedef SmartPointer<const Self> ConstPointer;
00048
00050 itkNewMacro(Self);
00051
00053 itkTypeMacro(ImageToVTKImageFilter, ProcessObject);
00054
00056 typedef TInputImage InputImageType;
00057 typedef typename InputImageType::ConstPointer InputImagePointer;
00058 typedef VTKImageExport< InputImageType> ExporterFilterType;
00059 typedef typename ExporterFilterType::Pointer ExporterFilterPointer;
00060
00063 vtkImageData * GetOutput() const;
00064
00066 void SetInput( const InputImageType * );
00067
00071 vtkImageImport * GetImporter() const;
00072
00076 ExporterFilterType * GetExporter() const;
00077
00079 void Update();
00080
00081 protected:
00082 ImageToVTKImageFilter();
00083 virtual ~ImageToVTKImageFilter();
00084
00085 private:
00086 ImageToVTKImageFilter(const Self&);
00087 void operator=(const Self&);
00088
00089 ExporterFilterPointer m_Exporter;
00090 vtkImageImport * m_Importer;
00091
00092 };
00093
00094 }
00095
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkImageToVTKImageFilter.cxx"
00098 #endif
00099
00100 #endif
00101
00102
00103