RTK  2.6.0
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  * 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 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_MOVE(OraGeometryReader);
43 
48 
55 
57 #ifdef itkOverrideGetNameOfClassMacro
58  itkOverrideGetNameOfClassMacro(OraGeometryReader);
59 #else
61 #endif
62 
63 
65  itkNewMacro(Self);
66 
68  itkGetModifiableObjectMacro(Geometry, GeometryType);
69 
71  using FileNamesContainer = std::vector<std::string>;
72 
75  void
77  {
78  if (m_ProjectionsFileNames != name)
79  {
80  m_ProjectionsFileNames = name;
81  this->Modified();
82  }
83  }
84  const FileNamesContainer &
86  {
87  return m_ProjectionsFileNames;
88  }
90 
95  itkGetMacro(CollimationMargin, MarginVectorType);
96  itkSetMacro(CollimationMargin, MarginVectorType);
98 
101  itkGetMacro(OptiTrackObjectID, int);
102  itkSetMacro(OptiTrackObjectID, int);
104 
105 
106 protected:
108  : m_Geometry(nullptr)
109  , m_CollimationMargin(0.){};
110 
111  ~OraGeometryReader() override = default;
112 
113 private:
114  void
115  GenerateData() override;
116 
120  int m_OptiTrackObjectID{ -1 };
121 };
122 
123 } // namespace rtk
124 
125 #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.
#define itkSetMacro(name, type)
MarginVectorType m_CollimationMargin
FileNamesContainer m_ProjectionsFileNames
GeometryType::Pointer m_Geometry