• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

tests/itkreader/itkImageToVTKImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageToVTKImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/02/19 03:47:59 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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&); //purposely not implemented
00087   void operator=(const Self&); //purposely not implemented
00088 
00089   ExporterFilterPointer       m_Exporter;
00090   vtkImageImport            * m_Importer;
00091 
00092 };
00093 
00094 } // end namespace itk
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkImageToVTKImageFilter.cxx"
00098 #endif
00099 
00100 #endif
00101 
00102 
00103 

Generated on Wed Sep 8 2010 01:36:51 for DGV by  doxygen 1.7.1