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: 2007/08/09 15:15:39 $
00007   Version:   $Revision: 1.7 $
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 
00036 class TransformFileReader : public LightProcessObject
00037 {
00038 public:
00039 
00041   typedef TransformFileReader Self;
00042   typedef SmartPointer<Self>  Pointer;
00043   typedef TransformBase       TransformType;
00044 
00045   typedef TransformType::ParametersType ParametersType;
00046   typedef TransformType::Pointer        TransformPointer;
00047   typedef std::list<TransformPointer>   TransformListType;
00048 
00050   itkNewMacro(Self);
00051 
00053   typedef Object Superclass;
00054   itkTypeMacro(TransformFileReader, LightProcessObject);
00056 
00058   itkSetStringMacro(FileName);
00059 
00061   itkGetStringMacro(FileName);
00062 
00064   void Update();
00065 
00067   TransformListType * GetTransformList() {return & m_TransformList;}
00068 
00069 protected:
00070   TransformFileReader(const Self&); //purposely not implemented
00071   void operator=(const Self&); //purposely not implemented
00072    
00073   std::string m_FileName;
00074 
00075   TransformFileReader();
00076   virtual ~TransformFileReader();
00077 
00078 private:
00079 
00080   TransformListType    m_TransformList;
00081 };
00082 
00083 } // namespace itk
00084 
00085 #endif
00086 
00087 #endif // __itkTransformFileReader_h
00088 

Generated at Thu Nov 6 00:29:24 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000