ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkForbildPhantomFileReader.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 rtkForbildPhantomFileReader_h
20#define rtkForbildPhantomFileReader_h
21
22#include "RTKExport.h"
23#include "rtkGeometricPhantom.h"
25
26namespace rtk
27{
28
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(ForbildPhantomFileReader);
46
52
54 static constexpr unsigned int Dimension = ConvexShape::Dimension;
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(ForbildPhantomFileReader);
67
69 itkGetModifiableObjectMacro(GeometricPhantom, GeometricPhantom);
71
73 itkGetStringMacro(Filename);
74 itkSetStringMacro(Filename);
75
77 virtual void
79
80protected:
83
85 ~ForbildPhantomFileReader() override = default;
86
87 void
88 CreateForbildSphere(const std::string & s);
89 void
90 CreateForbildBox(const std::string & s);
91 void
92 CreateForbildCylinder(const std::string & s, const std::string & fig);
93 void
94 CreateForbildElliptCyl(const std::string & s, const std::string & fig);
95 void
96 CreateForbildEllipsoid(const std::string & s, const std::string & fig);
97 void
98 CreateForbildCone(const std::string & s, const std::string & fig);
99 void
100 CreateForbildTetrahedron(const std::string & s);
101 static RotationMatrixType
103
104 bool
105 FindParameterInString(const std::string & name, const std::string & s, ScalarType & param);
106 bool
107 FindVectorInString(const std::string & name, const std::string & s, VectorType & vec);
108 void
109 FindClipPlanes(const std::string & s);
110 void
111 FindUnions(const std::string & s);
112
113private:
115 std::string m_Filename;
119 std::vector<int> m_UnionWith;
120};
121
122} // end namespace rtk
123
124#endif
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Base class for most ITK classes.
Definition itkObject.h:62
Implements transparent reference counting.
itk::SmartPointer< Self > Pointer
itk::Point< ScalarType, Dimension > PointType
static constexpr unsigned int Dimension
itk::Vector< ScalarType, Dimension > VectorType
itk::Matrix< ScalarType, Dimension, Dimension > RotationMatrixType
void CreateForbildCylinder(const std::string &s, const std::string &fig)
GeometricPhantom::Pointer GeometricPhantomPointer
ForbildPhantomFileReader()=default
Constructor.
static RotationMatrixType ComputeRotationMatrixBetweenVectors(const VectorType &source, const VectorType &dest)
void FindUnions(const std::string &s)
void CreateForbildSphere(const std::string &s)
void CreateForbildTetrahedron(const std::string &s)
void CreateForbildCone(const std::string &s, const std::string &fig)
GeometricPhantom::ConvexShapeVector ConvexShapeVectorType
itk::SmartPointer< const Self > ConstPointer
static constexpr unsigned int Dimension
void CreateForbildBox(const std::string &s)
bool FindParameterInString(const std::string &name, const std::string &s, ScalarType &param)
~ForbildPhantomFileReader() override=default
Destructor.
void CreateForbildEllipsoid(const std::string &s, const std::string &fig)
void FindClipPlanes(const std::string &s)
void CreateForbildElliptCyl(const std::string &s, const std::string &fig)
bool FindVectorInString(const std::string &name, const std::string &s, VectorType &vec)
virtual void GenerateOutputInformation()
ConvexShape::RotationMatrixType RotationMatrixType
Container for a geometric phantom, i.e., a set of ConvexShapes.
itk::SmartPointer< Self > Pointer
std::vector< ConvexShapePointer > ConvexShapeVector