]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/IO/ImageWriter.cxx
Widget integration (step 6/6): Interactive architecture finished. Needs to be tested...
[cpPlugins.git] / lib / cpPlugins / Plugins / IO / ImageWriter.cxx
index 2b4d89781faba34413c942dbdbeaaaafea5930d1..a6549793232a24096f5c42d61384982ea8dfdb39 100644 (file)
@@ -8,7 +8,7 @@ cpPlugins::IO::ImageWriter::
 ImageWriter( )
   : Superclass( )
 {
-  this->SetNumberOfInputs( 1 );
+  this->_AddInput( "Input" );
 
   this->m_Parameters->ConfigureAsString( "FileName", "" );
 }
@@ -39,7 +39,7 @@ std::string cpPlugins::IO::ImageWriter::
 _GD0_Image( )
 {
   cpPlugins::Interface::Image* image =
-    this->GetInput< cpPlugins::Interface::Image >( 0 );
+    this->GetInput< cpPlugins::Interface::Image >( "Input" );
   if( image == NULL )
     return( "ImageWriter: No input image." );
 
@@ -57,7 +57,7 @@ std::string cpPlugins::IO::ImageWriter::
 _GD0_VectorImage( )
 {
   cpPlugins::Interface::Image* image =
-    this->GetInput< cpPlugins::Interface::Image >( 0 );
+    this->GetInput< cpPlugins::Interface::Image >( "Input" );
   if( image == NULL )
     return( "ImageWriter: No input image." );