ImageReader( )
: Superclass( )
{
- this->_MakeOutput< cpPlugins::Interface::Image >( "Output" );
+ this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
- this->m_Parameters->ConfigureAsFileNameList( "FileNames" );
+ this->m_Parameters->ConfigureAsOpenFileNameList( "FileNames" );
this->m_Parameters->ConfigureAsBool( "VectorType" );
this->m_Parameters->SetBool( "VectorType", false );
}
_GenerateData( )
{
// Get filenames
- TStringList names = this->m_Parameters->GetFileNameList( "FileNames" );
+ TStringList names = this->m_Parameters->GetOpenFileNameList( "FileNames" );
std::string r = "";
if( names.size( ) >= 1 )
std::string cpPlugins::IO::ImageReader::
_RealGD( const TStringList& names )
{
- cpPlugins::Interface::Image* out =
- this->GetOutput< cpPlugins::Interface::Image >( "Output" );
+ auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
if( out == NULL )
return( "ImageReader: No output object properly created." );