RTK  1.4.0
Reconstruction Toolkit
rtkPhaseReader.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef rtkPhaseReader_h
19 #define rtkPhaseReader_h
20 
21 #include <itkCSVFileReaderBase.h>
22 
23 namespace rtk
24 {
25 
34 class ITK_EXPORT PhaseReader:public itk::CSVFileReaderBase
35 {
36 public:
38  typedef PhaseReader Self;
42 
44  itkNewMacro(Self)
45 
46 
47  itkTypeMacro(Self,Superclass)
48 
50  typedef float ValueType;
51 
54  void Parse() ITK_OVERRIDE;
55 
58  virtual void Update();
59 
62  virtual std::vector<float> GetOutput();
63 
64 protected:
65 
66  PhaseReader();
67  virtual ~PhaseReader () ITK_OVERRIDE {}
68 
70  void PrintSelf(std::ostream & os, itk::Indent indent) const ITK_OVERRIDE;
71 
72 private:
73 
74  std::vector<float> m_Phases;
75 
76  PhaseReader(const Self &); //purposely not implemented
77  void operator=(const Self &); //purposely not implemented
78 };
79 
80 } //end namespace rtk
81 
82 #ifndef ITK_MANUAL_INSTANTIATION
83 #include "rtkPhaseReader.hxx"
84 #endif
85 
86 #endif
CSVFileReaderBase Superclass
STL namespace.
std::vector< float > m_Phases
itk::SmartPointer< const Self > ConstPointer
Parses csv file containing the cardiac or respiratory phases of each projection.
itk::SmartPointer< Self > Pointer
PhaseReader Self