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

tests/itkreader/itkVTKImageToImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVTKImageToImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/04/25 21:35:10 $
00007   Version:   $Revision: 1.5 $
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 __itkVTKImageToImageFilter_h
00018 #define __itkVTKImageToImageFilter_h
00019 
00020 #include "itkVTKImageImport.h"
00021 #include "vtkImageExport.h"
00022 #include "vtkImageData.h"
00023 
00024 #ifndef vtkFloatingPointType
00025 #define vtkFloatingPointType float
00026 #endif
00027 
00028 namespace itk
00029 {
00030   
00043 template <class TOutputImage >
00044 class ITK_EXPORT VTKImageToImageFilter : public ProcessObject
00045 {
00046 public:
00048   typedef VTKImageToImageFilter       Self;
00049   typedef ProcessObject             Superclass;
00050   typedef SmartPointer<Self>        Pointer;
00051   typedef SmartPointer<const Self>  ConstPointer;
00052 
00054   itkNewMacro(Self);
00055   
00057   itkTypeMacro(VTKImageToImageFilter, ProcessObject);
00058 
00060   typedef TOutputImage OutputImageType;
00061   typedef typename    OutputImageType::ConstPointer    OutputImagePointer;
00062   typedef VTKImageImport< OutputImageType >   ImporterFilterType; 
00063   typedef typename ImporterFilterType::Pointer         ImporterFilterPointer;
00064  
00067   const OutputImageType *  GetOutput() const;
00068 
00070   void SetInput( vtkImageData * );
00071 
00075   vtkImageExport * GetExporter() const;
00076 
00080   ImporterFilterType * GetImporter() const;
00081   
00083   void Update();
00084   
00085 protected:
00086   VTKImageToImageFilter(); 
00087   virtual ~VTKImageToImageFilter(); 
00088 
00089 private:
00090   VTKImageToImageFilter(const Self&); //purposely not implemented
00091   void operator=(const Self&); //purposely not implemented
00092 
00093   ImporterFilterPointer       m_Importer;
00094   vtkImageExport            * m_Exporter;
00095 
00096 };
00097 
00098 } // end namespace itk
00099 
00100 #ifndef ITK_MANUAL_INSTANTIATION
00101 #include "itkVTKImageToImageFilter.txx"
00102 #endif
00103 
00104 #endif
00105 
00106 
00107 

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