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 "itkMacro.h" // For ITK_DISALLOW_COPY_AND_ASSIGN.
23#include "itkWeakPointer.h"
24
25namespace elastix
26{
27
43template< class TElastix >
45{
46public:
48
52
54 typedef TElastix ElastixType;
55 typedef itk::WeakPointer< ElastixType > ElastixPointer;
56
60
64 typedef typename ElastixType::RegistrationBaseType RegistrationType;
66
79 void SetElastix( ElastixType * _arg );
80
84 ElastixType * GetElastix( void ) const
85 {
86 return this->m_Elastix.GetPointer();
87 }
88
89
94 ConfigurationType * GetConfiguration( void ) const
95 {
96 return this->m_Configuration.GetPointer();
97 }
98
99
101 void SetConfiguration( ConfigurationType * _arg );
102
109 {
110 return this->m_Registration;
111 }
112
113
114protected:
115
116 BaseComponentSE() = default;
117 ~BaseComponentSE() override = default;
118
119 ElastixPointer m_Elastix{};
122};
123
124} //end namespace elastix
125
126#ifndef ITK_MANUAL_INSTANTIATION
127#include "elxBaseComponentSE.hxx"
128#endif
129
130#endif // end #ifndef __elxBaseComponentSE_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Configuration::Pointer ConfigurationPointer
ConfigurationType * GetConfiguration(void) const
ConfigurationPointer m_Configuration
itk::WeakPointer< ElastixType > ElastixPointer
RegistrationPointer GetRegistration(void) const
RegistrationType * RegistrationPointer
~BaseComponentSE() override=default
void SetElastix(ElastixType *_arg)
ElastixType * GetElastix(void) const
RegistrationPointer m_Registration
void SetConfiguration(ConfigurationType *_arg)
ITK_DISALLOW_COPY_AND_ASSIGN(BaseComponentSE)
ElastixType::RegistrationBaseType RegistrationType
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


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo