/*========================================================================= Program: ShapeWorks: Particle-based Shape Correspondence & Visualization Module: $RCSfile: itkParticlePositionReader.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 __itkParticlePositionReader_h#define __itkParticlePositionReader_h#include"itkDataObject.h"#include"itkObjectFactory.h"#include"itkPoint.h"#include"itkWeakPointer.h"#include<vector>#include<string>namespaceitk{template<unsignedintVDimension>classITK_EXPORTParticlePositionReader:publicDataObject{public:typedefParticlePositionReaderSelf;typedefDataObjectSuperclass;typedefSmartPointer<Self>Pointer;typedefSmartPointer<constSelf>ConstPointer;typedefWeakPointer<constSelf>ConstWeakPointer;typedefPoint<double,VDimension>PointType;itkNewMacro(Self);itkTypeMacro(ParticlePositionReader,DataObject);conststd::vector<PointType>&GetOutput()const{returnm_Output;}itkSetStringMacro(FileName);itkGetStringMacro(FileName);inlinevoidRead(){this->Update();}voidUpdate();protected:ParticlePositionReader(){}voidPrintSelf(std::ostream&os,Indentindent)const{Superclass::PrintSelf(os,indent);os<<indent<<"ParticlePositionReader: "<<std::endl;}virtual~ParticlePositionReader(){};private:ParticlePositionReader(constSelf&);//purposely not implementedvoidoperator=(constSelf&);//purposely not implementedstd::vector<PointType>m_Output;std::stringm_FileName;};}// end namespace itk#include"itkParticlePositionReader.cpp"#endif