ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkBioscanGeometryReader.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 rtkBioscanGeometryReader_h
20#define rtkBioscanGeometryReader_h
21
22#include "RTKExport.h"
25
26// Trick KWStyle with a first declaration of namespace RTK. Style test would
27// not pass otherwise on the gdcm namespace.
28namespace rtk
29{}
30
31// Forward declare class Dataset. This is done to avoid define conflicts in
32// GDCM with lp_solve
33namespace gdcm
34{
35class DataSet;
36}
37
38namespace rtk
39{
40
51
53{
54public:
55 ITK_DISALLOW_COPY_AND_MOVE(BioscanGeometryReader);
56
61
65
67 itkOverrideGetNameOfClassMacro(BioscanGeometryReader);
68
70 itkNewMacro(Self);
71
73 itkGetModifiableObjectMacro(Geometry, GeometryType);
74
76 using FileNamesContainer = std::vector<std::string>;
77
80 void
82 {
83 if (m_ProjectionsFileNames != name)
84 {
86 this->Modified();
87 }
88 }
89 const FileNamesContainer &
91 {
93 }
94
95protected:
96 std::vector<float>
97 GetVectorTagValue(const gdcm::DataSet & ds, itk::uint16_t group, itk::uint16_t element) const;
98 std::string
99 GetStringTagValue(const gdcm::DataSet & ds, itk::uint16_t group, itk::uint16_t element) const;
100 double
101 GetFloatTagValue(const gdcm::DataSet & ds, itk::uint16_t group, itk::uint16_t element) const;
102
104 : m_Geometry(nullptr) {};
105 ~BioscanGeometryReader() override = default;
106
107private:
108 void
109 GenerateData() override;
110
113};
114
115} // namespace rtk
116
117#endif // rtkBioscanGeometryReader_h
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
virtual void Modified() const
Implements transparent reference counting.
std::vector< std::string > FileNamesContainer
void GenerateData() override
void SetProjectionsFileNames(const FileNamesContainer &name)
std::vector< float > GetVectorTagValue(const gdcm::DataSet &ds, itk::uint16_t group, itk::uint16_t element) const
double GetFloatTagValue(const gdcm::DataSet &ds, itk::uint16_t group, itk::uint16_t element) const
const FileNamesContainer & GetProjectionsFileNames() const
GeometryType::Pointer GeometryPointer
itk::SmartPointer< Self > Pointer
ThreeDCircularProjectionGeometry GeometryType
~BioscanGeometryReader() override=default
itk::LightProcessObject Superclass
std::string GetStringTagValue(const gdcm::DataSet &ds, itk::uint16_t group, itk::uint16_t element) const
Projection geometry for a source and a 2-D flat panel.