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

itkTransformFileWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTransformFileWriter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/08/31 21:39:00 $
00007   Version:   $Revision: 1.4 $
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 __itkTransformFileWriter_h
00018 #define __itkTransformFileWriter_h
00019 
00020 #include "itkLightProcessObject.h"
00021 #include "metaTransform.h"
00022 #include "itkTransformBase.h"
00023 
00024 namespace itk
00025 {
00026 
00027 class TransformFileWriter : public LightProcessObject
00028 {
00029 public:
00030 
00032   typedef TransformFileWriter Self;
00033   typedef SmartPointer<Self> Pointer;
00034   typedef TransformBase TransformType;
00035   typedef TransformType::Pointer TransformPointer;
00036 
00038   itkNewMacro(Self);
00039 
00041   typedef Object Superclass;
00042   itkTypeMacro(TransformFileWriter, LightProcessObject);
00044 
00046   itkSetStringMacro(FileName);
00047 
00049   itkGetStringMacro(FileName);
00050 
00052   void SetAppendOff( );
00053   void SetAppendOn( );
00054   void SetAppendMode(bool mode);
00055   bool GetAppendMode( );
00057 
00059   void SetInput(const TransformType* transform);
00060   const TransformType * GetInput() {return *(m_TransformList.begin());}
00062 
00064   void AddTransform(const TransformType* transform);
00065 
00067   itkSetMacro(Precision,unsigned int);
00068   itkGetMacro(Precision,unsigned int);
00070 
00072   void Update();
00073 
00074 protected:
00075   TransformFileWriter(const Self&); //purposely not implemented
00076   void operator=(const Self&); //purposely not implemented
00077    
00078   std::string m_FileName;
00079 
00080   TransformFileWriter();
00081   virtual ~TransformFileWriter();
00082 
00083 private:
00084 
00085   std::list<const TransformType*>  m_TransformList;
00086   unsigned int               m_Precision;
00087   bool                             m_AppendMode;
00088 };
00089 
00090 } // namespace itk
00091 
00092 
00093 #endif // __itkTransformFileWriter_h
00094 

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