X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=plugins%2FGenericPlugins%2FDataReproducer.cxx;fp=plugins%2FGenericPlugins%2FDataReproducer.cxx;h=586e37b6f671869fac6ab71dd0899a629921e128;hb=3c250e0e573d7f08276aefd93a5336f128e6b1a7;hp=0000000000000000000000000000000000000000;hpb=32cfe91acc85230333199444bc712ea86da65c4e;p=cpPlugins.git diff --git a/plugins/GenericPlugins/DataReproducer.cxx b/plugins/GenericPlugins/DataReproducer.cxx new file mode 100644 index 0000000..586e37b --- /dev/null +++ b/plugins/GenericPlugins/DataReproducer.cxx @@ -0,0 +1,49 @@ +#include "DataReproducer.h" +#include + +// ------------------------------------------------------------------------- +void cpPlugins_GenericPlugins::DataReproducer:: +AddInput( const std::string& n, cpPlugins::Pipeline::DataObject* o ) +{ + this->Superclass::AddInput( n, o ); + auto out = + dynamic_cast< cpPlugins::Pipeline::OutputPort* >( + this->m_Outputs.find( "Output" )->second + ); + out->Set( o ); +} + +// ------------------------------------------------------------------------- +void cpPlugins_GenericPlugins::DataReproducer:: +SetInput( const std::string& n, cpPlugins::Pipeline::DataObject* o ) +{ + this->Superclass::SetInput( n, o ); + auto out = + dynamic_cast< cpPlugins::Pipeline::OutputPort* >( + this->m_Outputs.find( "Output" )->second + ); + out->Set( o ); +} + +// ------------------------------------------------------------------------- +cpPlugins_GenericPlugins::DataReproducer:: +DataReproducer( ) + : Superclass( ) +{ + this->_ConfigureInput( "Input", true, false ); + this->_ConfigureOutput( "Output" ); +} + +// ------------------------------------------------------------------------- +cpPlugins_GenericPlugins::DataReproducer:: +~DataReproducer( ) +{ +} + +// ------------------------------------------------------------------------- +void cpPlugins_GenericPlugins::DataReproducer:: +_GenerateData( ) +{ +} + +// eof - $RCSfile$