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

itkTransformFileReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTransformFileReader.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-16 11:37:58 $
00007   Version:   $Revision: 1.8 $
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 __itkTransformFileReader_h
00018 #define __itkTransformFileReader_h
00019 
00020 // First make sure that the configuration is available.
00021 // This line can be removed once the factory based version
00022 // gets integrated into the main directories.
00023 #include "itkConfigure.h"
00024 
00025 #ifdef ITK_USE_TRANSFORM_IO_FACTORIES
00026 #include "itkTransformFileReaderWithFactory.h"
00027 #else
00028 
00029 #include "itkLightProcessObject.h"
00030 #include "metaTransform.h"
00031 #include "itkTransformBase.h"
00032 
00033 namespace itk
00034 {
00035 
00040 class TransformFileReader : public LightProcessObject
00041 {
00042 public:
00043 
00045   typedef TransformFileReader Self;
00046   typedef SmartPointer<Self>  Pointer;
00047   typedef TransformBase       TransformType;
00048 
00049   typedef TransformType::ParametersType ParametersType;
00050   typedef TransformType::Pointer        TransformPointer;
00051   typedef std::list<TransformPointer>   TransformListType;
00052 
00054   itkNewMacro(Self);
00055 
00057   typedef Object Superclass;
00058   itkTypeMacro(TransformFileReader, LightProcessObject);
00060 
00062   itkSetStringMacro(FileName);
00063 
00065   itkGetStringMacro(FileName);
00066 
00068   void Update();
00069 
00071   TransformListType * GetTransformList() {return & m_TransformList;}
00072 
00073 protected:
00074   TransformFileReader(const Self&); //purposely not implemented
00075   void operator=(const Self&); //purposely not implemented
00076    
00077   std::string m_FileName;
00078 
00079   TransformFileReader();
00080   virtual ~TransformFileReader();
00081 
00082 private:
00083 
00084   TransformListType    m_TransformList;
00085 };
00086 
00087 } // namespace itk
00088 
00089 #endif
00090 
00091 #endif // __itkTransformFileReader_h
00092 

Generated at Sat Feb 28 13:40:41 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000