RTK  2.0.1
Reconstruction Toolkit
rtkOraGeometryReader.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 rtkOraGeometryReader_h
20 #define rtkOraGeometryReader_h
21 
22 #include <itkLightProcessObject.h>
24 #include "RTKExport.h"
25 
26 namespace rtk
27 {
28 
39 class RTK_EXPORT OraGeometryReader : public itk::LightProcessObject
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(OraGeometryReader);
43 
48 
55 
58 
60  itkNewMacro(Self);
61 
63  itkGetModifiableObjectMacro(Geometry, GeometryType);
64 
66  using FileNamesContainer = std::vector<std::string>;
67 
71  {
72  if ( m_ProjectionsFileNames != name)
73  {
74  m_ProjectionsFileNames = name;
75  this->Modified();
76  }
77  }
79  {
80  return m_ProjectionsFileNames;
81  }
83 
88  itkGetMacro(CollimationMargin, MarginVectorType)
89  itkSetMacro(CollimationMargin, MarginVectorType)
90 
91 
92 protected:
93  OraGeometryReader(): m_Geometry(nullptr), m_CollimationMargin(0.) {};
94 
95  ~OraGeometryReader() override = default;
96 
97 private:
98  void GenerateData() override;
99 
103 };
104 
105 }
106 
107 #endif // rtkOraGeometryReader_h
void SetProjectionsFileNames(const FileNamesContainer &name)
std::vector< std::string > FileNamesContainer
const FileNamesContainer & GetProjectionsFileNames() const
Projection geometry for a source and a 2-D flat panel.
MarginVectorType m_CollimationMargin
FileNamesContainer m_ProjectionsFileNames
GeometryType::Pointer m_Geometry
#define itkSetMacro(name, type)