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
61
65 using RegistrationType = typename ElastixType::RegistrationBaseType;
66
79 void
81
86 GetElastix() const
87 {
88 return this->m_Elastix.GetPointer();
89 }
90
91 int
92 RemoveTargetCellFromIterationInfo(const char * const name)
93 {
94 return this->m_Elastix->GetIterationInfo().xl::xoutrow::RemoveTargetCell(name);
95 }
96
98 GetIterationInfoAt(const char * const name)
99 {
100 return this->m_Elastix->GetIterationInfoAt(name);
101 }
102
103 void
104 AddTargetCellToIterationInfo(const char * const name)
105 {
106 return this->m_Elastix->AddTargetCellToIterationInfo(name);
107 }
108
115 {
116 return this->m_Configuration.GetPointer();
117 }
118
119
121 void
123
131 {
132 return this->m_Registration;
133 }
134
135
136protected:
137 BaseComponentSE() = default;
138 ~BaseComponentSE() override = default;
139
140 itk::WeakPointer<TElastix> m_Elastix{};
141 ConfigurationPointer m_Configuration{};
142 RegistrationType * m_Registration{};
143
144private:
145 virtual const itk::Object &
146 GetSelf() const = 0;
147
148 virtual itk::Object &
149 GetSelf() = 0;
150};
151
152} // end namespace elastix
153
154#ifndef ITK_MANUAL_INSTANTIATION
155# include "elxBaseComponentSE.hxx"
156#endif
157
158#endif // end #ifndef elxBaseComponentSE_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
int RemoveTargetCellFromIterationInfo(const char *const name)
void SetConfiguration(Configuration *_arg)
void AddTargetCellToIterationInfo(const char *const name)
Configuration::Pointer ConfigurationPointer
RegistrationType * GetRegistration() const
~BaseComponentSE() override=default
ElastixType * GetElastix() const
void SetElastix(ElastixType *_arg)
Configuration * GetConfiguration() const
ITK_DISALLOW_COPY_AND_MOVE(BaseComponentSE)
xl::xoutbase & GetIterationInfoAt(const char *const name)
virtual itk::Object & GetSelf()=0
typename ElastixType::RegistrationBaseType RegistrationType
virtual const itk::Object & GetSelf() const =0
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< Self > Pointer
Base class for xout.
Definition: xoutbase.h:40


Generated on Wed 12 Apr 2023 for elastix by doxygen 1.9.6 elastix logo