00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkTransformFileWriter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/02/24 19:18:01 $ 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 __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); 00043 00045 itkSetStringMacro(FileName); 00046 00048 itkGetStringMacro(FileName); 00049 00051 void SetInput(const TransformType* transform); 00052 const TransformType * GetInput() {return *(m_TransformList.begin());} 00053 00055 void AddTransform(const TransformType* transform); 00056 00058 itkSetMacro(Precision,unsigned int); 00059 itkGetMacro(Precision,unsigned int); 00060 00062 void Update(); 00063 00064 protected: 00065 00066 std::string m_FileName; 00067 00068 TransformFileWriter(); 00069 virtual ~TransformFileWriter(); 00070 00071 private: 00072 00073 std::list<const TransformType*> m_TransformList; 00074 unsigned int m_Precision; 00075 }; 00076 00077 } // namespace itk 00078 00079 00080 #endif // __itkTransformFileWriter_h
1.4.1 written by Dimitri van Heesch,
© 1997-2000