Commit 9873fe88 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

STYLE: Renamed Set to Accept in handshake. #100

parent af672c9b
......@@ -55,11 +55,11 @@ public:
virtual ~RegistrationControllerComponent();
// Accepting Interfaces:
virtual int Set( RunRegistrationInterface::Pointer ) override;
virtual int Accept( RunRegistrationInterface::Pointer ) override;
virtual int Set( ReconnectTransformInterface::Pointer ) override;
virtual int Accept( ReconnectTransformInterface::Pointer ) override;
virtual int Set( AfterRegistrationInterface::Pointer ) override;
virtual int Accept( AfterRegistrationInterface::Pointer ) override;
// Providing Interfaces:
virtual void RegistrationControllerStart( void ) override;
......
......@@ -38,7 +38,7 @@ RegistrationControllerComponent< dummy >::~RegistrationControllerComponent()
template< bool dummy >
int
RegistrationControllerComponent< dummy >::Set( RunRegistrationInterface::Pointer other )
RegistrationControllerComponent< dummy >::Accept( RunRegistrationInterface::Pointer other )
{
this->m_RunRegistrationInterfaces.insert( other );
return 0;
......@@ -47,7 +47,7 @@ RegistrationControllerComponent< dummy >::Set( RunRegistrationInterface::Pointer
template< bool dummy >
int
RegistrationControllerComponent< dummy >::Set( ReconnectTransformInterface::Pointer other )
RegistrationControllerComponent< dummy >::Accept( ReconnectTransformInterface::Pointer other )
{
this->m_ReconnectTransformInterfaces.insert( other );
return 0;
......@@ -56,7 +56,7 @@ RegistrationControllerComponent< dummy >::Set( ReconnectTransformInterface::Poin
template< bool dummy >
int
RegistrationControllerComponent< dummy >::Set( AfterRegistrationInterface::Pointer other )
RegistrationControllerComponent< dummy >::Accept( AfterRegistrationInterface::Pointer other )
{
this->m_AfterRegistrationInterfaces.insert( other );
return 0;
......
......@@ -86,9 +86,9 @@ public:
typedef elastix::TransformixFilter< FixedImageType > TransformixFilterType;
virtual int Set( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Accept( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Set( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Accept( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer ) override;
virtual ItkImagePointer GetItkImage() override;
......
......@@ -60,7 +60,7 @@ ElastixComponent< Dimensionality, TPixel >::~ElastixComponent()
template< int Dimensionality, class TPixel >
int
ElastixComponent< Dimensionality, TPixel >::Set( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer component )
ElastixComponent< Dimensionality, TPixel >::Accept( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer component )
{
auto fixedImage = component->GetItkImageFixed();
// connect the itk pipeline
......@@ -71,7 +71,7 @@ ElastixComponent< Dimensionality, TPixel >::Set( typename itkImageFixedInterface
template< int Dimensionality, class TPixel >
int
ElastixComponent< Dimensionality, TPixel >::Set( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer component )
ElastixComponent< Dimensionality, TPixel >::Accept( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer component )
{
auto movingImage = component->GetItkImageMoving();
// connect the itk pipeline
......
......@@ -90,9 +90,9 @@ public:
itk::Image< TPixel, Dimensionality >>::elastixTransformParameterObject elastixTransformParameterObject;
// Accepting Interfaces:
virtual int Set( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Accept( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Set( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Accept( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer ) override;
// Providing Interfaces:
virtual elastixTransformParameterObject * GetTransformParameterObject() override;
......
......@@ -48,7 +48,7 @@ MonolithicElastixComponent< Dimensionality, TPixel >::~MonolithicElastixComponen
template< int Dimensionality, class TPixel >
int
MonolithicElastixComponent< Dimensionality, TPixel >::Set( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer component )
MonolithicElastixComponent< Dimensionality, TPixel >::Accept( typename itkImageFixedInterface< Dimensionality, TPixel >::Pointer component )
{
auto fixedImage = component->GetItkImageFixed();
// connect the itk pipeline
......@@ -59,7 +59,7 @@ MonolithicElastixComponent< Dimensionality, TPixel >::Set( typename itkImageFixe
template< int Dimensionality, class TPixel >
int
MonolithicElastixComponent< Dimensionality, TPixel >::Set( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer component )
MonolithicElastixComponent< Dimensionality, TPixel >::Accept( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer component )
{
auto movingImage = component->GetItkImageMoving();
// connect the itk pipeline
......
......@@ -89,11 +89,11 @@ public:
typedef elastixTransformParameterObjectInterface< itk::Image< TPixel, Dimensionality >,
itk::Image< TPixel, Dimensionality >> elastixTransformParameterObjectInterfaceType;
// Accepting Interfaces:
virtual int Set( typename itkImageDomainFixedInterface< Dimensionality >::Pointer ) override;
virtual int Accept( typename itkImageDomainFixedInterface< Dimensionality >::Pointer ) override;
virtual int Set( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Accept( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Set( typename elastixTransformParameterObjectInterfaceType::Pointer ) override;
virtual int Accept( typename elastixTransformParameterObjectInterfaceType::Pointer ) override;
// Providing Interfaces:
virtual typename ResultImageType::Pointer GetItkImage() override;
......
......@@ -54,7 +54,7 @@ MonolithicTransformixComponent< Dimensionality, TPixel >::~MonolithicTransformix
template< int Dimensionality, class TPixel >
int
MonolithicTransformixComponent< Dimensionality, TPixel >::Set( typename itkImageDomainFixedInterface< Dimensionality >::Pointer component )
MonolithicTransformixComponent< Dimensionality, TPixel >::Accept( typename itkImageDomainFixedInterface< Dimensionality >::Pointer component )
{
// TODO: this is not finished and tested. Make this component use the provided domain
// Currently, the fixed image domain is part of the transformParameter map, which will be set by elastix.
......@@ -106,7 +106,7 @@ MonolithicTransformixComponent< Dimensionality, TPixel >::Set( typename itkImage
template< int Dimensionality, class TPixel >
int
MonolithicTransformixComponent< Dimensionality, TPixel >::Set( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer component )
MonolithicTransformixComponent< Dimensionality, TPixel >::Accept( typename itkImageMovingInterface< Dimensionality, TPixel >::Pointer component )
{
auto movingImage = component->GetItkImageMoving();
// connect the itk pipeline
......@@ -117,7 +117,7 @@ MonolithicTransformixComponent< Dimensionality, TPixel >::Set( typename itkImage
template< int Dimensionality, class TPixel >
int
MonolithicTransformixComponent< Dimensionality, TPixel >::Set( typename elastixTransformParameterObjectInterfaceType::Pointer component )
MonolithicTransformixComponent< Dimensionality, TPixel >::Accept( typename elastixTransformParameterObjectInterfaceType::Pointer component )
{
//auto transformParameterObject = component->GetTransformParameterObject();
// connect the itk pipeline
......
......@@ -48,9 +48,9 @@ public:
Example3rdParty::GDOptimizer3rdParty * theImplementation;
Metric3rdPartyWrapper * MetricObject;
virtual int Set( MetricValueInterface::Pointer ) override;
virtual int Accept( MetricValueInterface::Pointer ) override;
virtual int Set( MetricDerivativeInterface::Pointer ) override;
virtual int Accept( MetricDerivativeInterface::Pointer ) override;
virtual int Update() override;
......
......@@ -51,7 +51,7 @@ public:
Example4thParty::GDOptimizer4thParty * theImplementation;
Metric4thPartyWrapper * MetricObject;
virtual int Set( MetricValueInterface::Pointer ) override;
virtual int Accept( MetricValueInterface::Pointer ) override;
virtual int Update() override;
......
......@@ -44,7 +44,7 @@ public:
MetricComponent1( const std::string & name, LoggerImpl & logger ) : SuperElastixComponent( name, logger ) {}
virtual ~MetricComponent1(){}
virtual int Set( TransformedImageInterface::Pointer ) override;
virtual int Accept( TransformedImageInterface::Pointer ) override;
virtual int GetValue() override { return 0; }
......
......@@ -36,7 +36,7 @@ GDOptimizer3rdPartyComponent::~GDOptimizer3rdPartyComponent()
int
GDOptimizer3rdPartyComponent::Set( MetricValueInterface::Pointer component )
GDOptimizer3rdPartyComponent::Accept( MetricValueInterface::Pointer component )
{
this->MetricObject->SetMetricValueComponent( component );
return 0;
......@@ -44,7 +44,7 @@ GDOptimizer3rdPartyComponent::Set( MetricValueInterface::Pointer component )
int
GDOptimizer3rdPartyComponent::Set( MetricDerivativeInterface::Pointer component )
GDOptimizer3rdPartyComponent::Accept( MetricDerivativeInterface::Pointer component )
{
this->MetricObject->SetMetricDerivativeComponent( component );
return 0;
......
......@@ -36,7 +36,7 @@ GDOptimizer4thPartyComponent::~GDOptimizer4thPartyComponent()
int
GDOptimizer4thPartyComponent::Set( MetricValueInterface::Pointer component )
GDOptimizer4thPartyComponent::Accept( MetricValueInterface::Pointer component )
{
this->MetricObject->SetMetricValueComponent( component );
return 0;
......
......@@ -22,7 +22,7 @@
namespace selx
{
int
MetricComponent1::Set( TransformedImageInterface::Pointer providingInterface )
MetricComponent1::Accept( TransformedImageInterface::Pointer providingInterface )
{
return 0;
}
......
......@@ -61,7 +61,7 @@ public:
typedef typename ItkImageType::Pointer
ItkImagePointer;
virtual int Set( typename itkImageInterface< Dimensionality, TPixel >::Pointer ) override;
virtual int Accept( typename itkImageInterface< Dimensionality, TPixel >::Pointer ) override;
virtual ItkImagePointer GetItkImage() override;
......
......@@ -39,7 +39,7 @@ ItkSmoothingRecursiveGaussianImageFilterComponent< Dimensionality, TPixel >::~It
template< int Dimensionality, class TPixel >
int
ItkSmoothingRecursiveGaussianImageFilterComponent< Dimensionality, TPixel >
::Set( typename itkImageInterface< Dimensionality, TPixel >::Pointer component )
::Accept( typename itkImageInterface< Dimensionality, TPixel >::Pointer component )
{
auto image = component->GetItkImage();
// connect the itk pipeline
......
......@@ -70,9 +70,9 @@ public:
// accepting interfaces
virtual int Set( typename NiftiDisplacementFieldInterfaceType::Pointer ) override;
virtual int Accept( typename NiftiDisplacementFieldInterfaceType::Pointer ) override;
virtual int Set( typename ItkImageDomainInterfaceType::Pointer ) override;
virtual int Accept( typename ItkImageDomainInterfaceType::Pointer ) override;
// providing interfaces
virtual void SetMiniPipelineOutput( itk::DataObject::Pointer ) override;
......
......@@ -39,7 +39,7 @@ DisplacementFieldNiftiToItkImageSinkComponent< Dimensionality, TPixel >::~Displa
template< int Dimensionality, class TPixel >
int
DisplacementFieldNiftiToItkImageSinkComponent< Dimensionality, TPixel >::Set( typename NiftiDisplacementFieldInterfaceType::Pointer other )
DisplacementFieldNiftiToItkImageSinkComponent< Dimensionality, TPixel >::Accept( typename NiftiDisplacementFieldInterfaceType::Pointer other )
{
// Store pointer to the m_WarpedImageInterface for getting the result image after in has been generated (registration).
// TODO: sanity check that m_WarpedImageInterface was Null to detect if Set was called more than once erroneously.
......@@ -50,7 +50,7 @@ DisplacementFieldNiftiToItkImageSinkComponent< Dimensionality, TPixel >::Set( ty
template< int Dimensionality, class TPixel >
int
DisplacementFieldNiftiToItkImageSinkComponent< Dimensionality, TPixel >::Set( typename ItkImageDomainInterfaceType::Pointer other )
DisplacementFieldNiftiToItkImageSinkComponent< Dimensionality, TPixel >::Accept( typename ItkImageDomainInterfaceType::Pointer other )
{
// Store pointer to the m_ImageDomainInterface for getting the result image after in has been generated (registration).
// TODO: sanity check that m_ImageDomainInterface was Null to detect if Set was called more than once erroneously.
......
......@@ -67,9 +67,9 @@ public:
virtual ~NiftiToItkImageSinkComponent();
// accepting interfaces
virtual int Set( typename WarpedImageInterfaceType::Pointer ) override;
virtual int Accept( typename WarpedImageInterfaceType::Pointer ) override;
virtual int Set( typename ImageDomainInterfaceType::Pointer ) override;
virtual int Accept( typename ImageDomainInterfaceType::Pointer ) override;
// prodiving interfaces
virtual void SetMiniPipelineOutput( itk::DataObject::Pointer ) override;
......
......@@ -39,7 +39,7 @@ NiftiToItkImageSinkComponent< Dimensionality, TPixel >::~NiftiToItkImageSinkComp
template< int Dimensionality, class TPixel >
int
NiftiToItkImageSinkComponent< Dimensionality, TPixel >::Set( typename WarpedImageInterfaceType::Pointer other )
NiftiToItkImageSinkComponent< Dimensionality, TPixel >::Accept( typename WarpedImageInterfaceType::Pointer other )
{
// Store pointer to the m_WarpedImageInterface for getting the result image after in has been generated (registration).
// TODO: sanity check that m_WarpedImageInterface was Null to detect if Set was called more than once erroneously.
......@@ -50,7 +50,7 @@ NiftiToItkImageSinkComponent< Dimensionality, TPixel >::Set( typename WarpedImag
template< int Dimensionality, class TPixel >
int
NiftiToItkImageSinkComponent< Dimensionality, TPixel >::Set( typename ImageDomainInterfaceType::Pointer other )
NiftiToItkImageSinkComponent< Dimensionality, TPixel >::Accept( typename ImageDomainInterfaceType::Pointer other )
{
// Store pointer to the m_ImageDomainInterface for getting the result image after in has been generated (registration).
// TODO: sanity check that m_ImageDomainInterface was Null to detect if Set was called more than once erroneously.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment