RTK  2.6.0
Reconstruction Toolkit
rtkVarianObiGeometryReader.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 
19 #ifndef rtkVarianObiGeometryReader_h
20 #define rtkVarianObiGeometryReader_h
21 
22 #include "RTKExport.h"
23 #include <itkLightProcessObject.h>
25 
26 namespace rtk
27 {
28 
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(VarianObiGeometryReader);
43 
48 
51  using FileNamesContainer = std::vector<std::string>;
52 
54 #ifdef itkOverrideGetNameOfClassMacro
55  itkOverrideGetNameOfClassMacro(VarianObiGeometryReader);
56 #else
58 #endif
59 
60 
62  itkNewMacro(Self);
63 
65  itkGetMacro(Geometry, GeometryType::Pointer);
66 
68  itkGetMacro(XMLFileName, std::string);
69  itkSetMacro(XMLFileName, std::string);
71 
74  void
76  {
77  if (m_ProjectionsFileNames != name)
78  {
79  m_ProjectionsFileNames = name;
80  this->Modified();
81  }
82  }
83  const FileNamesContainer &
85  {
86  return m_ProjectionsFileNames;
87  }
89 
90 protected:
92 
93 
94 private:
95  void
96  GenerateData() override;
97 
99  std::string m_XMLFileName;
101 };
102 
103 } // namespace rtk
104 #endif
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)
std::vector< std::string > FileNamesContainer
void SetProjectionsFileNames(const FileNamesContainer &name)
const FileNamesContainer & GetProjectionsFileNames() const