1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef __clitkPointListReader_txx
19 #define __clitkPointListReader_txx
20 #include "clitkPointListReader.h"
25 template<unsigned int Dimension>
26 PointListReader< Dimension >
32 template<unsigned int Dimension>
33 typename PointListReader< Dimension >::PointListType
34 PointListReader< Dimension >
35 ::Read(const std::string& filename)
38 openFileForReading(is, filename);
43 if(m_Verbose)std::cout<<"Reading "<<filename<<"..."<<std::endl;
44 for (unsigned int dim=0; dim<Dimension; dim++)
52 list.push_back(point);
53 for (unsigned int dim=0; dim<Dimension; dim++)
63 template<unsigned int Dimension>
64 typename PointListReader< Dimension >::PointListsType
65 PointListReader< Dimension >
66 ::Read(char** filename, const unsigned int& n)
69 for (unsigned int number=0; number<n; number++)
70 lists.push_back(Read(filename[number]) );
75 #endif // PointListReader