/*========================================================================= Program: ShapeWorks: Particle-based Shape Correspondence & Visualization Module: $RCSfile: itkParticlePositionWriter.h,v $ Date: $Date: 2011/03/24 01:17:33 $ Version: $Revision: 1.2 $ Author: $Author: wmartin $ Copyright (c) 2009 Scientific Computing and Imaging Institute. See ShapeWorksLicense.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information.=========================================================================*/#ifndef __itkParticlePositionWriter_h#define __itkParticlePositionWriter_h#include"itkDataObject.h"#include"itkPoint.h"#include"itkWeakPointer.h"#include"itkObjectFactory.h"#include<vector>#include<string>namespaceitk{template<unsignedintVDimension>classITK_EXPORTParticlePositionWriter:publicDataObject{public:typedefParticlePositionWriterSelf;typedefDataObjectSuperclass;typedefSmartPointer<Self>Pointer;typedefSmartPointer<constSelf>ConstPointer;typedefWeakPointer<constSelf>ConstWeakPointer;typedefPoint<double,VDimension>PointType;itkNewMacro(Self);itkTypeMacro(ParticlePositionWriter,DataObject);voidSetInput(conststd::vector<PointType>&p){m_Input=p;}itkSetStringMacro(FileName);itkGetStringMacro(FileName);inlinevoidWrite(){this->Update();}voidUpdate();protected:ParticlePositionWriter(){}voidPrintSelf(std::ostream&os,Indentindent)const{Superclass::PrintSelf(os,indent);os<<indent<<"ParticlePositionWriter: "<<std::endl;}virtual~ParticlePositionWriter(){};private:ParticlePositionWriter(constSelf&);//purposely not implementedvoidoperator=(constSelf&);//purposely not implementedstd::vector<PointType>m_Input;std::stringm_FileName;};}// end namespace itk#include"itkParticlePositionWriter.cpp"#endif