Commit 9547cce1 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

ENH: removed AfterRegistrationInterfaces

parent c33cd437
......@@ -34,7 +34,7 @@ namespace selx
class DisplacementFieldItkImageFilterSinkComponent :
public Implements <
Accepting< DisplacementFieldItkImageSourceInterface<Dimensionality, TPixel> >,
Providing < SinkInterface, AfterRegistrationInterface >
Providing < SinkInterface >
>
{
public:
......@@ -55,19 +55,17 @@ namespace selx
//Accepting Interfaces:
virtual int Set(AcceptingDisplacementFieldInterfaceType*) override;
//Providing Interfaces:
virtual void SetMiniPipelineOutput(itk::DataObject::Pointer) override;
virtual itk::DataObject::Pointer GetMiniPipelineOutput(void) override;
virtual AnyFileWriter::Pointer GetOutputFileWriter(void) override;
virtual itk::DataObject::Pointer GetInitializedOutput(void) override;
//Providing Interfaces:
virtual void AfterRegistration() override;
virtual bool MeetsCriterion(const ComponentBase::CriterionType &criterion) override;
static const char * GetDescription() { return "DisplacementFieldItkImageFilterSink Component"; };
private:
//itk::ProcessObject::Pointer m_Sink;
//typename itk::ImageFileWriter<itk::Image<itk::Vector<TPixel,Dimensionality>, Dimensionality>>::Pointer m_SinkWriter;
typename DeformationFieldImageType::Pointer m_MiniPipelineOutputImage;
typename DeformationFieldImageType::Pointer m_OverlordOutputImage;
......
......@@ -48,12 +48,6 @@ namespace selx
}
template<int Dimensionality, class TPixel>
void DisplacementFieldItkImageFilterSinkComponent< Dimensionality, TPixel>::AfterRegistration()
{
this->m_MiniPipelineOutputImage->Update();
}
template<int Dimensionality, class TPixel>
typename AnyFileWriter::Pointer DisplacementFieldItkImageFilterSinkComponent< Dimensionality, TPixel>::GetOutputFileWriter()
{
......
......@@ -35,7 +35,7 @@ namespace selx
class ItkImageSinkComponent :
public Implements <
Accepting< itkImageInterface<Dimensionality, TPixel> >,
Providing < SinkInterface, AfterRegistrationInterface >
Providing < SinkInterface >
>
{
public:
......@@ -58,7 +58,6 @@ namespace selx
virtual AnyFileWriter::Pointer GetOutputFileWriter(void) override;
virtual itk::DataObject::Pointer GetInitializedOutput(void) override;
virtual void AfterRegistration() override;
virtual bool MeetsCriterion(const ComponentBase::CriterionType &criterion) override;
static const char * GetDescription() { return "ItkImageSink Component"; };
......
......@@ -48,12 +48,6 @@ namespace selx
return 0;
}
template<int Dimensionality, class TPixel>
void ItkImageSinkComponent< Dimensionality, TPixel>::AfterRegistration()
{
this->m_MiniPipelineOutputImage->Update();
}
template<int Dimensionality, class TPixel>
void ItkImageSinkComponent< Dimensionality, TPixel>::SetMiniPipelineOutput(itk::DataObject::Pointer overlordOutput)
{
......
Supports Markdown
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