]> Creatis software - clitk.git/blob - registration/clitkPointListWriter.h
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkPointListWriter.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 __clitkPointListWriter_h
19 #define __clitkPointListWriter_h
20 #include "clitkPointListWriter.h"
21
22 namespace clitk
23 {
24
25
26   template <unsigned int Dimension>
27   class ITK_EXPORT PointListWriter : 
28     public itk::LightObject 
29   {
30   public:
31     //------------------------------------
32     // Standard itk typedefs
33     //-----------------------------------
34     typedef PointListWriter                     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(PointListWriter, LightObject); 
44
45     // Typedefs
46     typedef itk::Point<double, Dimension> PointType;
47     typedef std::vector<PointType> PointListType;
48     typedef std::vector< PointListType> PointListsType; 
49     typedef itk::Vector<float, Dimension> DisplacementType;
50     typedef std::vector<DisplacementType> DisplacementListType;
51     typedef std::vector< DisplacementListType> DisplacementListsType;   
52
53     // Members
54     void Write(const  PointListType & , const  std::string &);
55     void Write(const  PointListsType & , char** );
56     void Write(const  PointListsType & , const  std::string &){;};
57
58     void Write(const  DisplacementListType & , const  std::string &);
59     void Write(const  DisplacementListsType & , char**);
60     void Write(const  DisplacementListsType & , const  std::string &){;};
61
62     
63   protected:
64     
65     // Constructor & Destructor+
66     PointListWriter();
67     ~PointListWriter(){};
68
69
70   };
71
72 } // namespace clitk
73
74 #ifndef ITK_MANUAL_INSTANTIATION
75 #include "clitkPointListWriter.txx"
76 #endif
77
78 #endif