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  itkOverrideGetNameOfClassMacro(VarianObiGeometryReader);
55 
57  itkNewMacro(Self);
58 
60  itkGetMacro(Geometry, GeometryType::Pointer);
61 
63  itkGetMacro(XMLFileName, std::string);
64  itkSetMacro(XMLFileName, std::string);
66 
69  void
71  {
72  if (m_ProjectionsFileNames != name)
73  {
74  m_ProjectionsFileNames = name;
75  this->Modified();
76  }
77  }
78  const FileNamesContainer &
80  {
81  return m_ProjectionsFileNames;
82  }
84 
85 protected:
87 
88 
89 private:
90  void
91  GenerateData() override;
92 
94  std::string m_XMLFileName;
96 };
97 
98 } // namespace rtk
99 #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