Loading...
Searching...
No Matches
elxBaseComponentSE.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef elxBaseComponentSE_h
#define elxBaseComponentSE_h
#include "elxBaseComponent.h"
#include "elxConfiguration.h"
// ITK header files:
#include <itkMacro.h> // For ITK_DISALLOW_COPY_AND_MOVE.
#include <itkWeakPointer.h>
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT BaseComponentSE : public BaseComponent
{
public:
ITK_DISALLOW_COPY_AND_MOVE(BaseComponentSE);
using Self = BaseComponentSE;
using Superclass = BaseComponent;
using ElastixType = TElastix;
using RegistrationType = typename ElastixType::RegistrationBaseType;
void
SetElastix(ElastixType * _arg);
ElastixType *
GetElastix() const
{
return this->m_Elastix.GetPointer();
}
void
RemoveTargetCellFromIterationInfo(const char * const name)
{
this->m_Elastix->GetIterationInfo().RemoveTargetCell(name);
}
auto &
GetIterationInfoAt(const char * const name)
{
return this->m_Elastix->GetIterationInfoAt(name);
}
void
AddTargetCellToIterationInfo(const char * const name)
{
return this->m_Elastix->AddTargetCellToIterationInfo(name);
}
const Configuration *
GetConfiguration() const
{
return this->m_Configuration.GetPointer();
}
void
SetConfiguration(const Configuration * _arg);
RegistrationType *
GetRegistration() const
{
return this->m_Registration;
}
protected:
BaseComponentSE() = default;
~BaseComponentSE() override = default;
itk::WeakPointer<TElastix> m_Elastix{};
Configuration::ConstPointer m_Configuration{};
RegistrationType * m_Registration{};
private:
virtual const itk::Object &
GetSelf() const = 0;
virtual itk::Object &
GetSelf() = 0;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxBaseComponentSE.hxx"
#endif
#endif // end #ifndef elxBaseComponentSE_h
elastix::BaseComponentSE::Superclass
BaseComponent Superclass
Definition elxBaseComponentSE.h:54
elastix::BaseComponentSE::BaseComponentSE
BaseComponentSE()=default
elastix::BaseComponentSE::m_Configuration
Configuration::ConstPointer m_Configuration
Definition elxBaseComponentSE.h:138
elastix::BaseComponentSE::AddTargetCellToIterationInfo
void AddTargetCellToIterationInfo(const char *const name)
Definition elxBaseComponentSE.h:101
elastix::BaseComponentSE::m_Elastix
itk::WeakPointer< TElastix > m_Elastix
Definition elxBaseComponentSE.h:137
elastix::BaseComponentSE::SetConfiguration
void SetConfiguration(const Configuration *_arg)
elastix::BaseComponentSE::GetIterationInfoAt
auto & GetIterationInfoAt(const char *const name)
Definition elxBaseComponentSE.h:95
elastix::BaseComponentSE::GetRegistration
RegistrationType * GetRegistration() const
Definition elxBaseComponentSE.h:127
elastix::BaseComponentSE::~BaseComponentSE
~BaseComponentSE() override=default
elastix::BaseComponentSE::GetElastix
ElastixType * GetElastix() const
Definition elxBaseComponentSE.h:83
elastix::BaseComponentSE::SetElastix
void SetElastix(ElastixType *_arg)
elastix::BaseComponentSE::GetConfiguration
const Configuration * GetConfiguration() const
Definition elxBaseComponentSE.h:111
elastix::BaseComponentSE::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(BaseComponentSE)
elastix::BaseComponentSE::GetSelf
virtual itk::Object & GetSelf()=0
elastix::BaseComponentSE::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::BaseComponentSE::m_Registration
RegistrationType * m_Registration
Definition elxBaseComponentSE.h:139
elastix::BaseComponentSE::Self
BaseComponentSE Self
Definition elxBaseComponentSE.h:53
elastix::BaseComponentSE::GetSelf
virtual const itk::Object & GetSelf() const =0
elastix::BaseComponentSE::RemoveTargetCellFromIterationInfo
void RemoveTargetCellFromIterationInfo(const char *const name)
Definition elxBaseComponentSE.h:89
elastix::BaseComponent::BaseComponent
BaseComponent()=default
elastix::Configuration
A class that deals with user given parameters and command line arguments.
Definition elxConfiguration.h:53
elastix::Configuration::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxConfiguration.h:62
elxBaseComponent.h
elxConfiguration.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |