RTK  2.0.1
Reconstruction Toolkit
rtkVarianProBeamGeometryReader.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 
19 #ifndef rtkVarianProBeamGeometryReader_h
20 #define rtkVarianProBeamGeometryReader_h
21 
22 #include <itkLightProcessObject.h>
24 
25 namespace rtk
26 {
27 
38 class RTK_EXPORT VarianProBeamGeometryReader :
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(VarianProBeamGeometryReader);
43 
48 
51  using FileNamesContainer = std::vector<std::string>;
52 
55 
57  itkNewMacro(Self);
58 
60  itkGetMacro(Geometry, GeometryType::Pointer);
61 
63  itkGetMacro(XMLFileName, std::string);
64  itkSetMacro(XMLFileName, std::string);
66 
70  {
71  if ( m_ProjectionsFileNames != name)
72  {
73  m_ProjectionsFileNames = name;
74  this->Modified();
75  }
76  }
78  {
79  return m_ProjectionsFileNames;
80  }
82 
83 protected:
85 
86 
87 private:
88  void GenerateData() override;
89 
91  std::string m_XMLFileName;
93 };
94 
95 }
96 #endif
const FileNamesContainer & GetProjectionsFileNames() const
Projection geometry for a source and a 2-D flat panel.
void SetProjectionsFileNames(const FileNamesContainer &name)
#define itkSetMacro(name, type)