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

itkTransformFileReaderWithFactory.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTransformFileReaderWithFactory.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/08/10 15:41:28 $
00007   Version:   $Revision: 1.2 $
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 __itkTransformFileReaderWithFactory_h
00018 #define __itkTransformFileReaderWithFactory_h
00019 
00020 #include "itkLightProcessObject.h"
00021 #include "metaTransform.h"
00022 #include "itkTransformIOBase.h"
00023 
00024 namespace itk
00025 {
00026 
00027 class TransformFileReader : public LightProcessObject
00028 {
00029 public:
00030 
00032   typedef TransformFileReader Self;
00033   typedef SmartPointer<Self>  Pointer;
00034 
00035   typedef TransformBase       TransformType;
00036 
00037   typedef TransformType::ParametersType      ParametersType;
00038   typedef TransformIOBase::TransformPointer  TransformPointer;
00039   typedef TransformIOBase::TransformListType TransformListType;
00040 
00042   itkNewMacro(Self);
00043 
00045   typedef Object Superclass;
00046   itkTypeMacro(TransformFileReader, LightProcessObject);
00048 
00050   itkSetStringMacro(FileName);
00051 
00053   itkGetStringMacro(FileName);
00054 
00056   void Update();
00057 
00059   TransformListType * GetTransformList() {return & m_TransformList;}
00060 
00061 protected:
00062   TransformIOBase::Pointer m_TransformIO;
00063   TransformFileReader(const Self&); //purposely not implemented
00064   void operator=(const Self&); //purposely not implemented
00065    
00066   std::string m_FileName;
00067 
00068   TransformFileReader();
00069   virtual ~TransformFileReader();
00070   void CreateTransform(TransformPointer &ptr, const std::string &ClassName);
00071 private:
00072   TransformListType    m_TransformList;
00073 };
00074 
00075 } // namespace itk
00076 
00077 
00078 #endif // __itkTransformFileReader_h
00079 

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