ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * https://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 "RTKExport.h"
23
24namespace rtk
25{
26
35class RTK_EXPORT PhaseReader : public itk::CSVFileReaderBase
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(PhaseReader);
39
45
47 itkNewMacro(Self);
48
50 itkOverrideGetNameOfClassMacro(PhaseReader);
51
53 using ValueType = float;
54
57 void
58 Parse() override;
59
62 virtual void
64
67 virtual std::vector<float>
69
70protected:
72 ~PhaseReader() override = default;
73
75 void
76 PrintSelf(std::ostream & os, itk::Indent indent) const override;
77
78private:
79 std::vector<float> m_Phases;
80};
81
82} // end namespace rtk
83
84#endif
A base class that contains common methods used for parsing csv files.
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
itk::SmartPointer< const Self > ConstPointer
CSVFileReaderBase Superclass
void Parse() override
std::vector< float > m_Phases
virtual void Update()
void PrintSelf(std::ostream &os, itk::Indent indent) const override
virtual std::vector< float > GetOutput()
~PhaseReader() override=default
itk::SmartPointer< Self > Pointer