Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkVTKImageExport.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVTKImageExport.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/02/18 22:48:38 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) Insight Software 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 __itkVTKImageExport_h
00018 #define __itkVTKImageExport_h
00019 
00020 #include "itkVTKImageExportBase.h"
00021 
00022 namespace itk
00023 {
00024 
00051 template <class TInputImage>
00052 class ITK_EXPORT VTKImageExport: public VTKImageExportBase
00053 {
00054 public:
00056   typedef VTKImageExport Self;
00057   typedef VTKImageExportBase Superclass;
00058   typedef SmartPointer<Self>  Pointer;
00059   typedef SmartPointer<const Self>  ConstPointer;
00060 
00062   itkTypeMacro(VTKImageExport,VTKImageExportBase);
00063 
00065   itkNewMacro(Self);
00066 
00068   typedef TInputImage InputImageType;
00069 
00071   void SetInput(const InputImageType*);
00072 
00073 protected:
00074   VTKImageExport();
00075   ~VTKImageExport() {}
00076   void PrintSelf(std::ostream& os, Indent indent) const;  
00077 
00078   typedef typename InputImageType::Pointer InputImagePointer;
00079   typedef typename InputImageType::RegionType InputRegionType;
00080   typedef typename InputRegionType::SizeType InputSizeType;
00081   typedef typename InputRegionType::IndexType InputIndexType;
00082   itkStaticConstMacro(InputImageDimension, unsigned int,
00083                       InputImageType::ImageDimension );
00084   
00085   InputImageType * GetInput(void);
00086   
00087   int* WholeExtentCallback();
00088   double* SpacingCallback();
00089   double* OriginCallback();
00090   float* FloatSpacingCallback();
00091   float* FloatOriginCallback();
00092   const char* ScalarTypeCallback();
00093   int NumberOfComponentsCallback();
00094   void PropagateUpdateExtentCallback(int*);
00095   int* DataExtentCallback();
00096   void* BufferPointerCallback();
00097   
00098 private:
00099   VTKImageExport(const Self&); //purposely not implemented
00100   void operator=(const Self&); //purposely not implemented
00101 
00102   std::string m_ScalarTypeName;
00103   int m_WholeExtent[6];
00104   int m_DataExtent[6];
00105   double m_DataSpacing[3];
00106   double m_DataOrigin[3];
00107   float m_FloatDataSpacing[3];
00108   float m_FloatDataOrigin[3];
00109 };
00110 
00111 } // end namespace itk
00112   
00113 #ifndef ITK_MANUAL_INSTANTIATION
00114 #include "itkVTKImageExport.txx"
00115 #endif
00116 
00117 #endif
00118 

Generated at Mon Mar 12 03:27:59 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000