go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxBaseComponentSE.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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#ifndef elxBaseComponentSE_h
19#define elxBaseComponentSE_h
20
21#include "elxBaseComponent.h"
22#include "elxConfiguration.h"
23
24// ITK header files:
25#include <itkMacro.h> // For ITK_DISALLOW_COPY_AND_MOVE.
26#include <itkWeakPointer.h>
27
28namespace elastix
29{
30
46template <class TElastix>
47class ITK_TEMPLATE_EXPORT BaseComponentSE : public BaseComponent
48{
49public:
51
55
57 using ElastixType = TElastix;
58
62 using RegistrationType = typename ElastixType::RegistrationBaseType;
63
76 void
78
83 GetElastix() const
84 {
85 return this->m_Elastix.GetPointer();
86 }
87
88 void
89 RemoveTargetCellFromIterationInfo(const char * const name)
90 {
91 this->m_Elastix->GetIterationInfo().RemoveTargetCell(name);
92 }
93
94 auto &
95 GetIterationInfoAt(const char * const name)
96 {
97 return this->m_Elastix->GetIterationInfoAt(name);
98 }
99
100 void
101 AddTargetCellToIterationInfo(const char * const name)
102 {
103 return this->m_Elastix->AddTargetCellToIterationInfo(name);
104 }
105
110 const Configuration *
112 {
113 return this->m_Configuration.GetPointer();
114 }
115
116
118 void
120
128 {
129 return this->m_Registration;
130 }
131
132
133protected:
134 BaseComponentSE() = default;
135 ~BaseComponentSE() override = default;
136
137 itk::WeakPointer<TElastix> m_Elastix{};
139 RegistrationType * m_Registration{};
140
141private:
142 virtual const itk::Object &
143 GetSelf() const = 0;
144
145 virtual itk::Object &
146 GetSelf() = 0;
147};
148
149} // end namespace elastix
150
151#ifndef ITK_MANUAL_INSTANTIATION
152# include "elxBaseComponentSE.hxx"
153#endif
154
155#endif // end #ifndef elxBaseComponentSE_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
void AddTargetCellToIterationInfo(const char *const name)
void SetConfiguration(const Configuration *_arg)
auto & GetIterationInfoAt(const char *const name)
RegistrationType * GetRegistration() const
~BaseComponentSE() override=default
ElastixType * GetElastix() const
void SetElastix(ElastixType *_arg)
const Configuration * GetConfiguration() const
ITK_DISALLOW_COPY_AND_MOVE(BaseComponentSE)
virtual itk::Object & GetSelf()=0
typename ElastixType::RegistrationBaseType RegistrationType
virtual const itk::Object & GetSelf() const =0
void RemoveTargetCellFromIterationInfo(const char *const name)
The BaseComponent class is a class that all elastix components should inherit from.
A class that deals with user given parameters and command line arguments.
itk::SmartPointer< const Self > ConstPointer


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo