frePointSetToXMLStreamObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: frePointSetToXMLStreamObject.h,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 #ifndef __frePointSetToXMLStreamObject_h
00023 #define __frePointSetToXMLStreamObject_h
00024 
00025 #include "freXMLStreamObject.h"
00026 
00027 namespace FREE
00028 {
00029 
00030 freXMLTagMacro(PointSet, "PointSet");
00031 freXMLTagMacro(Point, "Point");
00032 freXMLTagMacro(PointSetDim, "PointSetDim");
00033 
00039 template <class TPointSet>
00040 class ITK_EXPORT PointSetToXMLStreamObject:
00041   public XMLStreamObject
00042 {
00043 public:
00045   typedef PointSetToXMLStreamObject         Self;
00046   typedef XMLStreamObject  Superclass;
00047   typedef TPointSet PointSetType;
00048   typedef typename PointSetType::Pointer PointSetPointer;
00049   typedef typename PointSetType::PointType PointType;
00050 
00051 
00053   itkTypeMacro(PointSetToXMLStreamObject, XMLStreamObject);
00054 
00055   PointSetType* GetPointSet();
00056   void SetPointSet(PointSetType* pSet);
00057 
00058   PointSetToXMLStreamObject();
00059 
00060 protected:
00062   virtual void SubElementLoadProcessing(const std::string& rsXMLSubTag, const std::string& rsXMLSubElement, const std::string& rsXMLSubData);
00063 
00064   virtual std::string SaveData(const unsigned int& iDepth, bool& bHasSubElements) const;
00065 
00066   virtual void AttributesLoadProcessing(const AttributesType& rAttributes);
00067 
00068   virtual void SaveAttributes(AttributesSaveListType& rAttributes) const;
00069 
00070   PointSetPointer m_PointSet;
00071 };
00072 
00073   
00074 } // end namespace itk
00075   
00076 #ifndef ITK_MANUAL_INSTANTIATION
00077 #include "frePointSetToXMLStreamObject.txx"
00078 #endif
00079   
00080 #endif

Generated at Sat Oct 13 17:04:41 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000