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: 2005/09/22 03:03:52 $
00007   Version:   $Revision: 1.3 $
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 
00076   std::string m_FileName;
00077 
00078   TransformFileWriter();
00079   virtual ~TransformFileWriter();
00080 
00081 private:
00082 
00083   std::list<const TransformType*>  m_TransformList;
00084   unsigned int               m_Precision;
00085   bool                             m_AppendMode;
00086 };
00087 
00088 } // namespace itk
00089 
00090 
00091 #endif // __itkTransformFileWriter_h
00092 

Generated at Sat Sep 2 21:12:58 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000