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  itkOverrideGetNameOfClassMacro(OraGeometryReader);
58 
60  itkNewMacro(Self);
61 
63  itkGetModifiableObjectMacro(Geometry, GeometryType);
64 
66  using FileNamesContainer = std::vector<std::string>;
67 
70  void
72  {
73  if (m_ProjectionsFileNames != name)
74  {
75  m_ProjectionsFileNames = name;
76  this->Modified();
77  }
78  }
79  const FileNamesContainer &
81  {
82  return m_ProjectionsFileNames;
83  }
85 
90  itkGetMacro(CollimationMargin, MarginVectorType);
91  itkSetMacro(CollimationMargin, MarginVectorType);
93 
96  itkGetMacro(OptiTrackObjectID, int);
97  itkSetMacro(OptiTrackObjectID, int);
99 
100 
101 protected:
103  : m_Geometry(nullptr)
104  , m_CollimationMargin(0.) {};
105 
106  ~OraGeometryReader() override = default;
107 
108 private:
109  void
110  GenerateData() override;
111 
115  int m_OptiTrackObjectID{ -1 };
116 };
117 
118 } // namespace rtk
119 
120 #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