]> Creatis software - clitk.git/blob - registration/clitkPointListReader.h
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkPointListReader.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
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
8
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.
12
13   It is distributed under dual licence
14
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_h
19 #define __clitkPointListReader_h
20 #include "clitkPointListReader.h"
21
22 namespace clitk
23 {
24
25
26   template <unsigned int Dimension>
27   class ITK_EXPORT PointListReader : 
28     public itk::LightObject 
29   {
30   public:
31     //------------------------------------
32     // Standard itk typedefs
33     //-----------------------------------
34     typedef PointListReader                     Self;
35     typedef LightObject                         Superclass;
36     typedef itk::SmartPointer<Self>             Pointer;
37     typedef itk::SmartPointer<const Self>       ConstPointer;
38
39     /** Method for creation through the object factory. */
40     itkNewMacro(Self); 
41
42     /** Run-time type information (and related methods). */
43     itkTypeMacro(PointListReader, PointListReader); 
44
45     // Typedefs
46     typedef itk::Point<double, Dimension> PointType;
47     typedef std::vector<PointType> PointListType;
48     typedef std::vector< PointListType> PointListsType;   
49
50     void SetVerbose(bool a){m_Verbose=a;}
51     PointListType Read(const  std::string &);
52     PointListsType Read(char**, const unsigned int &);
53     
54
55   protected:
56     
57     // Constructor & Destructor
58     PointListReader();
59     ~PointListReader(){};
60
61     bool m_Verbose;
62
63   };
64
65 } // namespace clitk
66
67 #ifndef ITK_MANUAL_INSTANTIATION
68 #include "clitkPointListReader.txx"
69 #endif
70
71 #endif